Utils/utility_functions.js
/**
 * Checks if a certain string contains the regular expression for a discord channel
 * @param {String} stg - A string
 */
Checks if a certain string contains the regular expression for a discord channel
@param {String} stg - A string
Checks if a certain string contains the regular expression for a discord channel @param { String } stg - A string
function isAChannel(stg) {
    const channel_regex = /<#\d+>/;
    let hasSpecifiedChannel = channel_regex.test(stg);
    return hasSpecifiedChannel;
}
function isAChannel ( stg ) { const channel_regex = / <#\d+> / ; let hasSpecifiedChannel = channel_regex . test ( stg ) ; return hasSpecifiedChannel ; }
Checks if a certain string contains the regular expression for a discord channel
 @param {String} stg - A string
Checks if a certain string contains the regular expression for a discord channel @param { String } stg - A string