mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-22 20:25:34 +00:00
mod: even more jump link stylization
This commit is contained in:
parent
4bf7d8db98
commit
ca9ccde0e5
22
cogs/mod.py
22
cogs/mod.py
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue