擅长:python、mysql、java
<p>问题是:</p>
<pre><code>for message.content in message.channel.id == channelid:
</code></pre>
<p>==正在检查是否mess.age.频道.id和channelid相等,因此您的statemnts有效地</p>
^{pr2}$
<p>或者</p>
<pre><code>for message.content in false:
</code></pre>
<p>for循环遍历列表或类似结构中的每个元素,因此不能在“in”后面使用布尔值</p>
<p>我猜你们是不是想把channelid分配给消息.channel.id,然后循环。e、 g</p>
<pre><code>message.channel.id = channelid
for message.content in message.channel.id:
</code></pre>