fix(suggestions): made error messages epheremal

This commit is contained in:
Seaswimmer 2023-09-21 11:09:35 -04:00
parent 9d0450b223
commit 5cbc438a2b
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -546,13 +546,13 @@ class Suggestions(commands.Cog):
msg_id != 0 msg_id != 0
and await self.config.custom("SUGGESTION", server, suggestion_id).finished() 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: try:
old_msg = await old_channel.fetch_message(msg_id) old_msg = await old_channel.fetch_message(msg_id)
except discord.NotFound: 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: 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] embed = old_msg.embeds[0]
content = old_msg.content content = old_msg.content