From 88e2622ddebb8cacd264833ceb371e2fdbe512d5 Mon Sep 17 00:00:00 2001 From: tig Date: Wed, 15 Sep 2021 07:26:10 +0900 Subject: [PATCH] docs(VoiceChannel): deprecate editable (#6613) --- src/structures/VoiceChannel.js | 1 + typings/index.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/structures/VoiceChannel.js b/src/structures/VoiceChannel.js index 6904b7e97..9076278bc 100644 --- a/src/structures/VoiceChannel.js +++ b/src/structures/VoiceChannel.js @@ -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); diff --git a/typings/index.d.ts b/typings/index.d.ts index 3d4a6128d..508991550 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -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';