chore(release): version
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user