Added delete button to paid member embed
parent
8e1a726819
commit
3cbf56f400
|
@ -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.`
|
||||
},
|
||||
};
|
|
@ -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 })
|
||||
|
||||
|
|
Loading…
Reference in New Issue