Mention

interface Mention

Represents a mention token inside the message composer.

By default, only user mentions are supported. You can extend this interface to define custom mentions if needed.

Inheritors

Types

Link copied to clipboard
data class User(val user: User) : Mention

Represents a user mention inside the message composer.

Properties

Link copied to clipboard
abstract val display: String

The display text of the mention. Implementations must guarantee a non-empty value so autocomplete and linkification produce a stable @token even when the underlying source lacks a human-readable name.

Link copied to clipboard
abstract val type: MentionType

The type of the mention.