mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 09:56:05 -05:00
[V3 Config] Require custom group initialization before usage (#2545)
* Require custom group initialization before usage and write that data to disk * Style * add tests * remove custom info update method from drivers * clean up remnant * Turn config objects into a singleton to deal with custom group identifiers * Fix dumbassery * Stupid stupid stupid
This commit is contained in:
@@ -100,7 +100,9 @@ class Permissions(commands.Cog):
|
||||
# Note that GLOBAL rules are denoted by an ID of 0.
|
||||
self.config = config.Config.get_conf(self, identifier=78631113035100160)
|
||||
self.config.register_global(version="")
|
||||
self.config.init_custom(COG, 1)
|
||||
self.config.register_custom(COG)
|
||||
self.config.init_custom(COMMAND, 1)
|
||||
self.config.register_custom(COMMAND)
|
||||
|
||||
@commands.group()
|
||||
|
||||
Reference in New Issue
Block a user