@client.event
async def on_message(message):
if message.author.id != client.user.id:
if message.guild: # If message in guild
await client.process_commands(message) # Process command
else:
return await message.author.send("Sorry, but i dont process commands on direct messages...")
如果需要,请将客户端重设为bot
如果您使用的是
discord.ext.commands
,那么可以从以下内容开始关于帮助命令,您可以让他在服务器中键入命令,然后私下将其返回给他。这会增加反应的速度✅ 私下把所有的帮助都交给他
相关问题 更多 >
编程相关推荐