From 6dd40afd3e6fe12a4b5b4baaa41fd5fa33496e43 Mon Sep 17 00:00:00 2001 From: ayntee Date: Fri, 25 Dec 2020 20:41:21 +0400 Subject: [PATCH] Make linter happy :) --- src/structures/emoji.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structures/emoji.ts b/src/structures/emoji.ts index 51006d5..16c22bb 100644 --- a/src/structures/emoji.ts +++ b/src/structures/emoji.ts @@ -39,8 +39,8 @@ export class Emoji extends Base { } /** Modify the given emoji. Requires the MANAGE_EMOJIS permission. Returns the updated emoji object on success. Fires a Guild Emojis Update Gateway event. */ - async edit(data: ModifyGuildEmojiParams) { - if (!this.guild) throw new Error('Guild is undefined') + async edit(data: ModifyGuildEmojiParams): Promise { + if (this.guild === undefined) throw new Error('Guild is undefined') const res = await this.client.rest.patch( EMOJI(this.guild.id, this.id), data @@ -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) throw new Error('Guild is undefined') + if (this.guild === undefined) throw new Error('Guild is undefined') await this.client.rest.patch(EMOJI(this.guild.id, this.id)) return true }