<p>Im使用python中的discordapi来管理discord bot。此命令创建某个不和谐频道中的人员列表。在</p>
<p>我有一个功能:</p>
<pre><code>async def attendance(ctx, channel):
code here that creates a variable with member names
await bot.say(printdiscordnames)
</code></pre>
<p>我想每次都用列表中不同的通道名调用上面的函数</p>
<p>所以我会这样做:</p>
^{pr2}$
<p>基本上我想做!attendanceall in discord,它将执行第一个函数,生成一个列表,并在discord中为列表中的每个频道打印它。在</p>
<p>我的问题是我不知道如何为列表中的每个频道名调用第一个函数。在</p>