Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

397
Views
en discord.py ¿Cómo puedo hacer que mi bot solo pueda usar los comandos en un canal específico o en un servidor específico?

Entonces, cualquiera puede invitar a mi bot personal a su servidor. Por lo tanto, quiero que el comando funcione en un canal específico o en un servidor específico con @bot.event no en el cliente.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

si usa await bot.process_commands(message) , puede probar esto

 @bot.event async def on_message(message): if message.channel.id == yourchannelid: await bot.process_commands(message) if message.guild.id = yourguildid: await bot.process_commands(message)

puede agregar controles en on_message para que el bot no se responda a sí mismo

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!