Skip to content

Commit

Permalink
Complete GUI-16: Fix emergency role not being pinged
Browse files Browse the repository at this point in the history
  • Loading branch information
WitherredAway committed Feb 3, 2024
1 parent 95e3465 commit 25785f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cogs/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,13 @@ async def emergency(self, ctx: GuiduckContext, *, reason: str):
url=f"https://admin.poketwo.net/logs/{ctx.guild.id}/{ctx.channel.id}?before={ctx.message.id+1}",
)
)
view.message = await ctx.reply(role.mention, embed=alert_embed, view=view) # TODO: Fix role not being pinged
view.message = await ctx.reply(
role.mention,
embed=alert_embed,
view=view,
mention_author=False,
allowed_mentions=discord.AllowedMentions(roles=[role]),
)

@emergency.error
async def emergency_error(self, ctx: GuiduckContext, error):
Expand Down

0 comments on commit 25785f5

Please sign in to comment.