channel_id[NUMBER_TYPE_COERCE]: Value "[object Object]" is not snowflake.

Can someone explain to me why the text channel is not created once an option is selected from the selectmenu? Also, can I ask you for advice on how to structure a ticket log such as a transcript of what happened in the chat ticket created? That's the errors node:events:497 throw er; // Unhandled 'error' event ^ DiscordAPIError[50035]: Invalid Form Body channel_id[NUMBER_TYPE_COERCE]: Value "[object Object]" is not snowflake. at handleErrors (/home/container/node_modules/@discordjs/rest/dist/index.js:730:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:1133:23) at async SequentialHandler.queueRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:963:14) at async _REST.request (/home/container/node_modules/@discordjs/rest/dist/index.js:1278:22) at async GuildChannelManager.fetch (/home/container/node_modules/discord.js/src/managers/GuildChannelManager.js:387:20) at async Client.<anonymous> (/home/container/index.js:240:23) Emitted 'error' event on Client instance at: at emitUnhandledRejectionOrErr (node:events:402:10) at process.processTicksAndRejections (node:internal/process/task_queues:84:21) { requestBody: { files: undefined, json: undefined }, rawError: { message: 'Invalid Form Body', code: 50035, errors: { channel_id: { _errors: [ { code: 'NUMBER_TYPE_COERCE', message: 'Value "[object Object]" is not snowflake.' } ] } } }, code: 50035, status: 400, method: 'GET', url: 'https://discord.com/api/v10/channels/[object Object]' } Node.js v20.13.1
1 Reply
d.js toolkit
d.js toolkit2mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP