Add placeholder to embds
parent
f4e6b1f1d1
commit
4fdcde90aa
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue