Use elif, not if
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 7s

This commit is contained in:
Nexus 2024-05-05 02:56:10 +01:00
parent 991b80ff59
commit 0661656a22
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -73,7 +73,7 @@ class Starboard(commands.Cog):
continue continue
if message_embed.description: if message_embed.description:
embed.description = message_embed.description embed.description = message_embed.description
if not message.attachments: elif not message.attachments:
raise ValueError("Message does not appear to contain any text, embeds, or attachments.") raise ValueError("Message does not appear to contain any text, embeds, or attachments.")
if message.attachments: if message.attachments: