diff --git a/src/structures/VoiceChannel.js b/src/structures/VoiceChannel.js index 8b49715fd91a..860241e9c9b9 100644 --- a/src/structures/VoiceChannel.js +++ b/src/structures/VoiceChannel.js @@ -71,6 +71,15 @@ class VoiceChannel extends GuildChannel { return super.deletable && this.permissionsFor(this.client.user).has(Permissions.FLAGS.CONNECT, false); } + /** + * Whether the channel is editable by the client user + * @type {boolean} + * @readonly + */ + get editable() { + return this.manageable && this.permissionsFor(this.client.user).has(Permissions.FLAGS.CONNECT, false); + } + /** * Whether the channel is joinable by the client user * @type {boolean} diff --git a/typings/index.d.ts b/typings/index.d.ts index 99b0962e00a8..dd117d172ca4 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1148,6 +1148,7 @@ declare module 'discord.js' { constructor(guild: Guild, data?: object); public bitrate: number; public readonly connection: VoiceConnection; + public readonly editable: boolean; public readonly full: boolean; public readonly joinable: boolean; public readonly members: Collection;