Are forum posts supported for channel select menu default_values?

I'm trying to load the configured channel from the database but whenever I try to do so for a forum post it sends my message 4 times instead of once and errors on the fifth. I get a HTTPError: Internal Server Error in the logs with no useful information.
No description
5 Replies
d.js toolkit
d.js toolkit3mo 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 staff
TheRealJohan™
TheRealJohan™3mo ago
the code I ran through the evaluate command is simply this for debugging purposes:
interaction.followUp({
content: "test",
components: [
{
type: 1, // Action row
components: [
{
custom_id: "test",
default_values: [
{
type: "channel",
id: "1215980641229733938", // This is a post inside a forum
},
],
placeholder: "Select a channel...",
channel_types: [
0, // GUILD_TEXT
10, // ANNOUNCEMENT_THREAD
11, // PUBLIC_THREAD
12, // PRIVATE_THREAD
],
min_values: 0,
max_values: 1,
type: 8, // Channel select
},
],
}
]
})
interaction.followUp({
content: "test",
components: [
{
type: 1, // Action row
components: [
{
custom_id: "test",
default_values: [
{
type: "channel",
id: "1215980641229733938", // This is a post inside a forum
},
],
placeholder: "Select a channel...",
channel_types: [
0, // GUILD_TEXT
10, // ANNOUNCEMENT_THREAD
11, // PUBLIC_THREAD
12, // PRIVATE_THREAD
],
min_values: 0,
max_values: 1,
type: 8, // Channel select
},
],
}
]
})
monbrey
monbrey3mo ago
A post isnt a channel, its a thread, so I doubt it Even if it does support that though, selecting one wouldnt make it send 4 times
TheRealJohan™
TheRealJohan™3mo ago
Are you sure tho? Because I ran the same code twice here, only changed the post ID to a normal channel ID (dev-testing channel) and that one works as expected
No description
TheRealJohan™
TheRealJohan™3mo ago
Yes no worries, in the development environment they just get sent in the message for ease of use 😄 The actual code is a lot more complex than this but it basically does this
2024-03-13 12:00:24 - DEBUG - [EvalCommand] Running evaluated script:
2024-03-13 12:00:24 - DEBUG - interaction.followUp({
2024-03-13 12:00:24 - DEBUG - content: "test",
2024-03-13 12:00:24 - DEBUG - components: [
2024-03-13 12:00:24 - DEBUG - {
2024-03-13 12:00:24 - DEBUG - type: 1, // Action row
2024-03-13 12:00:24 - DEBUG - components: [
2024-03-13 12:00:24 - DEBUG - {
2024-03-13 12:00:24 - DEBUG - custom_id: "test",
2024-03-13 12:00:24 - DEBUG - default_values: [
2024-03-13 12:00:24 - DEBUG - {
2024-03-13 12:00:24 - DEBUG - type: "channel",
2024-03-13 12:00:24 - DEBUG - id: "1215980641229733938", // This is a post inside a forum
2024-03-13 12:00:24 - DEBUG - },
2024-03-13 12:00:24 - DEBUG - ],
2024-03-13 12:00:24 - DEBUG - placeholder: "Select a channel...",
2024-03-13 12:00:24 - DEBUG - channel_types: [
2024-03-13 12:00:24 - DEBUG - 0, // GUILD_TEXT
2024-03-13 12:00:24 - DEBUG - 10, // ANNOUNCEMENT_THREAD
2024-03-13 12:00:24 - DEBUG - 11, // PUBLIC_THREAD
2024-03-13 12:00:24 - DEBUG - 12, // PRIVATE_THREAD
2024-03-13 12:00:24 - DEBUG - ],
2024-03-13 12:00:24 - DEBUG - min_values: 0,
2024-03-13 12:00:24 - DEBUG - max_values: 1,
2024-03-13 12:00:24 - DEBUG - type: 8, // Channel select
2024-03-13 12:00:24 - DEBUG - },
2024-03-13 12:00:24 - DEBUG - ],
2024-03-13 12:00:24 - DEBUG - }
2024-03-13 12:00:24 - DEBUG - ]
2024-03-13 12:00:24 - DEBUG - })
2024-03-13 12:00:25 - ERROR - [EvalCommand] HTTPError: Internal Server Error
2024-03-13 12:00:25 - ERROR - at handleErrors (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/@discordjs+rest@2.2.0/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:136:9)
2024-03-13 12:00:25 - ERROR - at SequentialHandler.runRequest (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/@discordjs+rest@2.2.0/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:410:26)
2024-03-13 12:00:25 - ERROR - at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-03-13 12:00:25 - ERROR - at SequentialHandler.queueRequest (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/@discordjs+rest@2.2.0/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:168:11)
2024-03-13 12:00:25 - ERROR - at _REST.request (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/@discordjs+rest@2.2.0/node_modules/@discordjs/rest/src/lib/REST.ts:211:20)
2024-03-13 12:00:25 - ERROR - at async InteractionWebhook.send (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/discord.js@14.14.1/node_modules/discord.js/src/structures/Webhook.js:222:15)
2024-03-13 12:00:25 - ERROR - at EvalCommand.eval (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/src/commands/developer/eval.ts:151:22)
2024-03-13 12:00:25 - ERROR - at <anonymous> (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/src/commands/developer/eval.ts:71:51)
2024-03-13 12:00:25 - ERROR - at <anonymous> (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/@sapphire+framework@5.0.5/node_modules/@sapphire/framework/src/listeners/application-commands/chat-input/CoreChatInputCommandAccepted.ts:15:18)
2024-03-13 12:00:25 - ERROR - at Object.fromAsync (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/@sapphire+result@2.6.5/node_modules/@sapphire/result/src/lib/Result.ts:51:19)
2024-03-13 12:00:24 - DEBUG - [EvalCommand] Running evaluated script:
2024-03-13 12:00:24 - DEBUG - interaction.followUp({
2024-03-13 12:00:24 - DEBUG - content: "test",
2024-03-13 12:00:24 - DEBUG - components: [
2024-03-13 12:00:24 - DEBUG - {
2024-03-13 12:00:24 - DEBUG - type: 1, // Action row
2024-03-13 12:00:24 - DEBUG - components: [
2024-03-13 12:00:24 - DEBUG - {
2024-03-13 12:00:24 - DEBUG - custom_id: "test",
2024-03-13 12:00:24 - DEBUG - default_values: [
2024-03-13 12:00:24 - DEBUG - {
2024-03-13 12:00:24 - DEBUG - type: "channel",
2024-03-13 12:00:24 - DEBUG - id: "1215980641229733938", // This is a post inside a forum
2024-03-13 12:00:24 - DEBUG - },
2024-03-13 12:00:24 - DEBUG - ],
2024-03-13 12:00:24 - DEBUG - placeholder: "Select a channel...",
2024-03-13 12:00:24 - DEBUG - channel_types: [
2024-03-13 12:00:24 - DEBUG - 0, // GUILD_TEXT
2024-03-13 12:00:24 - DEBUG - 10, // ANNOUNCEMENT_THREAD
2024-03-13 12:00:24 - DEBUG - 11, // PUBLIC_THREAD
2024-03-13 12:00:24 - DEBUG - 12, // PRIVATE_THREAD
2024-03-13 12:00:24 - DEBUG - ],
2024-03-13 12:00:24 - DEBUG - min_values: 0,
2024-03-13 12:00:24 - DEBUG - max_values: 1,
2024-03-13 12:00:24 - DEBUG - type: 8, // Channel select
2024-03-13 12:00:24 - DEBUG - },
2024-03-13 12:00:24 - DEBUG - ],
2024-03-13 12:00:24 - DEBUG - }
2024-03-13 12:00:24 - DEBUG - ]
2024-03-13 12:00:24 - DEBUG - })
2024-03-13 12:00:25 - ERROR - [EvalCommand] HTTPError: Internal Server Error
2024-03-13 12:00:25 - ERROR - at handleErrors (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/@discordjs+rest@2.2.0/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:136:9)
2024-03-13 12:00:25 - ERROR - at SequentialHandler.runRequest (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/@discordjs+rest@2.2.0/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:410:26)
2024-03-13 12:00:25 - ERROR - at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-03-13 12:00:25 - ERROR - at SequentialHandler.queueRequest (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/@discordjs+rest@2.2.0/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:168:11)
2024-03-13 12:00:25 - ERROR - at _REST.request (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/@discordjs+rest@2.2.0/node_modules/@discordjs/rest/src/lib/REST.ts:211:20)
2024-03-13 12:00:25 - ERROR - at async InteractionWebhook.send (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/discord.js@14.14.1/node_modules/discord.js/src/structures/Webhook.js:222:15)
2024-03-13 12:00:25 - ERROR - at EvalCommand.eval (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/src/commands/developer/eval.ts:151:22)
2024-03-13 12:00:25 - ERROR - at <anonymous> (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/src/commands/developer/eval.ts:71:51)
2024-03-13 12:00:25 - ERROR - at <anonymous> (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/@sapphire+framework@5.0.5/node_modules/@sapphire/framework/src/listeners/application-commands/chat-input/CoreChatInputCommandAccepted.ts:15:18)
2024-03-13 12:00:25 - ERROR - at Object.fromAsync (/Users/gus.libens/Desktop/Development/GitLab-LHS/private/discord/Dodoco/node_modules/.pnpm/@sapphire+result@2.6.5/node_modules/@sapphire/result/src/lib/Result.ts:51:19)
I've tried debugging some more and fount that: - sending it as a normal message works just fine - replying to an interaction works just fine - following up on an interaction does not work and causes an internal server error - editing an interaction does not work and causes an internal server error it was an issue on discord's side but it's fixed now