diff --git a/commands/embeds/simjoin.js b/commands/embeds/simjoin.js new file mode 100644 index 0000000..f03deae --- /dev/null +++ b/commands/embeds/simjoin.js @@ -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.` + }, +}; \ No newline at end of file diff --git a/events/modalSubmitInteraction.js b/events/modalSubmitInteraction.js index d4fe825..a55c0c5 100644 --- a/events/modalSubmitInteraction.js +++ b/events/modalSubmitInteraction.js @@ -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 })