#Code 50035

4 messages · Page 1 of 1 (latest)

dull basinBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

dawn flame
#

• What's your exact discord.js npm list discord.js and node node -v version?

• Post the full error stack trace, not just the top part :

DiscordAPIError[50035]: Invalid Form Body
name[BASE_TYPE_REQUIRED]: This field is required
at handleErrors (/home/runner/Matchmake/node_modules/@discordjs/rest/dist/index.js:640:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/home/runner/Matchmake/node_modules/@discordjs/rest/dist/index.js:1021:23)
at async SequentialHandler.queueRequest (/home/runner/Matchmake/node_modules/@discordjs/rest/dist/index.js:862:14)
at async REST.request (/home/runner/Matchmake/node_modules/@discordjs/rest/dist/index.js:1387:22)
at async GuildChannelManager.create (/home/runner/Matchmake/node_modules/discord.js/src/managers/GuildChannelManager.js:170:18)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:394:10) {
requestBody: {
files: undefined,
json: {
name: undefined,
topic: undefined,
type: undefined,
nsfw: undefined,
bitrate: undefined,
user_limit: undefined,
parent_id: undefined,
position: undefined,
permission_overwrites: undefined,
rate_limit_per_user: undefined,
rtc_region: undefined,
video_quality_mode: undefined,
available_tags: undefined,
default_reaction_emoji: undefined,
default_auto_archive_duration: undefined,
default_sort_order: undefined,
default_forum_layout: undefined
}
},
rawError: {
code: 50035,
errors: {
name: {
_errors: [
{
code: 'BASE_TYPE_REQUIRED',
message: 'This field is required'
}
]
}
},
message: 'Invalid Form Body'
},
code: 50035,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/guilds/xxxxxxxxxxxxx/channels'
}

• Explain what exactly your issue is.

  • When calling the bot to create the voice channels the discord api error
hushed sequoia
#

seems like you're in the wrong channel, as #998942774994927646 is for @discordjs/voice issues
but in v14, <GuildChannelManager>.create() takes a single object param with a name option, not a string and an object