From b635ec4c7e3f231063b04795ebf9db6aa7f58cfb Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Fri, 8 Dec 2023 15:49:57 +0200 Subject: [PATCH] bugfix --- src/client/interfaces/Infraction.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/interfaces/Infraction.ts b/src/client/interfaces/Infraction.ts index a65320e..cc1801a 100644 --- a/src/client/interfaces/Infraction.ts +++ b/src/client/interfaces/Infraction.ts @@ -614,8 +614,8 @@ class Infraction // && Util.isUserStruct(this.#executor) && Util.isUserStruct(this.#target) ) { - const executor = this.#executor ? await this.#guild.members.fetch(this.#executor.id).catch(null) : null; - const target = this.#target ? await this.#guild.members.fetch(this.#target.id).catch(null) : null; + const executor = this.#executor ? await this.#guild.members.fetch(this.#executor.id).catch(() => null) : null; + const target = this.#target ? await this.#guild.members.fetch(this.#target.id).catch(() => null) : null; if (!executor) throw new Error('Could not get executor?'); if (!target)