RoleConverter

constructor(requiredGuild: suspend () -> Snowflake? = null, validator: Validator<Role> = null)

Parameters

requiredGuild

Lambda returning a specific guild to require the role to be in. If omitted, defaults to the guild the command was invoked in.