Closed rohangan closed 1 year ago
you are using code of v14
// v13 (sb, bot)
guild.channels.create('name', { type: 0 })
// v14 (bot)
guild.channels.create({ name: 'name', type: 0 })
i don't know what you are doing but looking at the error code i know you are passing an object to the first param (name) https://discordjs-self-v13.netlify.app/#/docs/docs/main/class/GuildChannelManager?scrollTo=create
name: Could not interpret "{'name': 'Text Channels', 'type': 4}" as string. < here
...
at async GuildChannelManager.create (C:\Users\threeacc\Downloads\discord-account-generator\node_modules\discord.js-selfbot-v13\src\managers\GuildChannelManager.js:176:18) { < here
...
requestData: {
json: {
name: { name: 'Text Channels', type: 4 }, < here
...
},
files: []
},
retries: 0
}
Thanks, I was able to fix the issue thanks to your solution of downgrading. The downgrading didn’t work first time for me because I did some dumb mistake
Which package has the bugs?
The core library
Issue description
hI, everything was working fine for many months and i didnt make any changes to the code but now it is showing a DISCORDAPIERROR. However it stills works when using the regular discord.js library for a regular discord bot so i assume discord must have done some updates to their api which is why the library is now outputting this error. ERROR BELOW:
Code sample
No response
Package version
i am using latest package 2.14.3
Node.js version
v16.13.0
Operating system
Windows
Priority this issue should have
High (immediate attention needed)
Checklist
Additional Information
No response