[英]Check if member is in a Voice Channel discord.js v13
如何使用 discord.js v13 檢查特定成員是否在任何語音通道中? 我只找到了關於 discord.js v12 的答案,但沒有更新的答案。
您可以使用GuildMember.voice
。
https://discord.js.org/#/docs/discord.js/v13/class/GuildMember?scrollTo=voice
if (member.voice.channelId) {
console.log('User is in voice channel!')
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.