We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05f60c1 commit e899d4eCopy full SHA for e899d4e
discord-bot/app.js
@@ -59,19 +59,19 @@ function createMessageWithButtons(index, chunks) {
59
content: chunks[index],
60
components: [
61
{
62
- type: 1,
+ type: 1, // Action Row container for buttons
63
64
65
- type: 2,
+ type: 2, // Button Object
66
label: 'Previous',
67
- style: 1,
+ style: 1, // Primary color
68
custom_id: `prev_${index}`,
69
disabled: index === 0, // Disable if on the first chunk
70
},
71
72
73
label: 'Next',
74
+ style: 1,// Primary color
75
custom_id: `next_${index}`,
76
disabled: index === chunks.length - 1, // Disable if on the last chunk
77
0 commit comments