fix: remove deprecated ring method from User class and update return type in GroupDMChannel
This commit is contained in:
@@ -295,7 +295,7 @@ class GroupDMChannel extends Channel {
|
||||
/**
|
||||
* Ring the user's phone / PC (call)
|
||||
* @param {UserResolvable[]} [recipients] Array of recipients
|
||||
* @returns {Promise<any>}
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
ring(recipients) {
|
||||
if (!recipients || !Array.isArray(recipients) || recipients.length == 0) {
|
||||
|
||||
@@ -479,19 +479,6 @@ class User extends Base {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ring the user's phone / PC (call)
|
||||
* @returns {Promise<void>}
|
||||
* @deprecated
|
||||
*/
|
||||
ring() {
|
||||
return this.client.api.channels(this.dmChannel.id).call.ring.post({
|
||||
data: {
|
||||
recipients: [this.id],
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Send Friend Request to the user
|
||||
* @type {boolean}
|
||||
|
||||
Reference in New Issue
Block a user