mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(GuildEmoji): verify MANAGE_EMOJIS permission from Guild#me
This commit is contained in:
parent
fca6d3be56
commit
6cde6decee
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
|
@ -1 +1 @@
|
|||
Subproject commit 7c02f063fdc81f1b2066d18a059d055d851884d6
|
||||
Subproject commit 69620aec32a6dd5878be2257335be1087e95c2da
|
||||
Loading…
Reference in a new issue