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 }