Package dev.jaims.kda.user

Functions

hasRole
Link copied to clipboard
fun Member.hasRole(id: Long): Boolean
Check if a member has a role by the id of the role
fun Member.hasRole(ids: List<Long>): Boolean
Check if a Member has a role in a list of roles
fun Member.hasRole(role: Role): Boolean
Check if a memebr has a role by the id of the role
fun User.hasRole(id: Long, guild: Guild): Boolean?
Check if a user has a role in a specific guild Will require that the user is cached to return true / false
fun User.hasRole(ids: List<Long>, guild: Guild): Boolean?
Check if a user has any role in a list for a specific guild
fun User.hasRole(role: Role, guild: Guild): Boolean?
Check if a user has a role in a specific guild Will require that the user is cached to return true / false