fix: Add image to paid member embed
parent
678ff02b4d
commit
448a0f9296
|
@ -42,7 +42,11 @@ module.exports = {
|
|||
'This is a manual process, executive members need to verify that you have paid your membership and then manually give you the role. **There is no notification of you receiving the role!**'
|
||||
)
|
||||
.addField('Pay for a membership', 'Press the grey button below!')
|
||||
.setThumbnail('https://i.imgur.com/ww6wKwJ.png');
|
||||
.setThumbnail('https://i.imgur.com/ww6wKwJ.png')
|
||||
.setImage(
|
||||
`https://i.imgur.com/ro0U7LG.png?2048`
|
||||
);
|
||||
|
||||
|
||||
const row = new MessageActionRow()
|
||||
.addComponents(
|
||||
|
|
|
@ -0,0 +1,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));
|
||||
|
||||
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());
|
||||
}
|
||||
|
||||
console.log(roleAddedString)
|
||||
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue