fix(suggestions): made error messages epheremal
This commit is contained in:
parent
9d0450b223
commit
5cbc438a2b
1 changed files with 3 additions and 3 deletions
|
@ -546,13 +546,13 @@ class Suggestions(commands.Cog):
|
|||
msg_id != 0
|
||||
and await self.config.custom("SUGGESTION", server, suggestion_id).finished()
|
||||
):
|
||||
return await interaction.response.send_message("This suggestion has been finished already.")
|
||||
return await interaction.response.send_message(content="This suggestion has been finished already.", ephemeral=True)
|
||||
try:
|
||||
old_msg = await old_channel.fetch_message(msg_id)
|
||||
except discord.NotFound:
|
||||
return await interaction.response.send_message("Uh oh, message with this ID doesn't exist.")
|
||||
return await interaction.response.send_message(content="Uh oh, message with this ID doesn't exist.", ephemeral=True)
|
||||
if not old_msg:
|
||||
return await interaction.response.send_message("Uh oh, message with this ID doesn't exist.")
|
||||
return await interaction.response.send_message(content="Uh oh, message with this ID doesn't exist.", ephemeral=True)
|
||||
embed = old_msg.embeds[0]
|
||||
content = old_msg.content
|
||||
|
||||
|
|
Loading…
Reference in a new issue