M
M
MisterHappy2020-08-07 03:11:11
JavaScript
MisterHappy, 2020-08-07 03:11:11

How to create a channel using a command?

Hello, how do I create a discord channel using the discord.js command?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Kudrin, 2020-08-07
@MisterHappy

You can create a channel using the command as follows:

client.on("message", message => {
    if (message.content === prefix + "Команда"){
    message.guild.channels.create("Название канала", "text") // text - тип канала
    }
 })

Answered Thread: How to create a new channel when posting to a channel?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question