bob
bob
DIAdiscord.js - Imagine an app
Created by bob on 4/26/2025 in #djs-questions
Section errors
hey everyone, i'm currently experiencing with components v2 and i'm having a little trouble experimenting with Sections this is the code:
const section = new SectionBuilder()
.addTextDisplayComponents([
textDisplay
])
.setId(1)

const container = new ContainerBuilder()
/*.addTextDisplayComponents([
textDisplay
])*/
.addSectionComponents([
section
])
.setAccentColor(Colors.Red)

interaction.reply({
components: [container],
flags: [
MessageFlags.IsComponentsV2,
MessageFlags.Ephemeral
]
})
const section = new SectionBuilder()
.addTextDisplayComponents([
textDisplay
])
.setId(1)

const container = new ContainerBuilder()
/*.addTextDisplayComponents([
textDisplay
])*/
.addSectionComponents([
section
])
.setAccentColor(Colors.Red)

interaction.reply({
components: [container],
flags: [
MessageFlags.IsComponentsV2,
MessageFlags.Ephemeral
]
})
and this is the error i get: https://pastebin.com/zSQ9Qqwa
8 replies
DIAdiscord.js - Imagine an app
Created by bob on 10/16/2024 in #djs-questions
Datastores
what's the most recommended way for a datastore in a discord bot?
5 replies
DIAdiscord.js - Imagine an app
Created by bob on 10/13/2024 in #djs-questions
How can i get ONLY the message from 1 person in a collector
No description
7 replies
DIAdiscord.js - Imagine an app
Created by bob on 10/13/2024 in #djs-questions
Waiting for a message
No description
2 replies
DIAdiscord.js - Imagine an app
Created by bob on 10/13/2024 in #djs-questions
permissionOverwrites on a new channel
No description
26 replies
DIAdiscord.js - Imagine an app
Created by bob on 10/5/2024 in #djs-questions
Application command's options
No description
7 replies