'DiscordAPIError Invalid Form Body' when creating channel
Hello there. Basically, I am trying to create a text channel using the following code:
But whenever the code runs, I get the following error:
Not really sure why. If someone could help me, that would be awesome. Thank you for your time and help, I greatly appreciate it.
2 Replies
name should be as a string but you put it in the options object , https://discord.js.org/#/docs/discord.js/stable/class/GuildChannelManager?scrollTo=create , look at the exemples
Worked like a charm. Thanks!