From 44088b90fea83aa29e7eac38fa13431abbc2fd8b Mon Sep 17 00:00:00 2001 From: NekoCyan <46834562+NekoCyan@users.noreply.github.com> Date: Sun, 17 Jul 2022 02:58:22 +0700 Subject: [PATCH] fix(nitroType): undefined. --- src/structures/ClientUser.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index 102c71d..446f66a 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -36,13 +36,14 @@ class ClientUser extends User { if ('token' in data) this.client.token = data.token; - /** - * Nitro state of the user - * @type {?boolean} - */ - this.nitro = Boolean(data.premium || false); - // Add (Selfbot) + if ('premium_type' in data) { + /** + * Nitro type of the client user. + * @type {?number} + */ + this.nitroType = data.premium_type; + } if ('purchased_flags' in data) { /** * Purchased state of the client user.