mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
REST API speed improvement (#1577)
This commit is contained in:
@@ -121,7 +121,7 @@ class Emoji {
|
||||
* .catch(console.error);
|
||||
*/
|
||||
edit(data, reason) {
|
||||
return this.client.api.guilds(this.guild.id).emojis(this.id)
|
||||
return this.client.api.guilds[this.guild.id].emojis(this.id)
|
||||
.patch({ data: {
|
||||
name: data.name,
|
||||
roles: data.roles ? data.roles.map(r => r.id ? r.id : r) : [],
|
||||
|
||||
Reference in New Issue
Block a user