Added delete button to paid member embed

imgbot
kieranrobson 2022-05-13 01:48:11 +01:00
parent 8e1a726819
commit 3cbf56f400
2 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,17 @@
const discord = require("discord.js");
const { emit } = require("../..");
module.exports = {
name: "simjoin",
aliases: [''],
/**
*
* @param {Client} client
* @param {Message} message
* @param {String[]} args
*/
run: async (client, message, args) => {
client,emit('guildMemberAdd', guildmember)
return `Join Simulated.`
},
};

View File

@ -11,8 +11,15 @@ client.on('modalSubmitInteraction', async (interaction) => {
.addField('Discord Tag', `${ interaction.user}`)
.addField('Student Name', `${ interaction.fields.getTextInputValue("studentname")}`)
.addField('Student Number',`${ interaction.fields.getTextInputValue("studentnumber")}`)
execchannel.send({embeds: [embed] });
const row = new discord.MessageActionRow()
.addComponents(
new discord.MessageButton()
.setCustomId('paidmemberdelete')
.setEmoji('')
.setLabel('Delete Membership')
.setStyle('DANGER')
)
execchannel.send({embeds: [embed], rows: [row] });
await interaction.deferReply({ ephemeral: true })
interaction.followUp({ content: 'Your request has been sent to execs!', ephemeral: true })