diff --git a/cogs/mod.py b/cogs/mod.py index d509bab..3071e89 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -72,7 +72,7 @@ class Mod(Cog): await target.add_roles(mute_role, reason=str(ctx.author)) chan_message = ( - f"šŸ”‡ **Muted**: {ctx.author.mention} muted " + f"šŸ”‡ **Muted**: {str(ctx.author)} muted " f"{target.mention} | {safe_name}\n" f"šŸ· __User ID__: {target.id}\n" ) @@ -105,7 +105,7 @@ class Mod(Cog): await target.remove_roles(mute_role, reason=str(ctx.author)) chan_message = ( - f"šŸ”ˆ **Unmuted**: {ctx.author.mention} unmuted " + f"šŸ”ˆ **Unmuted**: {str(ctx.author)} unmuted " f"{target.mention} | {safe_name}\n" f"šŸ· __User ID__: {target.id}\n" ) @@ -158,7 +158,7 @@ class Mod(Cog): await target.kick(reason=f"{ctx.author}, reason: {reason}") chan_message = ( - f"šŸ‘¢ **Kick**: {ctx.author.mention} kicked " + f"šŸ‘¢ **Kick**: {str(ctx.author)} kicked " f"{target.mention} | {safe_name}\n" f"šŸ· __User ID__: {target.id}\n" ) @@ -220,7 +220,7 @@ class Mod(Cog): reason=f"{ctx.author}, reason: {reason}", delete_message_days=0 ) chan_message = ( - f"ā›” **Ban**: {ctx.author.mention} banned " + f"ā›” **Ban**: {str(ctx.author)} banned " f"{target.mention} | {safe_name}\n" f"šŸ· __User ID__: {target.id}\n" ) @@ -267,7 +267,7 @@ class Mod(Cog): target_user, reason=f"{ctx.author}, reason: {reason}", delete_message_days=0 ) chan_message = ( - f"ā›” **Hackban**: {ctx.author.mention} banned " + f"ā›” **Hackban**: {str(ctx.author)} banned " f"{target_user.mention} | {safe_name}\n" f"šŸ· __User ID__: {target}\n" ) @@ -300,7 +300,7 @@ class Mod(Cog): await ctx.guild.unban(target_user, reason=f"{ctx.author}, reason: {reason}") chan_message = ( - f"āš ļø **Unban**: {ctx.author.mention} unbanned " + f"āš ļø **Unban**: {str(ctx.author)} unbanned " f"{target_user.mention} | {safe_name}\n" f"šŸ· __User ID__: {target}\n" ) @@ -345,7 +345,7 @@ class Mod(Cog): reason=f"{ctx.author}, reason: {reason}", delete_message_days=0 ) chan_message = ( - f"ā›” **Silent ban**: {ctx.author.mention} banned " + f"ā›” **Silent ban**: {str(ctx.author)} banned " f"{target.mention} | {safe_name}\n" f"šŸ· __User ID__: {target.id}\n" ) @@ -384,7 +384,7 @@ class Mod(Cog): await ctx.send(f"Approved {target.mention} to `{role}` role.") await log_channel.send( - f"āœ… Approved: {ctx.author.mention} added" + f"āœ… Approved: {str(ctx.author)} added" f" {role} to {target.mention}" f"\nšŸ”— __Jump__: <{ctx.message.jump_url}>" ) @@ -410,7 +410,7 @@ class Mod(Cog): await ctx.send(f"Un-approved {target.mention} from `{role}` role.") await log_channel.send( - f"āŒ Un-approved: {ctx.author.mention} removed" + f"āŒ Un-approved: {str(ctx.author)} removed" f" {role} from {target.mention}" f"\nšŸ”— __Jump__: <{ctx.message.jump_url}>" ) @@ -425,7 +425,7 @@ class Mod(Cog): channel = ctx.channel await channel.purge(limit=limit) msg = ( - f"šŸ—‘ **Purged**: {ctx.author.mention} purged {limit} " + f"šŸ—‘ **Purged**: str(ctx.author)} purged {limit} " f"messages in {channel.mention}." ) await log_channel.send(msg) @@ -454,7 +454,7 @@ class Mod(Cog): ctx, str(target) ) chan_msg = ( - f"āš ļø **Warned**: {ctx.author.mention} warned " + f"āš ļø **Warned**: {str(ctx.author)} warned " f"{target.mention} (warn #{warn_count}) " f"| {safe_name}\n" )