This commit is contained in:
Erik 2022-05-04 02:17:38 +03:00
parent faa0abbd82
commit d29de648ed
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
3 changed files with 6 additions and 10 deletions

View File

@ -57,6 +57,9 @@ Failed to restore member roles.
[INFRACTION_ALREADY_RESOLVED] [INFRACTION_ALREADY_RESOLVED]
The infraction is already resolved The infraction is already resolved
[INFRACTION_NOT_RESOLVED]
The infraction is not resolved
[INFRACTION_EDIT_DURATION_RESOLVED] [INFRACTION_EDIT_DURATION_RESOLVED]
Cannot edit duration of a resolved infraction. Cannot edit duration of a resolved infraction.

View File

@ -158,21 +158,13 @@ class RateLimiter {
} }
queueSendEmbed(channel, message) {
//TODO
}
async sendEmbed(channel) {
//TODO
}
/** /**
* Limit sending of messages to one every x seconds. * Limit sending of messages to one every x seconds.
* Useful for stopping multiple instances of "Invites aren't permitted" being sent * Useful for stopping multiple instances of "Invites aren't permitted" being sent
* *
* @param {TextChannel} channel channel in which to send * @param {TextChannel} channel channel in which to send
* @param {Object} message the message object to send, passed directly to channel.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 * @param {String} utility Limit by utility, ex invitefilter or messagefilter - so they don't overlap
* @returns {Promise<Message>} The message object of the sent message * @returns {Promise<Message>} The message object of the sent message
* @memberof RateLimiter * @memberof RateLimiter

View File

@ -276,8 +276,9 @@ class GuildWrapper {
return this.guild.roles; return this.guild.roles;
} }
// Boost tier
get premiumTier() { get premiumTier() {
return this._settings.premium; return this.guild.premiumTier;
} }
// Primarily used by the API // Primarily used by the API