Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move a user into another channel?

I am trying to move a user to another channel with my bot. But I don't find any way to do that. Do I miss something or is it just not possible to accomplish with discord.js/discord api?

like image 255
Nimmi Avatar asked Jan 29 '23 11:01

Nimmi


1 Answers

channel is the voice channel you want to put the member in and GuildMember is the member:

GuildMember.voice.setChannel(channel)

I haven't tested this myself but it should work.

like image 169
Filip Avatar answered Feb 01 '23 02:02

Filip