From 070b193987c5de5a130d94256e32b31ebc4e65b7 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Wed, 26 Oct 2022 18:45:25 +1100 Subject: Fix typo in user validation --- src/util/entities/User.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index 0344908d..409b4f74 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -221,21 +221,21 @@ export class User extends BaseClass { const discrim = Number(this.discriminator); if (this.discriminator.length > 4) throw FieldErrors({ - email: { + discriminator: { message: "Discriminator cannot be more than 4 digits.", code: "DISCRIMINATOR_INVALID", }, }); if (isNaN(discrim)) throw FieldErrors({ - email: { + discriminator: { message: "Discriminator must be a number.", code: "DISCRIMINATOR_INVALID", }, }); if (discrim <= 0 || discrim >= 10000) throw FieldErrors({ - email: { + discriminator: { message: "Discriminator must be a number.", code: "DISCRIMINATOR_INVALID", }, -- cgit 1.4.1