typing: method for User

This commit is contained in:
March 7th
2022-07-15 17:41:26 +07:00
parent 98467dc92d
commit d09b7a7bf5
3 changed files with 7 additions and 1 deletions

View File

@@ -361,6 +361,10 @@ class User extends Base {
return this.client.rest.cdn.Banner(this.id, this.banner, format, size, dynamic);
}
/**
* Ring the user's phone / PC (call)
* @returns {Promise<boolean>}
*/
ring() {
if (!this.dmChannel?.id) return Promise.reject(new Error('USER_NO_DM_CHANNEL'));
if (!this.client.user.voice?.channelId || !this.client.callVoice) {