N
N
Nikita Kudrin2020-08-07 00:43:14
Node.js
Nikita Kudrin, 2020-08-07 00:43:14

How to create a new channel when posting to a channel?

Hello, I want to make my own reporting system on my Discord server.
Can you tell me how to make the bot create a new channel in a certain category when reporting to the "Help" channel and the administration could accept this issue and close it?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-08-07
@HepkaPlay

your question is too general, I will only tell you about creating a channel:

bot.on("message", message => {
   if (message.content === prefix + "помощь"){
   message.guild.createChannel("название-канала", "text") // text - тип канала
   }
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question