mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Add client.destroy();
This commit is contained in:
@@ -599,7 +599,7 @@ class Guild {
|
||||
},
|
||||
});
|
||||
this._checkChunks();
|
||||
setTimeout(() => reject(new Error('members not here in time')), 120 * 1000);
|
||||
this.client.setTimeout(() => reject(new Error('members not here in time')), 120 * 1000);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -243,7 +243,7 @@ class Message {
|
||||
*/
|
||||
delete(timeout = 0) {
|
||||
return new Promise((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
this.client.setTimeout(() => {
|
||||
this.client.rest.methods.deleteMessage(this)
|
||||
.then(resolve)
|
||||
.catch(reject);
|
||||
|
||||
@@ -151,7 +151,7 @@ class TextBasedChannel {
|
||||
setTyping(typing) {
|
||||
clearInterval(this.client.user._typing.get(this.id));
|
||||
if (typing) {
|
||||
this.client.user._typing.set(this.id, setInterval(() => {
|
||||
this.client.user._typing.set(this.id, this.client.setInterval(() => {
|
||||
this.client.rest.methods.sendTyping(this.id);
|
||||
}, 4000));
|
||||
this.client.rest.methods.sendTyping(this.id);
|
||||
|
||||
Reference in New Issue
Block a user