RichTextFinder

@NullMarked
open class RichTextFinder(source)

Utility class to search for rich text. Rich text include:

  • Users
  • Text channels
  • Emotes
  • Roles
  • Unicode/shortcode emojis
  • @here and @everyone mentions
  • URLs

This class takes your input and tokenizes it as it finds what you're asking it to find.

You can then take the output using getResults or consume it directly using processResults.

Constructors

Link copied to clipboard
constructor(@NotNull input: @NotNull String, getIMentionable: Boolean, getGlobalMentions: Boolean, getEmojis: Boolean, getUrls: Boolean)
Parses the input for what you're asking

Types

Link copied to clipboard
open class RichText

Properties

Functions

Link copied to clipboard
Link copied to clipboard
open fun processResults(consumer: RichTextConsumer)
Processes each rich text token