This commit is contained in:
DjDeveloperr 2020-12-29 11:47:36 +05:30
parent 8463e59d4f
commit 2ddb6bf5a5
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ export class MessageReactionsManager extends BaseManager<
/** Remove a specific Emoji from Reactions */
async removeEmoji(emoji: Emoji | string): Promise<MessageReactionsManager> {
const val = encodeURIComponent(
typeof emoji === 'object' ? emoji.id ?? emoji.name : emoji
(typeof emoji === 'object' ? emoji.id ?? emoji.name : emoji) as string
)
await this.client.rest.delete(
MESSAGE_REACTION(this.message.channel.id, this.message.id, val)