From fc7cf55efae1f605f321eb4008f189ebed00b87c Mon Sep 17 00:00:00 2001 From: Cat Cat <67152874+catcat1204@users.noreply.github.com> Date: Fri, 25 Mar 2022 22:56:20 +0700 Subject: [PATCH 1/2] Add Hypersquad --- typings/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/typings/index.d.ts b/typings/index.d.ts index 1a4e556..7287a56 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -633,6 +633,7 @@ export class ClientUser extends User { public setPresence(data: PresenceData): ClientPresence; public setStatus(status: PresenceStatusData, shardId?: number | number[]): ClientPresence; public setUsername(username: string): Promise; + public setHypeSquad(id: number): Promise; // Selfbot public readonly nitro: boolean; /** From 8b4ac009912de3d0d4b06d192f54a6703621f8d2 Mon Sep 17 00:00:00 2001 From: Cat Cat <67152874+catcat1204@users.noreply.github.com> Date: Fri, 25 Mar 2022 22:57:38 +0700 Subject: [PATCH 2/2] Add HyperSquad --- src/structures/ClientUser.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index 904a223..3ac27b7 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -106,6 +106,17 @@ class ClientUser extends User { setAvatar(avatar) { return this.edit({ avatar }); } + /** + * Set HyperSquad House + * @param {number} id + * @returns {Promise} + * @example + * // Set HyperSquad House + * client.user.setHyperSquadHouse(1); + */ + setHypeSquad(id) { + this.client.api.hypesquad.online.post({ data: {house_id: id} }); + } /** * Options for setting activities