mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
Add new ESLint rules
This commit is contained in:
@@ -354,7 +354,7 @@ class RESTMethods {
|
||||
});
|
||||
}
|
||||
|
||||
// untested but probably will work
|
||||
// Untested but probably will work
|
||||
deleteGuild(guild) {
|
||||
return this.rest.makeRequest('del', Constants.Endpoints.guild(guild.id), true).then(() =>
|
||||
this.client.actions.GuildDelete.handle({ id: guild.id }).guild
|
||||
@@ -486,7 +486,7 @@ class RESTMethods {
|
||||
if (data.roles) data.roles = data.roles.map(role => role instanceof Role ? role.id : role);
|
||||
|
||||
let endpoint = Constants.Endpoints.guildMember(member.guild.id, member.id);
|
||||
// fix your endpoints, discord ;-;
|
||||
// Fix your endpoints, discord ;-;
|
||||
if (member.id === this.client.user.id) {
|
||||
const keys = Object.keys(data);
|
||||
if (keys.length === 1 && keys[0] === 'nick') {
|
||||
|
||||
@@ -43,9 +43,7 @@ class RequestHandler {
|
||||
/**
|
||||
* Attempts to get this RequestHandler to process its current queue
|
||||
*/
|
||||
handle() {
|
||||
return;
|
||||
}
|
||||
handle() {} // eslint-disable-line no-empty-function
|
||||
}
|
||||
|
||||
module.exports = RequestHandler;
|
||||
|
||||
Reference in New Issue
Block a user