mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
docs(VoiceChannel): deprecate editable (#6613)
This commit is contained in:
@@ -21,6 +21,7 @@ class VoiceChannel extends BaseGuildVoiceChannel {
|
|||||||
* Whether the channel is editable by the client user
|
* Whether the channel is editable by the client user
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
* @readonly
|
* @readonly
|
||||||
|
* @deprecated Use {@link VoiceChannel#manageable} instead
|
||||||
*/
|
*/
|
||||||
get editable() {
|
get editable() {
|
||||||
return this.manageable && this.permissionsFor(this.client.user).has(Permissions.FLAGS.CONNECT, false);
|
return this.manageable && this.permissionsFor(this.client.user).has(Permissions.FLAGS.CONNECT, false);
|
||||||
|
|||||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -2036,6 +2036,7 @@ export class Formatters extends null {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class VoiceChannel extends BaseGuildVoiceChannel {
|
export class VoiceChannel extends BaseGuildVoiceChannel {
|
||||||
|
/** @deprecated Use manageable instead */
|
||||||
public readonly editable: boolean;
|
public readonly editable: boolean;
|
||||||
public readonly speakable: boolean;
|
public readonly speakable: boolean;
|
||||||
public type: 'GUILD_VOICE';
|
public type: 'GUILD_VOICE';
|
||||||
|
|||||||
Reference in New Issue
Block a user