//WIP v3
Clear Messages Changes - Mentioning user ID not name
This commit is contained in:
@@ -11,7 +11,8 @@ class ClearMessages(commands.Cog):
|
||||
@commands.command()
|
||||
async def clear(self, ctx, amount=0):
|
||||
member = ctx.author.display_name
|
||||
mtn_member = f"<@{member}>"
|
||||
member_id = ctx.author.id
|
||||
mtn_member = f"<@{member_id}>"
|
||||
LOGGER.info(f"Clear {amount} messages requested by {member}")
|
||||
|
||||
authors = {}
|
||||
@@ -26,7 +27,7 @@ class ClearMessages(commands.Cog):
|
||||
LOGGER.debug(f"Deleted {sum(authors.values())} messages from {ctx.message.channel}")
|
||||
|
||||
for author in authors.keys():
|
||||
msg += f"\t{author}: {authors[author]}"
|
||||
msg += f"\t{author}: {authors[author]}\n"
|
||||
LOGGER.debug(f"Deleted {authors[author]} messages from {author}")
|
||||
|
||||
await ctx.channel.send(msg)
|
||||
|
||||
Reference in New Issue
Block a user