mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
REST API speed improvement (#1577)
This commit is contained in:
@@ -135,7 +135,7 @@ class GroupDMChannel extends Channel {
|
||||
const data = this.client.user.bot ?
|
||||
{ nick, access_token: accessTokenOrUser } :
|
||||
{ recipient: id };
|
||||
return this.client.api.channels(this.id).recipients(id).put({ data })
|
||||
return this.client.api.channels[this.id].recipients[id].put({ data })
|
||||
.then(() => this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user