bugfix
This commit is contained in:
parent
ec69dd4862
commit
b635ec4c7e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user