DiscordAPIError[50035] Invalid Form Body - but WHERE
hello, I am coding a setup command for my discord bot, in which it should create a text channel and setpermissions for itself. now i am getting this error:
djs version: 14.6.0
setup.js code: https://hastebin.com/ovojoyemes.typescript
error trace:
Hastebin: Send and Save Text or Code Snippets for Free | Toptal®
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
6 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
slashCreate is an event emitted by my bot if the interaction is a slashCommand :)
line 89 I create the channel
<GuildChannelManager>.create()
takes a single object param now
the name should be in the options object in the name
option
as a side note, the type
should be a number for which you can use the ChannelType
enumok thank you!
ok so i fixed the channel creation stuff. now why wont it send a message in it after the creation? It worked before lol
line 143
I updated the send attachment to be in an options object
when you call
createChannel
, it looks like you pass createChannel
instead of what I imagine was supposed to be createdChannel
which is to say you pass the function itself as a param rather than a channelI hate typos
thank you so much