Fixed ids regarding paid member
parent
9060b591bb
commit
1677273f1d
|
@ -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] })
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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 })
|
||||
|
||||
|
|
Loading…
Reference in New Issue