mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-09 04:38:55 -05:00
* Rename `bot.db` as `bot._config` - Continues work towards strong version guarantees - Added methods for cog use for a few things which were previously only accessible via direct access. - Retained private use in a few internal use locations, though most methods were updated away from this. - Updated documentation for shared api token users * changelog * more detail * docstring fixes * Apparently, I forgot to commit something I had locally - + a copy/paste failue in the changelog * *sigh*: * *sigh*
12 lines
392 B
ReStructuredText
12 lines
392 B
ReStructuredText
The main bot config is no longer directly accessible to cogs. New methods have been added for use where this is concerned.
|
|
New methods for this include
|
|
|
|
- ``bot.get_shared_api_tokens``
|
|
- ``bot.set_shared_api_tokens``
|
|
- ``bot.get_embed_color``
|
|
- ``bot.get_embed_colour``
|
|
- ``bot.get_admin_roles``
|
|
- ``bot.get_admin_role_ids``
|
|
- ``bot.get_mod_roles``
|
|
- ``bot.get_mod_role_ids``
|