We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f26dfd3 commit 9270d3cCopy full SHA for 9270d3c
interactions/client/bot.py
@@ -694,6 +694,9 @@ async def __sync(self) -> None: # sourcery no-metrics
694
if _guild_id in __blocked_guilds:
695
log.fatal(f"Cannot sync commands on guild with id {_guild_id}!")
696
raise LibraryException(50001, message="Missing Access |")
697
+ if _guild_id not in _guild_ids:
698
+ log.warning(f"The bot is not in guild with id {_guild_id}")
699
+ raise LibraryException(50001, message="Missing Access |")
700
if _guild_command["name"] not in __check_guild_commands[_guild_id]:
701
self.__guild_commands[_guild_id]["clean"] = False
702
self.__guild_commands[_guild_id]["commands"].append(_guild_command)
0 commit comments