docs

# ContentMessage

interface ContentMessage < T : MessageContent > : Message
Content copied to clipboard

## Properties

chat
Link copied to clipboard
abstract val chat : Chat
Content copied to clipboard
content
Link copied to clipboard
abstract val content : T
Content copied to clipboard
date
Link copied to clipboard
abstract val date : DateTime
Content copied to clipboard
forwardable
Link copied to clipboard
open val forwardable : Boolean
Content copied to clipboard
hasProtectedContent
Link copied to clipboard
abstract val hasProtectedContent : Boolean
Content copied to clipboard
messageId
Link copied to clipboard
abstract val messageId : MessageIdentifier
Content copied to clipboard

## Inheritors

CommonMessage
Link copied to clipboard

## Extensions

parseCommandsWithParams
Link copied to clipboard
fun ContentMessage < TextContent >. parseCommandsWithParams (argsSeparator: Regex = defaultArgsSeparator): Map < String , Array < String >>
Content copied to clipboard

Parse commands and their args. Logic will find command, get all subsequent data as args until new command

requireWithContent
Link copied to clipboard
inline fun < T : MessageContent > ContentMessage <*>. requireWithContent (): ContentMessage < T >
Content copied to clipboard
withContent
Link copied to clipboard
inline fun < T : MessageContent > ContentMessage <*>. withContent (): ContentMessage < T >?
Content copied to clipboard