Set up for add role button
parent
cb0442c53d
commit
58860ba1fe
|
@ -78,6 +78,11 @@ client.on("interactionCreate", async (interaction) => {
|
|||
await interaction.reply({ content: 'Message has been deleted', ephemeral: true});
|
||||
}
|
||||
|
||||
if(interaction.customId == "addrole")
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -12,6 +12,13 @@ client.on('modalSubmitInteraction', async (interaction) => {
|
|||
.addField('Student Name', `${ interaction.fields.getTextInputValue("studentname")}`)
|
||||
.addField('Student Number',`${ interaction.fields.getTextInputValue("studentnumber")}`)
|
||||
const row = new discord.MessageActionRow()
|
||||
.addComponents(
|
||||
new discord.MessageButton()
|
||||
.setCustomId('addrole')
|
||||
.setEmoji('')
|
||||
.setLabel('Add Role')
|
||||
.setStyle('SUCCESS')
|
||||
)
|
||||
.addComponents(
|
||||
new discord.MessageButton()
|
||||
.setCustomId('deletemessage')
|
||||
|
|
Loading…
Reference in New Issue