擅长:python、mysql、java
<p>编辑:参见答案。将以下正确传递的意图(members=True)更改为bot</p>
<p>不确定为什么,但我需要使用bot命令来解决这个问题</p>
<p>增加:</p>
<pre><code>from discord.ext import commands
</code></pre>
<p>改变</p>
<pre><code>client = discord.Client()
</code></pre>
<p>到</p>
<pre><code>client = commands.Bot(command_prefix = "!", intents = intents)
</code></pre>
<p>我认为这是“完全启用”意图所必需的,但我不完全确定为什么这会纠正这个问题</p>