mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13: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
|
||||
*/
|
||||
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