Skip to content

Commit

Permalink
fix(zig-codeblocks): add perm validation to "Replace my message"
Browse files Browse the repository at this point in the history
  • Loading branch information
trag1c committed Feb 16, 2025
1 parent 6c3e66e commit 59dd6a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/components/zig_codeblocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ async def freeze(
async def replace(
self, interaction: discord.Interaction, _: discord.ui.Button
) -> None:
if await self._reject_early(interaction, "You can't use this action."):
return

assert interaction.message
channel = interaction.message.channel
webhook_channel, thread = (
Expand Down

0 comments on commit 59dd6a5

Please sign in to comment.