FossabotMessage
interface FossabotMessage implements FossabotDataModel (View source)
Fossabot message context data model. This is only present when the custom API request was invoked from a chat message or command. When dispatched from an automated action, such as a timer, this will be null.
Methods
String representation of the object. For complex objects, this would normally be a JSON string.
Creates a new Fossabot data model instance from a parsed array of API data.
Message ID.
Message contents.
Message provider (i.e. twitch, etc.).
User who invoked the message.
Details
string
__toString()
String representation of the object.
string
toString()
String representation of the object. For complex objects, this would normally be a JSON string.
string
toJson(int $options = 0)
Convert the object to its JSON representation.
toArray()
No description
static FossabotDataModel
createFromBody(array $body)
Creates a new Fossabot data model instance from a parsed array of API data.
string
id()
Message ID.
string
content()
Message contents.
string
provider()
Message provider (i.e. twitch, etc.).
FossabotUser
user()
User who invoked the message.