#Discord bot help

20 messages · Page 1 of 1 (latest)

scarlet pawn
#

Hello, I am making a discord bot for the first time and I encountered a problem. I want to attract the person I tag to the voice channel I'm on. It works correctly to some extent, but there is a problem: instead of pulling it to the voice chat I'm currently in, it pulls it to the voice chat I was in when I started the bot. That is, if I am not in the voice chat when starting the bot, the person I am trying to attract to the voice chat using the command will not be pulled anywhere and will give me the error "You are not in the voice chat". How can I solve this? Can anyone show me the code?

foggy terrace
scarlet pawn
foggy terrace
scarlet pawn
#

Should I specify this in the index.js section?

foggy terrace
# scarlet pawn Should I specify this in the index.js section?

Where you specify it is entirely up to you.

initialisation means instantiating an instance of some sort, typically with the new keyword.
e.g const client = new Client({ // options here }); The initialisation/instantiation is the right hand side of the statement.

scarlet pawn
foggy terrace
scarlet pawn
#

actually I'm using v14

#

I think the sources I checked are too old

foggy terrace
#

Intents.FLAGS doesn't exist, meaning your code wouldn't work if you have v14 installed, the bot wouldn't even run, the code would error at compilation

scarlet pawn
scarlet pawn
foggy terrace
foggy terrace
#

Oh. I see, You want them to be moved to the voice channel you are in. My bad. I misread a bit there

#

ignore that last message 😅

scarlet pawn
#

I learned everything I know about node.js in just the last 6 hours. So I don't know much

#

yes for example:
.vmp 384730575564701697
In this way, when the command is typed, it will be taken to the voice room I am in.