擅长:python、mysql、java
<p>正如错误所说:
线路</p>
<pre><code> if ctx.author.guild_permissions.administrator:
</code></pre>
<p>抛出AttributeError错误,因为“ctx.author”(ClientUser类型)没有guild_permissions属性</p>
<p>错误信息还意味着错误被忽略,因此代码将继续执行而不停止</p>
<p>我找到了<a href="https://stackoverflow.com/a/66802695/10943635">this</a>
回答可能帮助您克服此问题的问题</p>
<p>祝你好运</p>