Add HyperSquad

This commit is contained in:
Cat Cat 2022-03-25 22:57:38 +07:00 committed by GitHub
parent fc7cf55efa
commit 8b4ac00991
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,17 @@ class ClientUser extends User {
setAvatar(avatar) { setAvatar(avatar) {
return this.edit({ 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 * Options for setting activities