docs(VoiceChannel): deprecate editable (#6613)

This commit is contained in:
tig
2021-09-15 07:26:10 +09:00
committed by GitHub
parent 75d85f7838
commit 88e2622dde
2 changed files with 2 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ class VoiceChannel extends BaseGuildVoiceChannel {
* Whether the channel is editable by the client user
* @type {boolean}
* @readonly
* @deprecated Use {@link VoiceChannel#manageable} instead
*/
get editable() {
return this.manageable && this.permissionsFor(this.client.user).has(Permissions.FLAGS.CONNECT, false);

1
typings/index.d.ts vendored
View File

@@ -2036,6 +2036,7 @@ export class Formatters extends null {
}
export class VoiceChannel extends BaseGuildVoiceChannel {
/** @deprecated Use manageable instead */
public readonly editable: boolean;
public readonly speakable: boolean;
public type: 'GUILD_VOICE';