src/Database/MongoProvider.js
/**
     * Update GuildConfig in the DB.
     * Update the specific key with the value given as third parameters.
     * Specify the guild with the guild ID.
     * Generic method to update Database.
     *
     * @param {String} key - The identifier in the Database
     * @param {String} gID - The guild ID to update
     * @param {updateDBVal} value - The value to update in the DB
     * @returns {Promise<Boolean>} Whether the request was successful or not
     *
     * @memberof MongoProvider
     */
Update GuildConfig in the DB.
Update the specific key with the value given as third parameters.
Specify the guild with the guild ID.
Generic method to update Database.

@param {String} key - The identifier in the Database
@param {String} gID - The guild ID to update
@param {updateDBVal} value - The value to update in the DB
@returns {Promise} Whether the request was successful or not


Update GuildConfig in the DB . Update the specific key with the value given as third parameters . Specify the guild with the guild ID . Generic method to update Database . @param { String } key - The identifier in the Database @param { String } gID - The guild ID to update @param { updateDBVal } value - The value to update in the DB @returns { Promise } Whether the request was successful or not
updateGuild(key, gID, value) {
        return this.GuildSchema.updateOne( {
            guildID: gID,
        },
        {
            $set: {
                [key]: value,
                updatedAt: new Date(),
            },
        } ).lean().exec()
            .then(res => !!res.nModified);
    }
updateGuild ( key , gID , value ) { return this . GuildSchema . updateOne ( { guildID : gID , } , { $set : { [ key ] : value , updatedAt : new Date ( ) , } , } ) . lean ( ) . exec ( ) . then ( res => ! ! res . nModified ) ; }
Update GuildConfig in the DB.
Update GuildConfig in the DB .