AllowedMentionsBuilder

The mentions that should trigger a ping. See the Discord documentation.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun add(type: AllowedMentionType)

Adds the type to the list of types that should receive a ping.

Link copied to clipboard
fun build(): AllowedMentions
Link copied to clipboard
operator fun AllowedMentionType.unaryPlus()

Adds the type to the list of types that should receive a ping.

Properties

Link copied to clipboard

Whether to mention the user being replied to.

Link copied to clipboard
val roles: MutableSet<Snowflake>

The roles that should be mentioned in this message, any id that is mentioned in this list but not present in the MessageCreateBuilder will be ignored.

Link copied to clipboard
val types: MutableSet<AllowedMentionType>

The types of pings that should trigger in this message. Selecting AllowedMentionType.UserMentions or AllowedMentionType.RoleMentions together with any value in users or roles respectively will result in an error.

Link copied to clipboard
val users: MutableSet<Snowflake>

The users that should be mentioned in this message, any id that is mentioned in this list but not present in the MessageCreateBuilder will be ignored.