Hello guys, my purge command was working very well.
@discord.slash_command(description="Löscht gewünschte Nachrichten")
@commands.has_permissions(manage_messages=True)
async def purge(self, ctx, limit:int):
await ctx.channel.purge(limit=limit+0)
slimit = str(limit)
await ctx.respond(f'Es wurden {slimit} Nachrichten gelöscht! :white_check_mark: '.format(ctx.author), delete_after=5)
@purge.error
async def purge_error(self, ctx, error):
if isinstance(error, MissingPermissions):
embed = discord.Embed(title = '\n',
description = '\n',color=discord.Color.red())
embed.set_author(name='Nike sagt du darfst das nicht!',
icon_url='https://cdn.discordapp.com/emojis/895062898844512307.png?size=96')
await ctx.send("", embed=embed)
But now it seems to just delete 1 message reliable. If i do /purge 1
If its more than 1 it wont delete anything, but i dont get any errors... what could be the issue for this?
PS: limit+0 bc i had to delete the message itself before it was a self deleting respond
Greetings
Support server: