mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
refactor(VoiceChannel): use Permissions.FLAGS in speakable (#3780)
This commit is contained in:
@@ -88,7 +88,7 @@ class VoiceChannel extends GuildChannel {
|
|||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get speakable() {
|
get speakable() {
|
||||||
return this.permissionsFor(this.client.user).has('SPEAK', false);
|
return this.permissionsFor(this.client.user).has(Permissions.FLAGS.SPEAK, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user