@Nullable open static fun resolveRole(@NotNull input: @NotNull String, @NotNull guild: @NotNull Guild): @Nullable Role?
Resolves an Role
entity by a mention, it's id or it's name (case-sensitive).
input
- String: e.g an user input that should get parsed for mentions
guild
- Guild: the Guild
the role is on
Return
Role?: the entity or null
if there was no entity found for that input
@Nullable open static fun resolveRole(@NotNull input: @NotNull String, @NotNull guild: @NotNull Guild, ignoreCase: Boolean): @Nullable Role?
Resolves an Role
entity by a mention, it's id or it's name.
input
- String: e.g an user input that should get parsed for mentions
guild
- Guild: the Guild
the role is on
ignoreCase
- Boolean: Whether the name should be resolved case-sensitive or not
Return
Role?: the entity or null
if there was no entity found for that input