Stores the main settings which will get checked
stores the Discord snowflake IDs of all guilds the bot is in
array of guild Collection
objects as defined by Discord.js
the Discord snowflake ID of the bot owner for override purposes
utility parameter which allows the Settings
object to indicate whether or not it is ready to be used
Stores the rights of users as a javascript array
creates a blank configuration template in the database for when a server has none
the discord snowflake ID of the server
Promise<boolean|Error> - returns true
when the blank config was successfully created or an error
object when an error occurs.
Gets a string of IDs of all guilds the bot is currently in
Returns all rights which have been stored in the database
Promise<{}|Error> Returns the rights object or an error object if an error occurs
returns a promise with the settings of all servers for which configurations exist within the database
Promise<Object|Error> - returns an array with all settings per server or an error object if an error occurred and no settings can be retrieved
wrapper function which will retrieve all rights and settings for all guilds and stores them in the object. This function is asynchronous in order to allow the bot's setup to be delayed in order to wait for the settings to be initialized.
Promise
Generated using TypeDoc
This object is meant to store the bot's settings on a per-server basis. The settings are permanently stored in SQL format in a database and used as a base on every bot startup.