Set max length of confession box to 2000
This commit is contained in:
parent
645a8b2ae7
commit
ae27c7d24e
|
@ -41,6 +41,7 @@ export const data = new SlashCommandBuilder()
|
||||||
.setName("message")
|
.setName("message")
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.setDescription("What you want to confess")
|
.setDescription("What you want to confess")
|
||||||
|
.setMaxLength(2000)
|
||||||
)
|
)
|
||||||
.addStringOption(option =>
|
.addStringOption(option =>
|
||||||
option
|
option
|
||||||
|
|
|
@ -165,7 +165,7 @@ BotClient.on(Events.InteractionCreate, async interaction => {
|
||||||
isAttachment(attachment) && adminConfessionEmbed.setImage(attachment);
|
isAttachment(attachment) && adminConfessionEmbed.setImage(attachment);
|
||||||
|
|
||||||
const submitConfessionButton = new ButtonBuilder()
|
const submitConfessionButton = new ButtonBuilder()
|
||||||
.setCustomId("submitConfession")
|
.setCustomId("requestSubmit")
|
||||||
.setLabel("Submit a Confession")
|
.setLabel("Submit a Confession")
|
||||||
.setStyle(ButtonStyle.Primary);
|
.setStyle(ButtonStyle.Primary);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue