mod: even more jump link stylization

This commit is contained in:
Ave 2020-05-29 18:10:52 +03:00
parent 4bf7d8db98
commit ca9ccde0e5
No known key found for this signature in database
GPG key ID: 398DD7BD03276F6D

View file

@ -27,7 +27,7 @@ class Mod(Cog):
log_channel = self.bot.get_channel(config.modlog_channel)
log_msg = (
f"✏️ **Guild Icon Update**: {ctx.author} changed the guild icon."
f"\n\n🔗 __Jump__: <{ctx.message.jump_url}>"
f"\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)
@ -83,7 +83,7 @@ class Mod(Cog):
" as the reason is automatically sent to the user."
)
chan_message += f"\n\n🔗 __Jump__: <{ctx.message.jump_url}>"
chan_message += f"\n🔗 __Jump__: <{ctx.message.jump_url}>"
log_channel = self.bot.get_channel(config.modlog_channel)
await log_channel.send(chan_message)
@ -106,7 +106,7 @@ class Mod(Cog):
f"🏷 __User ID__: {target.id}\n"
)
chan_message += f"\n\n🔗 __Jump__: <{ctx.message.jump_url}>"
chan_message += f"\n🔗 __Jump__: <{ctx.message.jump_url}>"
log_channel = self.bot.get_channel(config.modlog_channel)
await log_channel.send(chan_message)
@ -166,7 +166,7 @@ class Mod(Cog):
" as the reason is automatically sent to the user."
)
chan_message += f"\n\n🔗 __Jump__: <{ctx.message.jump_url}>"
chan_message += f"\n🔗 __Jump__: <{ctx.message.jump_url}>"
log_channel = self.bot.get_channel(config.modlog_channel)
await log_channel.send(chan_message)
@ -225,7 +225,7 @@ class Mod(Cog):
" as the reason is automatically sent to the user."
)
chan_message += f"\n\n🔗 __Jump__: <{ctx.message.jump_url}>"
chan_message += f"\n🔗 __Jump__: <{ctx.message.jump_url}>"
log_channel = self.bot.get_channel(config.modlog_channel)
await log_channel.send(chan_message)
@ -270,7 +270,7 @@ class Mod(Cog):
"`.hackban <user> [reason]`."
)
chan_message += f"\n\n🔗 __Jump__: <{ctx.message.jump_url}>"
chan_message += f"\n🔗 __Jump__: <{ctx.message.jump_url}>"
log_channel = self.bot.get_channel(config.modlog_channel)
await log_channel.send(chan_message)
@ -301,7 +301,7 @@ class Mod(Cog):
"`.unban <user id> [reason]`."
)
chan_message += f"\n\n🔗 __Jump__: <{ctx.message.jump_url}>"
chan_message += f"\n🔗 __Jump__: <{ctx.message.jump_url}>"
log_channel = self.bot.get_channel(config.modlog_channel)
await log_channel.send(chan_message)
@ -344,7 +344,7 @@ class Mod(Cog):
" as the reason is automatically sent to the user."
)
chan_message += f"\n\n🔗 __Jump__: <{ctx.message.jump_url}>"
chan_message += f"\n🔗 __Jump__: <{ctx.message.jump_url}>"
log_channel = self.bot.get_channel(config.modlog_channel)
await log_channel.send(chan_message)
@ -372,7 +372,7 @@ class Mod(Cog):
await log_channel.send(
f"✅ Approved: {ctx.author.mention} added"
f" {role} to {target.mention}"
f"\n\n🔗 __Jump__: <{ctx.message.jump_url}>"
f"\n🔗 __Jump__: <{ctx.message.jump_url}>"
)
@commands.guild_only()
@ -398,7 +398,7 @@ class Mod(Cog):
await log_channel.send(
f"❌ Un-approved: {ctx.author.mention} removed"
f" {role} from {target.mention}"
f"\n\n🔗 __Jump__: <{ctx.message.jump_url}>"
f"\n🔗 __Jump__: <{ctx.message.jump_url}>"
)
@commands.guild_only()
@ -492,7 +492,7 @@ class Mod(Cog):
" as the reason is automatically sent to the user."
)
chan_msg += f"\n\n🔗 __Jump__: <{ctx.message.jump_url}>"
chan_msg += f"\n🔗 __Jump__: <{ctx.message.jump_url}>"
await log_channel.send(chan_msg)