This is an example of how to check if a user has at least one of a number a specific roles
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
const event = context.params.event;
// Add your role IDs here
const roleIds = new Set([
'role_id_1',
'role_id_2',
]);
const userHasRole = event.member.roles.some(r => roleIds.has(r));
if (userHasRole) {
// The user has one of the roles
// Add related code here
} else {
// The user doesn't have one of the roles
// Add related code here
}