This commit is contained in:
Erik 2023-12-08 15:49:57 +02:00
parent ec69dd4862
commit b635ec4c7e

View File

@ -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)