pass the message variable out of the async def in discord.py

后端 未结 0 1218
心在旅途
心在旅途 2020-11-29 10:39

I am making a discord bot that detects spam and deletes the message, it works like this:

@client.event
async def on_message(message):
    global cont, msg
            


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