Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions interactions/client/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,9 @@ async def __sync(self) -> None: # sourcery no-metrics
if _guild_id in __blocked_guilds:
log.fatal(f"Cannot sync commands on guild with id {_guild_id}!")
raise LibraryException(50001, message="Missing Access |")
if _guild_id not in _guild_ids:
log.warning(f"The bot is not in guild with id {_guild_id}")
raise LibraryException(50001, message="Missing Access |")
if _guild_command["name"] not in __check_guild_commands[_guild_id]:
self.__guild_commands[_guild_id]["clean"] = False
self.__guild_commands[_guild_id]["commands"].append(_guild_command)
Expand Down