【发布时间】:2021-02-03 18:35:50
【问题描述】:
在发送会员留言时,我查看了所有我能找到的帖子都引用了旧版本的 discord.py。下面的代码不会给出错误,但也不会在成员离开服务器时发送消息。我错过了什么吗?我查看了文档,这是有道理的......
async def on_member_remove(member):
channel = client.get_channel(762921541787975686)
await channel.send(f"{member} quit on the 1 yard line (left the server).")
【问题讨论】:
标签: python python-3.x discord discord.py