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)
|
* Ring the user's phone / PC (call)
|
||||||
* @param {UserResolvable[]} [recipients] Array of recipients
|
* @param {UserResolvable[]} [recipients] Array of recipients
|
||||||
* @returns {Promise<any>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
ring(recipients) {
|
ring(recipients) {
|
||||||
if (!recipients || !Array.isArray(recipients) || recipients.length == 0) {
|
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
|
* Send Friend Request to the user
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
|
|||||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -3497,7 +3497,6 @@ export class User extends PartialTextBasedChannel(Base) {
|
|||||||
public setNote(note: string | null | undefined): Promise<this>;
|
public setNote(note: string | null | undefined): Promise<this>;
|
||||||
public toString(): UserMention;
|
public toString(): UserMention;
|
||||||
public getProfile(guildId?: Snowflake): Promise<any>;
|
public getProfile(guildId?: Snowflake): Promise<any>;
|
||||||
public ring(): Promise<void>;
|
|
||||||
public sendFriendRequest(): Promise<boolean>;
|
public sendFriendRequest(): Promise<boolean>;
|
||||||
public deleteRelationship(): Promise<boolean>;
|
public deleteRelationship(): Promise<boolean>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user