From 104aa4249e984ac718b1a8417830b6469b621774 Mon Sep 17 00:00:00 2001 From: ayntee Date: Fri, 25 Dec 2020 20:45:21 +0400 Subject: [PATCH] chore: consistent return type --- 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 16c22bb..1be0bc1 100644 --- a/src/structures/emoji.ts +++ b/src/structures/emoji.ts @@ -50,7 +50,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) throw new Error('Guild is undefined') + if (this.guild === undefined) return false await this.client.rest.patch(EMOJI(this.guild.id, this.id)) return true }