From 1677273f1d25f318cf19d21968f4c4f66202be15 Mon Sep 17 00:00:00 2001 From: kieranrobson Date: Thu, 12 May 2022 01:19:15 +0100 Subject: [PATCH] Fixed ids regarding paid member --- commands/embeds/paidmember.js | 12 ++++++++++-- events/guildScheduledEvent.js | 1 - events/modalSubmitInteraction.js | 5 +++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/commands/embeds/paidmember.js b/commands/embeds/paidmember.js index 8e56a45..38f3b09 100644 --- a/commands/embeds/paidmember.js +++ b/commands/embeds/paidmember.js @@ -17,15 +17,23 @@ module.exports = { .setTimestamp() .setTitle("Paid Member!") .setDescription(`Press the button below to get access to the paid member role.`) + .addField('Benefits?', 'Come to every event\r\n Vote in AGMs and EGMs\r\n Access a special area, just for paid members\r\n Access our archive of previous events and guest talks\r\n\r\nAnd support the society you are apart of!') + .addField('Pay for a membership', 'Press the grey button below!') .setThumbnail('https://i.imgur.com/ww6wKwJ.png') const row = new discord.MessageActionRow() + .addComponents( + new discord.MessageButton() + .setURL('https://hulluniunion.com/shop?aid=304') + .setEmoji('') + .setLabel('Pay for a membership!') + .setStyle('LINK') + ) .addComponents( new discord.MessageButton() .setCustomId('paidModal') - .setEmoji('💲') - .setLabel('Code of Conduct') + .setLabel('Paid Member Request') .setStyle('PRIMARY') ) message.channel.send({ embeds: [embed], components: [row] }) diff --git a/events/guildScheduledEvent.js b/events/guildScheduledEvent.js index 8cb45ee..0aa9932 100644 --- a/events/guildScheduledEvent.js +++ b/events/guildScheduledEvent.js @@ -4,7 +4,6 @@ const discord = require('discord.js'); client.on('guildScheduledEventCreate', async guildScheduledEvent =>{ - const guild = client.guilds.cache.get('427865794467069962'); const channel = client.channels.cache.get('973686987787751534') const embed = new discord.MessageEmbed() .setColor('GREEN') diff --git a/events/modalSubmitInteraction.js b/events/modalSubmitInteraction.js index 5250677..d4fe825 100644 --- a/events/modalSubmitInteraction.js +++ b/events/modalSubmitInteraction.js @@ -3,7 +3,7 @@ const discord = require('discord.js'); client.on('modalSubmitInteraction', async (interaction) => { if(interaction.customId === 'modal-paidmember'){ - const channel = client.channels.cache.get('970027557607071754') + const execchannel = client.channels.cache.get('849708647953334282') const embed = new discord.MessageEmbed() .setTitle("New Paid Member Request") @@ -11,7 +11,8 @@ client.on('modalSubmitInteraction', async (interaction) => { .addField('Discord Tag', `${ interaction.user}`) .addField('Student Name', `${ interaction.fields.getTextInputValue("studentname")}`) .addField('Student Number',`${ interaction.fields.getTextInputValue("studentnumber")}`) - channel.send({content: '<@427866208726155274>', embeds: [embed] }); + + execchannel.send({embeds: [embed] }); await interaction.deferReply({ ephemeral: true }) interaction.followUp({ content: 'Your request has been sent to execs!', ephemeral: true })