From 6cde6deceee975d76ea3abf40e87bd6ab04655f7 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Tue, 8 May 2018 11:29:36 +0200 Subject: [PATCH] fix(GuildEmoji): verify MANAGE_EMOJIS permission from Guild#me --- src/structures/GuildEmoji.js | 2 +- typings | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/GuildEmoji.js b/src/structures/GuildEmoji.js index 95d970e04..e8027ab1c 100644 --- a/src/structures/GuildEmoji.js +++ b/src/structures/GuildEmoji.js @@ -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); } /** diff --git a/typings b/typings index 7c02f063f..69620aec3 160000 --- a/typings +++ b/typings @@ -1 +1 @@ -Subproject commit 7c02f063fdc81f1b2066d18a059d055d851884d6 +Subproject commit 69620aec32a6dd5878be2257335be1087e95c2da