简体   繁体   中英

How can I check if a user has permissions in a specific voice channel?

I created a command that changes voice permissions, but what I want is if the user doesn't have Manage Channel on that voice channel they can't use it. How do I do this? I know about member.permissions.has() but that doesn't check for permissions in the specific voice channel. Any ideas?

permissionsIn方法在这里很有用:

member.permissionsIn(theVoiceChannel).has('MANAGE_CHANNELS')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM