Python command only work in direct messages?

前端 未结 0 429
长发绾君心
长发绾君心 2020-11-29 17:59

So I want to be able to have my command only work in direct messages, can anyone help?

@client.event
async def on_message(message):
    if message.author == c         


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