fix: remove deprecated ring method from User class and update return type in GroupDMChannel

This commit is contained in:
Elysia
2024-11-27 16:21:27 +07:00
parent ee0277a872
commit 5f9ac34780
3 changed files with 1 additions and 15 deletions

View File

@@ -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) {

View File

@@ -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}

1
typings/index.d.ts vendored
View File

@@ -3497,7 +3497,6 @@ export class User extends PartialTextBasedChannel(Base) {
public setNote(note: string | null | undefined): Promise<this>;
public toString(): UserMention;
public getProfile(guildId?: Snowflake): Promise<any>;
public ring(): Promise<void>;
public sendFriendRequest(): Promise<boolean>;
public deleteRelationship(): Promise<boolean>;
}