mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
chore: remove unused eslint disable comments (#8595)
This commit is contained in:
@@ -591,7 +591,6 @@ class WebSocketShard extends EventEmitter {
|
||||
}
|
||||
|
||||
this.debug(
|
||||
// eslint-disable-next-line max-len
|
||||
`[WebSocket] did not close properly, assuming a zombie connection.\nEmitting close and reconnecting again.`,
|
||||
);
|
||||
|
||||
|
||||
@@ -137,7 +137,6 @@ class GuildManager extends CachedManager {
|
||||
return super.resolveId(guild);
|
||||
}
|
||||
|
||||
/* eslint-disable max-len */
|
||||
/**
|
||||
* Options used to create a guild.
|
||||
* @typedef {Object} GuildCreateOptions
|
||||
|
||||
@@ -727,7 +727,6 @@ class Guild extends AnonymousGuild {
|
||||
return new GuildAuditLogs(this, data);
|
||||
}
|
||||
|
||||
/* eslint-disable max-len */
|
||||
/**
|
||||
* The data for editing a guild.
|
||||
* @typedef {Object} GuildEditData
|
||||
|
||||
@@ -25,7 +25,7 @@ class InteractionWebhook {
|
||||
}
|
||||
|
||||
// These are here only for documentation purposes - they are implemented by Webhook
|
||||
/* eslint-disable no-empty-function, valid-jsdoc */
|
||||
/* eslint-disable no-empty-function */
|
||||
/**
|
||||
* Sends a message with this webhook.
|
||||
* @param {string|MessagePayload|InteractionReplyOptions} options The content for the reply
|
||||
|
||||
@@ -128,7 +128,6 @@ class MessagePayload {
|
||||
let nonce;
|
||||
if (typeof this.options.nonce !== 'undefined') {
|
||||
nonce = this.options.nonce;
|
||||
// eslint-disable-next-line max-len
|
||||
if (typeof nonce === 'number' ? !Number.isInteger(nonce) : typeof nonce !== 'string') {
|
||||
throw new RangeError(ErrorCodes.MessageNonceType);
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ class Collector extends EventEmitter {
|
||||
|
||||
const onEnd = () => {
|
||||
cleanup();
|
||||
reject(this.collected); // eslint-disable-line prefer-promise-reject-errors
|
||||
reject(this.collected);
|
||||
};
|
||||
|
||||
this.on('collect', onCollect);
|
||||
|
||||
Reference in New Issue
Block a user