Skip to content
Advertisement

!createcategory | doesn’t create category | What to do? Discord.js

JavaScript

The code used to work, but somehow I forgot what I did with it and didn’t code for 2 months or so… The function should be – when you write !createcategory it should create a category with voice and text channels in it. The category should be named by your user name. There is no error in the console, please help, thanks!

Advertisement

Answer

I’m not sure what’s causing your issue, but try setting the parent of the text and voice channels when you create the channel:

JavaScript

You could also use ES2017’s async/await:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement