misc: removed temporary error handling

This commit is contained in:
Seaswimmer 2023-08-07 21:36:32 -04:00
parent 5461eb49c9
commit be106bc740
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -21,11 +21,10 @@ class Say(commands.Cog):
else:
await interaction.response.send_message(content=f"Message sent to {target.mention}!\nMessage contents:\n```{message}```", ephemeral=True)
except (discord.HTTPException, discord.Forbidden) as error:
# if target_type == "member":
# await interaction.response.send_message(content="That user has their direct messages closed!", ephemeral=True)
# elif target_type == "textchannel":
# await interaction.response.send_message(content="I cannot access that channel!", ephemeral=True)
await interaction.response.send_message(content=error)
if target_type == "member":
await interaction.response.send_message(content="That user has their direct messages closed!", ephemeral=True)
elif target_type == "textchannel":
await interaction.response.send_message(content="I cannot access that channel!", ephemeral=True)
class MessageModal(discord.ui.Modal, title="Sending message..."):
def __init__(self, target):