Comments (3)
Sorry, I'm completely new to OOP. Appreciate the help, works perfectly!
from discord.io.
If you have more questions, please join the server! https://discord.gg/0MvHMfHcTKVVmIGP
from discord.io.
Because bot, which a client
object, does not have a members
property. Even the docs don't mention that it should have. You can get the members
property on a server
object though.
You can use something like this to get the members
of a server
from a channel ID:
const serverID = bot.channels[channelID].guild_id;
const server = bot.servers[serverID];
// Now you can use members on server to get voice_channel_id
const userVoiceChannelID = server.members[userID].voice_channel_id;
from discord.io.
Related Issues (20)
- Edit embed message HOT 4
- GIF files cannot be uploaded HOT 3
- could not read
- Cannot read property 'members' of undefined
- Is it possible to log ID of a message bot is sending? HOT 1
- TravisCI on my discord bot using Discord.io HOT 2
- Purge Messages HOT 3
- moveUserTo not working
- Empty Member Object Properties HOT 3
- get all serverids the bot is connected to? HOT 1
- Getting all the Channels (including Direct Message Channels) the Client is connected to HOT 2
- How to get userid from username HOT 3
- I cant start my bot HOT 4
- How to check if bot is streaming audio in a channel? HOT 1
- Audio playback doesn't work HOT 1
- Is it possible to upload a file directly via buffer? HOT 2
- High-severity security alert in dependency: ws
- adding welcome message to specific channel HOT 2
- node bot.js not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord.io.