RNMessage

class RNMessage(message: Message, val author: RNUser, val mentions: List<RNUser>) : Message

Constructors

Link copied to clipboard
constructor(message: Message, author: RNUser, mentions: List<RNUser>)

Functions

Link copied to clipboard

Creates a button with the given data

fun Message.addButton(label: String, style: ButtonStyle, onPress: (Message, FragmentActivity) -> Unit)

Adds a button component to the message.

Link copied to clipboard
Link copied to clipboard
operator fun component1(): Long
Link copied to clipboard
operator fun component10(): MutableList<User>
Link copied to clipboard
operator fun component11(): MutableList<Long>
Link copied to clipboard
operator fun component12(): MutableList<MessageAttachment>
Link copied to clipboard
operator fun component13(): MutableList<MessageEmbed>
Link copied to clipboard
operator fun component14(): MutableList<MessageReaction>
Link copied to clipboard
operator fun component15(): String
Link copied to clipboard
operator fun component16(): Boolean
Link copied to clipboard
operator fun component17(): Long
Link copied to clipboard
operator fun component18(): Int
Link copied to clipboard
operator fun component19(): MessageActivity
Link copied to clipboard
operator fun component2(): Long
Link copied to clipboard
operator fun component20(): Application
Link copied to clipboard
operator fun component21(): Long
Link copied to clipboard
operator fun component22(): MessageReference
Link copied to clipboard
operator fun component23(): Long
Link copied to clipboard
operator fun component24(): MutableList<Sticker>
Link copied to clipboard
operator fun component25(): MutableList<StickerPartial>
Link copied to clipboard
operator fun component26(): Message
Link copied to clipboard
operator fun component27(): Interaction
Link copied to clipboard
operator fun component28(): Channel
Link copied to clipboard
operator fun component29(): MutableList<Component>
Link copied to clipboard
operator fun component3(): Long
Link copied to clipboard
operator fun component30(): MessageCall
Link copied to clipboard
operator fun component31(): Boolean
Link copied to clipboard
operator fun component32(): RoleSubscriptionData
Link copied to clipboard
operator fun component33(): Boolean
Link copied to clipboard
operator fun component34(): MessageAllowedMentions
Link copied to clipboard
operator fun component35(): Int
Link copied to clipboard
operator fun component36(): Long
Link copied to clipboard
operator fun component37(): Long
Link copied to clipboard
operator fun component38(): MutableList<LocalAttachment>
Link copied to clipboard
operator fun component39(): CaptchaHelper.CaptchaPayload
Link copied to clipboard
operator fun component4(): User
Link copied to clipboard
operator fun component5(): String
Link copied to clipboard
operator fun component6(): UtcDateTime
Link copied to clipboard
operator fun component7(): UtcDateTime
Link copied to clipboard
operator fun component8(): Boolean
Link copied to clipboard
operator fun component9(): Boolean
Link copied to clipboard
fun copy(p0: Long, p1: Long, p2: Long, p3: User, p4: String, p5: UtcDateTime, p6: UtcDateTime, p7: Boolean, p8: Boolean, p9: MutableList<User>, p10: MutableList<Long>, p11: MutableList<MessageAttachment>, p12: MutableList<MessageEmbed>, p13: MutableList<MessageReaction>, p14: String, p15: Boolean, p16: Long, p17: Int, p18: MessageActivity, p19: Application, p20: Long, p21: MessageReference, p22: Long, p23: MutableList<Sticker>, p24: MutableList<StickerPartial>, p25: Message, p26: Interaction, p27: Channel, p28: MutableList<out Component>, p29: MessageCall, p30: Boolean, p31: RoleSubscriptionData, p32: Boolean, p33: MessageAllowedMentions, p34: Int, p35: Long, p36: Long, p37: MutableList<LocalAttachment>, p38: CaptchaHelper.CaptchaPayload): Message
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
fun getReactionsMap(): MutableMap<String, MessageReaction>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun hasFlag(p0: Long): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun merge(p0: Message): Message
Link copied to clipboard
fun synthesizeApiMessage(): Message
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val activity: MessageActivity
Link copied to clipboard
val allowedMentions: MessageAllowedMentions
Link copied to clipboard
val application: Application
Link copied to clipboard
Link copied to clipboard
val attachments: MutableList<MessageAttachment>
Link copied to clipboard
val author: User
Link copied to clipboard
val call: MessageCall
Link copied to clipboard
val captchaPayload: CaptchaHelper.CaptchaPayload
Link copied to clipboard
Link copied to clipboard
val components: MutableList<Component>
Link copied to clipboard
Link copied to clipboard
val editedTimestamp: UtcDateTime
Link copied to clipboard
val embeds: MutableList<MessageEmbed>
Link copied to clipboard
val flags: Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: Long
Link copied to clipboard
Link copied to clipboard
val interaction: Interaction
Link copied to clipboard
val localAttachments: MutableList<LocalAttachment>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val messageReference: MessageReference
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val reactions: MutableList<MessageReaction>
Link copied to clipboard
val referencedMessage: Message
Link copied to clipboard
val roleSubscriptionData: RoleSubscriptionData
Link copied to clipboard
val stickerItems: MutableList<StickerPartial>
Link copied to clipboard
val stickers: MutableList<Sticker>
Link copied to clipboard
val thread: Channel
Link copied to clipboard
val timestamp: UtcDateTime
Link copied to clipboard
Link copied to clipboard
val type: Int
Link copied to clipboard