Hello,
I have a question related to the GuildMemberUpdate event: sometimes when a member modifies his nickname, my verification doesn't work even though no role has been added. Could this be due to the cache being emptied after a while, for example? Would it be possible to check the user's roles in oldMember?
data: {
name: Events.GuildMemberUpdate,
once: false
},
async execute(client: Client, oldMember: GuildMember | PartialGuildMember, newMember: GuildMember) {
const oldMemberRoles = oldMember.roles.cache;
const newMemberRoles = newMember.roles.cache;
if (oldMemberRoles.size === newMemberRoles.size) return;
console.log('roles edited'); // Logs when a member change his name
}
)

Other Interactions: Context Menus
no clue then
(event)
Application Commands - Bulk Overwrite Global Application Commands



