Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

159
Views
GuildChannel doesn't have members property

I want to get list of connected users in a specific channel on voiceStateUpdate with this way:

module.exports = async (client, oldState, newState) => {
  const channel = await newState.guild.channels.fetch('719030671384772609');
}

but I don't see members property when checking the collections,

  '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
  },

Did I miss something here? or an alternative way?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

One way you can get a list of all connected users using something like this

newState.guild.channels.cache.get("channelID here").members

relevant Docs

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!