“Discord.py Clear” Code-Antworten

diskord.py Clear Command

@client.command()
async def clear(ctx, amount=5):
	await ctx.channel.purge(limit=ammount)
Soupyy

Discord.py Clear Status

def _status(self, ctx, *, message):
        '''Set a custom playing status for the bot.'''
        if message == 'clear':
            return await self.change_presence(activity=None)
        await self.change_presence(activity=discord.Game(message))
        await ctx.send(f"Changed status to **{message}**") 
Enchanting Eel

Discord.py Clear

@bot.command()
async def clear(ctx, amount=5):
	await ctx.channel.purge(limit=amount)

or

@client.command()
async def clear(ctx, amount=5):
	await ctx.channel.purge(limit=amount)
TrimB24

Ähnliche Antworten wie “Discord.py Clear”

Fragen ähnlich wie “Discord.py Clear”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen