Really quick thread because I am absolutely clueless, how do I add how many messages where deleted in a purge to an embed?
Like for example I'd want the embed to say:
{amount} of messages where deleted.
At the moment, I have this (it works as well)
If anyone knows, it'd be appreciated
Like for example I'd want the embed to say:
{amount} of messages where deleted.
At the moment, I have this (it works as well)
@bot.command() #!purge (purge messages)
@commands.has_permissions(manage_messages = True)
async def purge(ctx, amount : int):
await ctx.channel.purge(limit=amount + 1)
embed=discord.Embed(title="Purge Moderation Handler", description="Messages purged!", colour=discord.Colour.red())
embed.set_footer(text="Bot created by Syxro.")
await ctx.channel.send(embed=embed)
@commands.has_permissions(manage_messages = True)
async def purge(ctx, amount : int):
await ctx.channel.purge(limit=amount + 1)
embed=discord.Embed(title="Purge Moderation Handler", description="Messages purged!", colour=discord.Colour.red())
embed.set_footer(text="Bot created by Syxro.")
await ctx.channel.send(embed=embed)
If anyone knows, it'd be appreciated
[DOUBLEPOST=1635383749][/DOUBLEPOST]Another note,
