mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
ESLint stuff...
This commit is contained in:
@@ -1,26 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
class Channel {
|
||||
constructor(client, data, guild) {
|
||||
this.client = client;
|
||||
this.typingMap = {};
|
||||
this.typingTimeouts = [];
|
||||
if (guild) {
|
||||
this.guild = guild;
|
||||
}
|
||||
constructor(client, data, guild) {
|
||||
this.client = client;
|
||||
this.typingMap = {};
|
||||
this.typingTimeouts = [];
|
||||
if (guild) {
|
||||
this.guild = guild;
|
||||
}
|
||||
|
||||
if (data) {
|
||||
this.setup(data);
|
||||
}
|
||||
}
|
||||
if (data) {
|
||||
this.setup(data);
|
||||
}
|
||||
}
|
||||
|
||||
setup(data) {
|
||||
this.id = data.id;
|
||||
}
|
||||
setup(data) {
|
||||
this.id = data.id;
|
||||
}
|
||||
|
||||
delete() {
|
||||
return this.client.rest.methods.DeleteChannel(this);
|
||||
}
|
||||
delete() {
|
||||
return this.client.rest.methods.deleteChannel(this);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Channel;
|
||||
|
||||
Reference in New Issue
Block a user