【发布时间】:2020-11-20 00:19:08
【问题描述】:
如果打印了-чисти все,我需要默认清除 10 条消息并清除所有频道。它有效,但我的机器人现在不清除任何消息,我不知道我能做些什么来修复它。请帮忙
cha=ctx.message.channel
author=ctx.message.author
if all=='все' or all=="всё":
amount=0
history=await cha.history(limit=9999999).flatten()
for i in history:
amount+=1
await ctx.channel.purge(limit=1000) # amount instead 1000```
【问题讨论】:
标签: python discord.py