fix(GuildEmoji): verify MANAGE_EMOJIS permission from Guild#me

This commit is contained in:
SpaceEEC 2018-05-08 11:29:36 +02:00
parent fca6d3be56
commit 6cde6decee
No known key found for this signature in database
GPG key ID: 8C8A2E338661B871
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}
/**

@ -1 +1 @@
Subproject commit 7c02f063fdc81f1b2066d18a059d055d851884d6
Subproject commit 69620aec32a6dd5878be2257335be1087e95c2da