Use elif, not if
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 7s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 7s
This commit is contained in:
parent
991b80ff59
commit
0661656a22
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue