From be106bc740f8ff5b18d426ef4de43fe1b615d769 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 7 Aug 2023 21:36:32 -0400 Subject: [PATCH] misc: removed temporary error handling --- say/say.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/say/say.py b/say/say.py index e5f9422..8ab820c 100644 --- a/say/say.py +++ b/say/say.py @@ -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):