From 164589c5516a847457444d11098981d557b6778b Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Wed, 19 Jan 2022 06:14:33 +0000 Subject: [PATCH] refactor: Remove VoiceChannel#editable (#7291) --- .../discord.js/src/structures/VoiceChannel.js | 22 ------------------- packages/discord.js/typings/index.d.ts | 2 -- 2 files changed, 24 deletions(-) diff --git a/packages/discord.js/src/structures/VoiceChannel.js b/packages/discord.js/src/structures/VoiceChannel.js index d35377152e6c..d2d06b9903fe 100644 --- a/packages/discord.js/src/structures/VoiceChannel.js +++ b/packages/discord.js/src/structures/VoiceChannel.js @@ -1,35 +1,13 @@ 'use strict'; -const process = require('node:process'); const BaseGuildVoiceChannel = require('./BaseGuildVoiceChannel'); const Permissions = require('../util/Permissions'); -let deprecationEmittedForEditable = false; - /** * Represents a guild voice channel on Discord. * @extends {BaseGuildVoiceChannel} */ class VoiceChannel extends BaseGuildVoiceChannel { - /** - * Whether the channel is editable by the client user - * @type {boolean} - * @readonly - * @deprecated Use {@link VoiceChannel#manageable} instead - */ - get editable() { - if (!deprecationEmittedForEditable) { - process.emitWarning( - 'The VoiceChannel#editable getter is deprecated. Use VoiceChannel#manageable instead.', - 'DeprecationWarning', - ); - - deprecationEmittedForEditable = true; - } - - return this.manageable; - } - /** * Whether the channel is joinable by the client user * @type {boolean} diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 9ffe8a5f30d6..6421fdc71d8a 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -2398,8 +2398,6 @@ export class Formatters extends null { } export class VoiceChannel extends BaseGuildVoiceChannel { - /** @deprecated Use manageable instead */ - public readonly editable: boolean; public readonly speakable: boolean; public type: 'GuildVoice'; public setBitrate(bitrate: number, reason?: string): Promise;