interface Message
(source)
A message.
delay |
abstract val delay: Long |
eventType |
abstract val eventType: EventType |
isSimpleMessage |
open fun isSimpleMessage(): Boolean |
obfuscate |
Obfuscates the content of message. open fun obfuscate(): Message |
toAction |
open fun toAction(bus: BotBus): Action abstract fun toAction(playerId: PlayerId, applicationId: String, recipientId: PlayerId): Action |
toPrettyString |
Returns a human readable string representation of the message. open fun toPrettyString(): String |
ActionWrappedMessage |
data class ActionWrappedMessage : Message |
Attachment |
A simple attachment file. data class Attachment : Message |
Choice |
A user choice. data class Choice : Message |
Location |
User location data. data class Location : Message |
Sentence |
Could be a simple text, or a complex message using secondary constructor. data class Sentence : Message |