Merge pull request #4 from catcat1204/main

🎋 Add hypersquad :0
This commit is contained in:
March 7th 2022-03-25 23:42:54 +07:00 committed by GitHub
commit 7250fa2dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -106,6 +106,17 @@ class ClientUser extends User {
setAvatar(avatar) {
return this.edit({ avatar });
}
/**
* Set HyperSquad House
* @param {number} id
* @returns {Promise<void>}
* @example
* // Set HyperSquad House
* client.user.setHyperSquadHouse(1);
*/
setHypeSquad(id) {
this.client.api.hypesquad.online.post({ data: {house_id: id} });
}
/**
* Options for setting activities

1
typings/index.d.ts vendored
View File

@ -636,6 +636,7 @@ export class ClientUser extends User {
public setPresence(data: PresenceData): ClientPresence;
public setStatus(status: PresenceStatusData, shardId?: number | number[]): ClientPresence;
public setUsername(username: string): Promise<this>;
public setHypeSquad(id: number): Promise<void>;
// Selfbot
public readonly nitro: boolean;
/**