diff --git a/src/localization/en_gb/general/en_gb_moderation.lang b/src/localization/en_gb/general/en_gb_moderation.lang index 5bf5e7b..164fc94 100644 --- a/src/localization/en_gb/general/en_gb_moderation.lang +++ b/src/localization/en_gb/general/en_gb_moderation.lang @@ -57,6 +57,9 @@ Failed to restore member roles. [INFRACTION_ALREADY_RESOLVED] The infraction is already resolved +[INFRACTION_NOT_RESOLVED] +The infraction is not resolved + [INFRACTION_EDIT_DURATION_RESOLVED] Cannot edit duration of a resolved infraction. diff --git a/src/structure/client/RateLimiter.js b/src/structure/client/RateLimiter.js index ebd108f..805005d 100644 --- a/src/structure/client/RateLimiter.js +++ b/src/structure/client/RateLimiter.js @@ -158,21 +158,13 @@ class RateLimiter { } - queueSendEmbed(channel, message) { - //TODO - } - - async sendEmbed(channel) { - //TODO - } - /** * Limit sending of messages to one every x seconds. * Useful for stopping multiple instances of "Invites aren't permitted" being sent * * @param {TextChannel} channel channel in which to send * @param {Object} message the message object to send, passed directly to channel.send - * @param {Number} [limit=15] how frequently the message can send + * @param {Number} [limit=15] how frequently the message can send in seconds * @param {String} utility Limit by utility, ex invitefilter or messagefilter - so they don't overlap * @returns {Promise} The message object of the sent message * @memberof RateLimiter diff --git a/src/structure/client/wrappers/GuildWrapper.js b/src/structure/client/wrappers/GuildWrapper.js index bf545a6..d2ba0f9 100644 --- a/src/structure/client/wrappers/GuildWrapper.js +++ b/src/structure/client/wrappers/GuildWrapper.js @@ -276,8 +276,9 @@ class GuildWrapper { return this.guild.roles; } + // Boost tier get premiumTier() { - return this._settings.premium; + return this.guild.premiumTier; } // Primarily used by the API