cleanup
This commit is contained in:
parent
faa0abbd82
commit
d29de648ed
@ -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.
|
||||
|
||||
|
@ -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<Message>} The message object of the sent message
|
||||
* @memberof RateLimiter
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user