Utils/utility_functions.js
/**
 * Checks if an user has the alarm role 
 * @param {Discord.Message} message - the Discord Message object
 * @param {String} alarm_role - The name of the role
 */
Checks if an user has the alarm role
@param {Discord.Message} message - the Discord Message object
@param {String} alarm_role - The name of the role
Checks if an user has the alarm role @param { Discord . Message } message - the Discord Message object @param { String } alarm_role - The name of the role
function hasAlarmRole(message, alarm_role) {
    if (message.member) {
        let x = message.member.roles.cache.find(r => r.name.toLowerCase() === alarm_role.toLowerCase());
        return x !== undefined;
    }
    return false;
}
function hasAlarmRole ( message , alarm_role ) { if ( message . member ) { let x = message . member . roles . cache . find ( r => r . name . toLowerCase ( ) === alarm_role . toLowerCase ( ) ) ; return x !== undefined ; } return false ; }
Checks if an user has the alarm role
 @param {Discord.Message} message - the Discord Message object
 @param {String} alarm_role - The name of the role
Checks if an user has the alarm role @param { Discord . Message } message - the Discord Message object @param { String } alarm_role - The name of the role