Programming a Discord bot in Python- How do I make the bot restrict commands to a certain server?

前端 未结 0 1189
难免孤独
难免孤独 2021-02-05 03:11

My bot is in multiple servers, and I want to make it only allow a command in a certain server. Here\'s my code:

@client.command()
async def test(ctx):
  server =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题