我想通过这种方式获取voiceStateUpdate上特定频道的已连接用户列表:
module.exports = async (client, oldState, newState) => {
const channel = await newState.guild.channels.fetch('719030671384772609');
}但是在检查集合时,我没有看到members属性,
'channelid' => <ref *8> VoiceChannel {
type: 'GUILD_VOICE',
deleted: false,
guild: Guild {
},
guildId: '',
parentId: '',
permissionOverwrites: PermissionOverwriteManager { channel: [Circular *8] },
id: '',
name: '',
rawPosition: 2,
rtcRegion: 'hongkong',
bitrate: 64000,
userLimit: 0
},我是不是漏掉了什么?或者是另一种方式?
发布于 2021-09-21 16:05:13
https://stackoverflow.com/questions/69271839
复制相似问题