mirror of
https://github.com/Specoolazius/mcserver-discordbot.git
synced 2024-11-25 03:49:43 +01:00
made config immutable
This commit is contained in:
parent
11577b8be1
commit
3dce5ec623
@ -102,7 +102,19 @@ class Client(discord.Bot, ABC):
|
||||
Starts the bot and automatically gets the configured token.
|
||||
"""
|
||||
|
||||
super(Client, self).run(self.__config.auth_token)
|
||||
super(BotClient, self).run(self.__config.auth_token)
|
||||
|
||||
@property
|
||||
def config(self) -> Configs:
|
||||
"""< property >
|
||||
|
||||
The default config should not be changeable even on runtime.
|
||||
This ensures its read-only.
|
||||
|
||||
:return: Butter default config
|
||||
"""
|
||||
|
||||
return self.__config
|
||||
|
||||
@property
|
||||
def color(self) -> int:
|
Loading…
Reference in New Issue
Block a user