fix: hopefully fixed 400 bad request error

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

View file

@ -15,7 +15,7 @@ class Say(commands.Cog):
target_type = "textchannel" target_type = "textchannel"
try: try:
await target.send(message) await target.send(message)
if secondary_message != "": if secondary_message is not None:
await target.send(secondary_message) await target.send(secondary_message)
await interaction.response.send_message(content=f"Message sent to {target.mention}!\nMessage contents:\n```{message}```\n```{secondary_message}```", ephemeral=True) await interaction.response.send_message(content=f"Message sent to {target.mention}!\nMessage contents:\n```{message}```\n```{secondary_message}```", ephemeral=True)
else: else: