Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/324.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在成员上加入和删除不起作用。如何让它工作?_Python_Discord.py - Fatal编程技术网

Python 在成员上加入和删除不起作用。如何让它工作?

Python 在成员上加入和删除不起作用。如何让它工作?,python,discord.py,Python,Discord.py,我不知道为什么,但这两个命令对我不起作用 @客户端事件 _成员_joinmember上的异步定义: ver_Channel=client.get_channel799666119787020289 等待版本通道。sendmember+已加入服务器! @客户端事件 _member_removember上的异步定义: ver_Channel=client.get_channel799666119787020289 Wait ver_Channel.sendmember+已被保留: 顺便说一句,请写下

我不知道为什么,但这两个命令对我不起作用

@客户端事件 _成员_joinmember上的异步定义: ver_Channel=client.get_channel799666119787020289 等待版本通道。sendmember+已加入服务器! @客户端事件 _member_removember上的异步定义: ver_Channel=client.get_channel799666119787020289 Wait ver_Channel.sendmember+已被保留:
顺便说一句,请写下基本的编码解释,我是一个初学者

我很确定这是一个意图问题,你应该启用intents.members

意图=discord.intents.default启用除特权意图成员和存在之外的所有内容 intents.members=True,显式启用“intents.members”` client=commands.Bot…,intents=intents 还要确保在中启用它们