Release 3.4.0 #19

Merged
Navy.gif merged 14 commits from alpha into beta 2024-10-02 08:25:49 +02:00
Showing only changes of commit 79f7c00670 - Show all commits

View File

@ -264,13 +264,13 @@ class Infraction
}
}
if (this.#duration)
await this.#client.moderation.handleTimedInfraction(this.json);
/* LMAOOOO PLEASE DONT JUDGE ME */
// Remove the role structures as they will cause problems when serialising for database
if (this.#data.roles)
delete this.#data.roles;
if (this.#duration)
await this.#client.moderation.handleTimedInfraction(this.json);
return this.save();
}