Set up for add role button

imgbot
kieranrobson 2022-05-13 12:11:05 +01:00
parent cb0442c53d
commit 58860ba1fe
2 changed files with 12 additions and 0 deletions

View File

@ -78,6 +78,11 @@ client.on("interactionCreate", async (interaction) => {
await interaction.reply({ content: 'Message has been deleted', ephemeral: true});
}
if(interaction.customId == "addrole")
{
}

View File

@ -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')