feat: new class Call

This commit is contained in:
Elysia
2023-03-05 17:05:40 +07:00
parent 11ac55fcf0
commit ee906b544e
7 changed files with 94 additions and 15 deletions

View File

@@ -563,6 +563,19 @@ class ClientUser extends User {
else this._packageName = null;
return this;
}
/**
* Stop ringing
* @param {ChannelResolvable} channel DMChannel | GroupDMChannel
* @returns {Promise<void>}
*/
stopRinging(channel) {
const id = this.client.channels.resolveId(channel);
if (!channel) return false;
return this.client.api.channels(id).call['stop-ringing'].post({
data: {},
});
}
}
module.exports = ClientUser;