Abwegig
Abwegig
DIAdiscord.js - Imagine a boo! 👻
Created by Abwegig on 5/15/2024 in #djs-questions
Weird error in connection with mongodb
I'm getting this error out of nowhere Error: https://pastebin.com/XEprvax6 Code: https://pastebin.com/F8bPhQuy I'm free for feedback!
4 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Abwegig on 3/22/2024 in #djs-questions
Still get this error
I dont know why I always get this error DiscordAPIError[50035]: Invalid Form Body name[BASE_TYPE_REQUIRED]: This field is required at handleErrors (C:\Users\tills\Desktop\Coding\TicketSystem\node_modules@discordjs\rest\dist\index.js:722:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async SequentialHandler.runRequest (C:\Users\tills\Desktop\Coding\TicketSystem\node_modules@discordjs\rest\dist\index.js:1120:23) at async SequentialHandler.queueRequest (C:\Users\tills\Desktop\Coding\TicketSystem\node_modules@discordjs\rest\dist\index.js:953:14) at async _REST.request (C:\Users\tills\Desktop\Coding\TicketSystem\node_modules@discordjs\rest\dist\index.js:1266:22) at async GuildChannelManager.create (C:\Users\tills\Desktop\Coding\TicketSystem\node_modules\discord.js\src\managers\GuildChannelManager.js:171:18) { 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, default_thread_rate_limit_per_user: undefined, available_tags: undefined, default_reaction_emoji: undefined, default_auto_archive_duration: undefined, default_sort_order: undefined, default_forum_layout: undefined } }, rawError: { message: 'Invalid Form Body', code: 50035, errors: { name: [Object] } }, code: 50035, status: 400, method: 'POST', url: 'https://discord.com/api/v10/guilds/1054747239559467060/channels' } This is my Code: guild.channels .create(selectedValue, { type: "GUILD_TEXT", parent: categoryID, }) .then((channel) => { console.log(Textkanal erstellt: ${channel}); ticketChannel.send( Ticket created for ${interaction.user} with reason: ${selectedValue} ); }) .catch(console.error);
5 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Abwegig on 3/21/2024 in #djs-questions
How can I stop people from adding other users to a thread using @Username ?
.
2 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Abwegig on 3/17/2024 in #djs-questions
How to ping a role an a thread but not adding them to it
I want, that the member with the role get a notification and see that there is a new thread, but I don't want to add them to it.
3 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Abwegig on 3/15/2024 in #djs-questions
How can I create a private thread? ([email protected])
I tried this type: "GUILD_PRIVATE_THREAD" and that type: ChannelType.PrivateThread, both didn't work. Thanks for help!
7 replies