misc: removed temporary error handling
This commit is contained in:
parent
5461eb49c9
commit
be106bc740
1 changed files with 4 additions and 5 deletions
|
@ -21,11 +21,10 @@ class Say(commands.Cog):
|
||||||
else:
|
else:
|
||||||
await interaction.response.send_message(content=f"Message sent to {target.mention}!\nMessage contents:\n```{message}```", ephemeral=True)
|
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:
|
except (discord.HTTPException, discord.Forbidden) as error:
|
||||||
# if target_type == "member":
|
if target_type == "member":
|
||||||
# await interaction.response.send_message(content="That user has their direct messages closed!", ephemeral=True)
|
await interaction.response.send_message(content="That user has their direct messages closed!", ephemeral=True)
|
||||||
# elif target_type == "textchannel":
|
elif target_type == "textchannel":
|
||||||
# await interaction.response.send_message(content="I cannot access that channel!", ephemeral=True)
|
await interaction.response.send_message(content="I cannot access that channel!", ephemeral=True)
|
||||||
await interaction.response.send_message(content=error)
|
|
||||||
|
|
||||||
class MessageModal(discord.ui.Modal, title="Sending message..."):
|
class MessageModal(discord.ui.Modal, title="Sending message..."):
|
||||||
def __init__(self, target):
|
def __init__(self, target):
|
||||||
|
|
Loading…
Reference in a new issue