chore: Run ci

imgbot
KieranRobson 2022-12-05 22:39:03 +00:00
parent d34ee64107
commit bafb6c1342
4 changed files with 24 additions and 22 deletions

View File

@ -43,10 +43,7 @@ module.exports = {
)
.addField('Pay for a membership', 'Press the grey button below!')
.setThumbnail('https://i.imgur.com/ww6wKwJ.png')
.setImage(
`https://i.imgur.com/ro0U7LG.png?2048`
);
.setImage(`https://i.imgur.com/ro0U7LG.png?2048`);
const row = new MessageActionRow()
.addComponents(

View File

@ -3,22 +3,24 @@ const client = require('../index');
client.on('guildMemberUpdate', async (oldMember, newMember) => {
console.log('Event fired');
const rolesAdded = newMember.roles.cache.filter(
(x) => !oldMember.roles.cache.get(x.id)
);
const rolesRemoved = oldMember.roles.cache.filter(
(x) => !newMember.roles.cache.get(x.id)
);
const rolesAdded = newMember.roles.cache.filter(x => !oldMember.roles.cache.get(x.id));
const rolesRemoved = oldMember.roles.cache.filter(x => !newMember.roles.cache.get(x.id));
if (rolesAdded.size != 0 || rolesRemoved.size != 0) {
const roleAddedString = [];
for (const role of [...rolesAdded.values()]) {
roleAddedString.push(role.toString());
}
if (rolesAdded.size != 0 || rolesRemoved.size != 0) {
const roleAddedString = [];
for (const role of [...rolesAdded.values()]) {
roleAddedString.push(role.toString());
}
const roleRemovedString = [];
for (const role of [...rolesRemoved.values()]) {
roleRemovedString.push(role.toString());
}
const roleRemovedString = [];
for (const role of [...rolesRemoved.values()]) {
roleRemovedString.push(role.toString());
}
console.log(roleAddedString)
}
});
console.log(roleAddedString);
}
});

View File

@ -66,7 +66,9 @@ client.on('guildScheduledEventCreate', async (guildScheduledEvent) => {
{ tags: 'event' },
{ title: guildScheduledEvent.name },
{
date: guildScheduledEvent.scheduledStartAt.toISOString().substring(0,10)
date: guildScheduledEvent.scheduledStartAt
.toISOString()
.substring(0, 10),
},
{ teaser: guildScheduledEvent.description },
],

View File

@ -305,7 +305,8 @@ client.on('interactionCreate', async (interaction) => {
execchannel.send({ embeds: [embed], components: [row] });
await interaction.deferReply({ ephemeral: true });
interaction.followUp({
content: 'Your request has been sent to execs! Please be patient as execs, like you, are also students!',
content:
'Your request has been sent to execs! Please be patient as execs, like you, are also students!',
ephemeral: true,
});
}