FossabotContext
interface FossabotContext implements FossabotDataModel (View source)
Fossabot API context data model. Contains additional context about the Fossabot custom API request for more rich integrations.
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.
Fossabot channel context.
Fossabot message context.
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.
FossabotChannel
channel()
Fossabot channel context.
FossabotMessage|null
message()
Fossabot message context.