【发布时间】:2021-06-20 18:21:12
【问题描述】:
嗨,我正在尝试在 discord.py 中创建一个禁止所有成员的命令
@client.command()
async def massban(ctx):
for user in ctx.guild.members:
try:
await user.ban()
except:
pass
此代码由于某种原因无法正常工作,谁能帮忙?
【问题讨论】:
-
你有什么错误吗?
标签: discord.py