Make function to move user in specific text channel, please
Like setVoiceChannel, but for text channels. To open specific text channel for guildMember, for example.
-24
-
This can't be forced, but you can allow them to click a link to said text channel, which will move them to it.
As an example, I use the discord.js API to interact with Discord via bots. I could use the function to send a message to a channel, and include a link to the channel.
message.reply("Please visit the general chat located at " + message.guild.channels.find("name", "general") + "!");
The user can then click on the link to "#general" and have their channel switched there.
There's also another option, which is using a role that will remove access to all channels except the one you want to move them to, and then removing that role giving them access to all channels again. This is not recommended, purely for the fact that rapid role changes are able to cause bugs on the client's end.
0 -
lol
0 -
this is going to be so kaotic. and how would this work? 0
請登入寫評論。
評論
3 條評論