mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(GuildEmoji): verify MANAGE_EMOJIS permission from Guild#me
This commit is contained in:
@@ -52,7 +52,7 @@ class GuildEmoji extends Emoji {
|
||||
*/
|
||||
get deletable() {
|
||||
return !this.managed &&
|
||||
this.channel.permissionsFor(this.client.user).has(Permissions.FLAGS.MANAGE_EMOJIS);
|
||||
this.guild.me.hasPermission(Permissions.FLAGS.MANAGE_EMOJIS);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
2
typings
2
typings
Submodule typings updated: 7c02f063fd...69620aec32
Reference in New Issue
Block a user