From 7068e7f194bd5a46198985083bca327100250e63 Mon Sep 17 00:00:00 2001 From: profitroll Date: Sun, 19 May 2024 15:03:01 +0200 Subject: [PATCH] PycordBot.debug_guilds is now only set when debug is on --- src/libbot/pycord/classes/bot.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libbot/pycord/classes/bot.py b/src/libbot/pycord/classes/bot.py index d521532..829961b 100644 --- a/src/libbot/pycord/classes/bot.py +++ b/src/libbot/pycord/classes/bot.py @@ -39,13 +39,14 @@ class PycordBot(Bot): self.config = config super().__init__( + debug_guilds=( + self.config["bot"]["debug_guilds"] if self.config["debug"] else None + ), + owner_ids=self.config["bot"]["owners"], *args, **kwargs, ) - self.owner_ids: List[int] = self.config["bot"]["owners"] - self.debug_guilds: List[int] = self.config["bot"]["debug_guilds"] - self.bot_locale: BotLocale = BotLocale( default_locale=self.config["locale"], locales_root=(Path("locale") if locales_root is None else locales_root),