pub(crate) fn is_mod(args: &Args) -> Result<bool> {
    use std::str::FromStr;

    if let Some((_, role_id, _)) = RoleIdCache::get_by_name("mod")? {
        Ok(has_role(args, &RoleId::from(u64::from_str(&role_id)?))?)
    } else {
        Ok(false)
    }
}
/// Return whether or not the user is a mod.  
Return whether or not the user is a mod.
Return whether or not the user is a mod .
pub(crate) fn is_mod(args: &Args) -> Result<bool> {
    use std::str::FromStr;
    if let Some((_, role_id, _)) = RoleIdCache::get_by_name("mod")? {
        Ok(has_role(args, &RoleId::from(u64::from_str(&role_id)?))?)
    } else {
        Ok(false)
    }
}
pub ( crate ) fn is_mod ( args : & Args ) -> Result < bool > { use std :: str :: FromStr ; if let Some ( ( _ , role_id , _ ) ) = RoleIdCache :: get_by_name ( " " ) ? { Ok ( has_role ( args , & RoleId :: from ( u64 :: from_str ( & role_id ) ? ) ) ? ) } else { Ok ( false ) } }
Return whether or not the user is a mod.
Return whether or not the user is a mod .
args
&Args
args
&Args