chore(release): version

This commit is contained in:
Cinnamon
2022-06-26 13:40:26 +07:00
parent c097deeab4
commit 736238f3df
11 changed files with 78 additions and 29 deletions

View File

@@ -388,6 +388,20 @@ class Client extends BaseClient {
this.token = null;
}
/**
* Logs out, terminates the connection to Discord, destroys the client and destroys the token.
* @returns {Promise<void>}
*/
async logout() {
await this.api.auth.logout.post({
data: {
provider: null,
voip_provider: null,
},
});
this.destroy();
}
/**
* Options used when fetching an invite from Discord.
* @typedef {Object} ClientFetchInviteOptions