@Nullable open static fun resolveTextChannel(@NotNull input: @NotNull String, @NotNull guild: @NotNull Guild): @Nullable TextChannel?
Resolves an TextChannel
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 channel is on
Return
TextChannel?: the entity or null
if there was no entity found for that input
@Nullable open static fun resolveTextChannel(@NotNull input: @NotNull String, @NotNull guild: @NotNull Guild, ignoreCase: Boolean): @Nullable TextChannel?
Resolves an TextChannel
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 channel is on
ignoreCase
- Boolean: Whether the name should be resolved case-sensitive or not
Return
TextChannel?: the entity or null
if there was no entity found for that input