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

Submodule typings updated: 7c02f063fd...69620aec32