Add placeholder to embds

imgbot
Kieran 2022-08-30 14:54:57 +01:00
parent f4e6b1f1d1
commit 4fdcde90aa
1 changed files with 2 additions and 0 deletions

View File

@ -63,10 +63,12 @@ client.on("interactionCreate", async (interaction) => {
.setLabel("Student Name") .setLabel("Student Name")
.setStyle("SHORT") .setStyle("SHORT")
.setCustomId("studentname") .setCustomId("studentname")
.setPlaceholder(`Joe Bloggs`)
const studentnumber = new discord.TextInputComponent() const studentnumber = new discord.TextInputComponent()
.setLabel("Student Number") .setLabel("Student Number")
.setStyle("SHORT") .setStyle("SHORT")
.setCustomId("studentnumber") .setCustomId("studentnumber")
.setPlaceholder(`202001234`)
const firstActionRow = new discord.MessageActionRow().addComponents(studentname); const firstActionRow = new discord.MessageActionRow().addComponents(studentname);
const secondActionRow = new discord.MessageActionRow().addComponents(studentnumber); const secondActionRow = new discord.MessageActionRow().addComponents(studentnumber);
modal.addComponents(firstActionRow, secondActionRow); modal.addComponents(firstActionRow, secondActionRow);