Skip to content

Commit

Permalink
Fixed /censor remove to edit the original message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nydauron committed Jun 15, 2024
1 parent e2e768b commit 02250d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/discord/staff/censor.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ async def censor_remove(

if censor_type == "word":
if phrase not in src.discord.globals.CENSOR["words"]:
await interaction.response.send_message(
await interaction.edit_original_response(
content=f"`{phrase}` is not in the list of censored words.",
)
else:
Expand All @@ -129,7 +129,7 @@ async def censor_remove(
)
elif censor_type == "emoji":
if phrase not in src.discord.globals.CENSOR["emojis"]:
await interaction.response.send_message(
await interaction.edit_original_response(
content=f"{phrase} is not in the list of censored emojis.",
)
else:
Expand Down

0 comments on commit 02250d4

Please sign in to comment.