PycordBot.debug_guilds is now only set when debug is on
This commit is contained in:
parent
5b16419f20
commit
7068e7f194
@ -39,13 +39,14 @@ class PycordBot(Bot):
|
|||||||
self.config = config
|
self.config = config
|
||||||
|
|
||||||
super().__init__(
|
super().__init__(
|
||||||
|
debug_guilds=(
|
||||||
|
self.config["bot"]["debug_guilds"] if self.config["debug"] else None
|
||||||
|
),
|
||||||
|
owner_ids=self.config["bot"]["owners"],
|
||||||
*args,
|
*args,
|
||||||
**kwargs,
|
**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(
|
self.bot_locale: BotLocale = BotLocale(
|
||||||
default_locale=self.config["locale"],
|
default_locale=self.config["locale"],
|
||||||
locales_root=(Path("locale") if locales_root is None else locales_root),
|
locales_root=(Path("locale") if locales_root is None else locales_root),
|
||||||
|
Loading…
Reference in New Issue
Block a user