我正在制造一个不和谐的bot并尝试给它一个!clear命令,但我在努力清除需要清除的消息量
#The modules
import discord
import random
import time
from discord.ext import commands
from discord.ext.commands import Bot
#Prefix
client = Bot('!')
#Events
@client.event
async def on_message(message):
if message.content == '!nuke':
if ctx.message.author.server_permissions.administrator:
await message.channel.send('How many messages do you want to remove?')
#this is the part I am struggling with