From 73e9ba9a254bc9846167b4212a90a938fbb719d4 Mon Sep 17 00:00:00 2001 From: ayntee Date: Sat, 26 Dec 2020 10:17:54 +0400 Subject: [PATCH] fix: DELETE request instead of PATCH --- src/structures/emoji.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/emoji.ts b/src/structures/emoji.ts index 261de63..7e78e1e 100644 --- a/src/structures/emoji.ts +++ b/src/structures/emoji.ts @@ -52,7 +52,7 @@ export class Emoji extends Base { /** Delete the given emoji. Requires the MANAGE_EMOJIS permission. Returns `true` on success. Fires a Guild Emojis Update Gateway event. */ async delete(): Promise { if (this.guild === undefined) return false - await this.client.rest.patch(EMOJI(this.guild.id, this.id)) + await this.client.rest.delete(EMOJI(this.guild.id, this.id)) return true }