Skip to content

Commit 7a04a81

Browse files
committed
fix logic again, thanks weird merge selection
1 parent 1040013 commit 7a04a81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord_slash/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def add_slash_command(
535535
"""
536536
name = name or cmd.__name__
537537
name = name.lower()
538-
guild_ids = guild_ids or []
538+
guild_ids = guild_ids if guild_ids else []
539539
if not all(isinstance(item, int) for item in guild_ids):
540540
raise error.IncorrectGuildIDType(
541541
f"The snowflake IDs {guild_ids} given are not a list of integers. Because of discord.py convention, please use integer IDs instead. Furthermore, the command '{name}' will be deactivated and broken until fixed."
@@ -617,7 +617,7 @@ def add_subcommand(
617617
name = name or cmd.__name__
618618
name = name.lower()
619619
description = description or getdoc(cmd)
620-
guild_ids = guild_ids or []
620+
guild_ids = guild_ids if guild_ids else []
621621
if not all(isinstance(item, int) for item in guild_ids):
622622
raise error.IncorrectGuildIDType(
623623
f"The snowflake IDs {guild_ids} given are not a list of integers. Because of discord.py convention, please use integer IDs instead. Furthermore, the command '{name}' will be deactivated and broken until fixed."

0 commit comments

Comments
 (0)