This commit is contained in:
DjDeveloperr 2020-12-29 11:47:36 +05:30
parent 8463e59d4f
commit 2ddb6bf5a5

View file

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