Make function to move user in specific text channel, please

댓글

댓글 3개

  • Gear

    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
    댓글 작업 고유 링크
  • Dragon_VV

    lol

    0
    댓글 작업 고유 링크
  • thetechguy
    this is going to be so kaotic. and how would this work?
    0
    댓글 작업 고유 링크

댓글을 남기려면 로그인하세요.