MentionsString

annotation class MentionsString(val types: Message.MentionType = [])(source)

Marks the slash command option as a list of mentionable retrieved from a string.

This works for both code-declared and annotated slash commands.

The target parameter must be of type List, where the element type is either:

If the list's element type is a concrete entity type (such as Member), no mention types can be added.

If the list's element type is IMentionable, mention types can be set, if none are, all mentions are passed.

Properties

Link copied to clipboard
@get:JvmName(name = "value")
val types: Array<out Message.MentionType>