Eccléria
Eccléria
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
The Autocomplete did it by itself, I've not touched to this part ^^' Thanks a lot for the help !
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
No description
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
Okay now it works
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
Oh
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
No description
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
results {
fields: [ 'Choice 1', 'Choice 2', 'Choice 3' ],
emotes: [ '1️⃣', '2️⃣', '3️⃣' ]
}
results {
fields: [ 'Choice 1', 'Choice 2', 'Choice 3' ],
emotes: [ '1️⃣', '2️⃣', '3️⃣' ]
}
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
The logs from the console logs in the polls.js file:
button ButtonBuilder {
data: {
type: 2,
emoji: { id: undefined, name: '1️⃣', animated: false },
custom_id: 'polls_0',
style: 2,
label: 'Choice 1'
}
}
section SectionBuilder {
data: { type: 9 },
components: [
TextDisplayBuilder { data: [Object] },
TextDisplayBuilder { data: [Object] }
],
accessory: ButtonBuilder { data: { type: 2, data: [Object] } }
}
section ButtonBuilder {
data: {
type: 2,
data: {
type: 2,
emoji: [Object],
custom_id: 'polls_0',
style: 2,
label: 'Choice 1'
}
}
}
button ButtonBuilder {
data: {
type: 2,
emoji: { id: undefined, name: '1️⃣', animated: false },
custom_id: 'polls_0',
style: 2,
label: 'Choice 1'
}
}
section SectionBuilder {
data: { type: 9 },
components: [
TextDisplayBuilder { data: [Object] },
TextDisplayBuilder { data: [Object] }
],
accessory: ButtonBuilder { data: { type: 2, data: [Object] } }
}
section ButtonBuilder {
data: {
type: 2,
data: {
type: 2,
emoji: [Object],
custom_id: 'polls_0',
style: 2,
label: 'Choice 1'
}
}
}
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
Yeah, I've put parsePollFields in this file in gist, but it's the pollsUtils.js
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
It was just the next step because I have the same content in my code. I was looking at djs ^^
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
I've added some "console.log" in the corresponding "index.mjs" file
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
Np ^^
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
I have one, I was above the character limit ^^ I've sent bellow the full SectionBuilder https://discord.com/channels/222078108977594368/1378332978572165190/1378336247612838009
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
I'm on it
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
Oh that's right, I forgot this one. I've edited the post above to have it inside
console.log(fieldSection.toJSON());
console.log(fieldSection.toJSON());
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
SectionBuilder {
data: { type: 9 },
components: [
TextDisplayBuilder { data: [Object] },
TextDisplayBuilder { data: [Object] }
],
accessory: ButtonBuilder { data: { type: 2, data: [Object] } }
}
SectionBuilder {
data: { type: 9 },
components: [
TextDisplayBuilder { data: [Object] },
TextDisplayBuilder { data: [Object] }
],
accessory: ButtonBuilder { data: { type: 2, data: [Object] } }
}
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
I have some but skipped that part because I was above the character limit ^^
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
I have some that I used before this djs version, all working fine with ActionRows. But when trying to adapt my code to Components V2, I have this weird ButtonBuilder.
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
14.19.3
32 replies
DIAdiscord.js - Imagine an app
Created by Eccléria on 5/31/2025 in #djs-questions
Components v2 - SectionBuilder with button
I have the same issue when passing an emote ^^
ButtonBuilder {
data: {
type: 2,
data: {
type: 2,
emoji: { id: undefined, name: '1️⃣', animated: false },
custom_id: 'polls_0',
style: 2,
label: 'Choice 1'
}
}
}
ButtonBuilder {
data: {
type: 2,
data: {
type: 2,
emoji: { id: undefined, name: '1️⃣', animated: false },
custom_id: 'polls_0',
style: 2,
label: 'Choice 1'
}
}
}
32 replies