mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(RestMethods): typo timeout -> timed
This commit is contained in:
parent
b60ee25038
commit
ff671b2f3c
1 changed files with 2 additions and 2 deletions
|
|
@ -531,7 +531,7 @@ class RESTMethods {
|
|||
this.client.on(Constants.Events.GUILD_MEMBER_UPDATE, listener);
|
||||
const timeout = this.client.setTimeout(() => {
|
||||
this.client.removeListener(Constants.Events.GUILD_MEMBER_UPDATE, listener);
|
||||
reject(new Error('Adding the role timeout out.'));
|
||||
reject(new Error('Adding the role timed out.'));
|
||||
}, 10e3);
|
||||
|
||||
return this.rest.makeRequest('put', Endpoints.Member(member).Role(role.id), true, undefined, undefined, reason)
|
||||
|
|
@ -557,7 +557,7 @@ class RESTMethods {
|
|||
this.client.on(Constants.Events.GUILD_MEMBER_UPDATE, listener);
|
||||
const timeout = this.client.setTimeout(() => {
|
||||
this.client.removeListener(Constants.Events.GUILD_MEMBER_UPDATE, listener);
|
||||
reject(new Error('Removing the role timeout out.'));
|
||||
reject(new Error('Removing the role timed out.'));
|
||||
}, 10e3);
|
||||
|
||||
return this.rest.makeRequest('delete', Endpoints.Member(member).Role(role.id), true, undefined, undefined, reason)
|
||||
|
|
|
|||
Loading…
Reference in a new issue