diff --git a/cogs/mod.py b/cogs/mod.py index 288ca6d..b29f933 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -25,8 +25,10 @@ class Mod(Cog): await ctx.send(f"Done!") log_channel = self.bot.get_channel(config.modlog_channel) - log_msg = (f"āœļø **Guild Icon Update**: {ctx.author} changed the guild icon." - f"\n\nJump: <{ctx.message.jump_url}>") + log_msg = ( + f"āœļø **Guild Icon Update**: {ctx.author} changed the guild icon." + f"\n\nšŸ”— __Jump__: <{ctx.message.jump_url}>" + ) img_filename = url.split("/")[-1].split("#")[0] # hacky img_file = discord.File(io.BytesIO(img_bytes), filename=img_filename) await log_channel.send(log_msg, file=img_file) @@ -81,7 +83,7 @@ class Mod(Cog): " as the reason is automatically sent to the user." ) - chan_message += f"\n\nJump: <{ctx.message.jump_url}>" + chan_message += f"\n\nšŸ”— __Jump__: <{ctx.message.jump_url}>" log_channel = self.bot.get_channel(config.modlog_channel) await log_channel.send(chan_message) @@ -104,7 +106,7 @@ class Mod(Cog): f"šŸ· __User ID__: {target.id}\n" ) - chan_message += f"\n\nJump: <{ctx.message.jump_url}>" + chan_message += f"\n\nšŸ”— __Jump__: <{ctx.message.jump_url}>" log_channel = self.bot.get_channel(config.modlog_channel) await log_channel.send(chan_message) @@ -164,7 +166,7 @@ class Mod(Cog): " as the reason is automatically sent to the user." ) - chan_message += f"\n\nJump: <{ctx.message.jump_url}>" + chan_message += f"\n\nšŸ”— __Jump__: <{ctx.message.jump_url}>" log_channel = self.bot.get_channel(config.modlog_channel) await log_channel.send(chan_message) @@ -223,7 +225,7 @@ class Mod(Cog): " as the reason is automatically sent to the user." ) - chan_message += f"\n\nJump: <{ctx.message.jump_url}>" + chan_message += f"\n\nšŸ”— __Jump__: <{ctx.message.jump_url}>" log_channel = self.bot.get_channel(config.modlog_channel) await log_channel.send(chan_message) @@ -268,7 +270,7 @@ class Mod(Cog): "`.hackban [reason]`." ) - chan_message += f"\n\nJump: <{ctx.message.jump_url}>" + chan_message += f"\n\nšŸ”— __Jump__: <{ctx.message.jump_url}>" log_channel = self.bot.get_channel(config.modlog_channel) await log_channel.send(chan_message) @@ -299,7 +301,7 @@ class Mod(Cog): "`.unban [reason]`." ) - chan_message += f"\n\nJump: <{ctx.message.jump_url}>" + chan_message += f"\n\nšŸ”— __Jump__: <{ctx.message.jump_url}>" log_channel = self.bot.get_channel(config.modlog_channel) await log_channel.send(chan_message) @@ -342,7 +344,7 @@ class Mod(Cog): " as the reason is automatically sent to the user." ) - chan_message += f"\n\nJump: <{ctx.message.jump_url}>" + chan_message += f"\n\nšŸ”— __Jump__: <{ctx.message.jump_url}>" log_channel = self.bot.get_channel(config.modlog_channel) await log_channel.send(chan_message) @@ -368,8 +370,9 @@ class Mod(Cog): await ctx.send(f"Approved {target.mention} to `{role}` role.") await log_channel.send( - f"āœ… Approved: {ctx.author.mention} added" f" {role} to {target.mention}" - f"\n\nJump: <{ctx.message.jump_url}>" + f"āœ… Approved: {ctx.author.mention} added" + f" {role} to {target.mention}" + f"\n\nšŸ”— __Jump__: <{ctx.message.jump_url}>" ) @commands.guild_only() @@ -395,7 +398,7 @@ class Mod(Cog): await log_channel.send( f"āŒ Un-approved: {ctx.author.mention} removed" f" {role} from {target.mention}" - f"\n\nJump: <{ctx.message.jump_url}>" + f"\n\nšŸ”— __Jump__: <{ctx.message.jump_url}>" ) @commands.guild_only() @@ -489,7 +492,7 @@ class Mod(Cog): " as the reason is automatically sent to the user." ) - chan_msg += f"\n\nJump: <{ctx.message.jump_url}>" + chan_msg += f"\n\nšŸ”— __Jump__: <{ctx.message.jump_url}>" await log_channel.send(chan_msg)