EventMetadata
init
Creates an EventMetadata
instance for the given event type and payload.
Slack Docs: https://api.slack.com/metadata/using
Name
Type
Required
Default
Description
type
string
true
The event type to track metadata for.
payload
struct
false
{}
The metadata to track.
Return: The EventMetadata
instance.
getMemento
Converts the EventMetadata
instance to a serializable format.
Name
Type
Required
Default
Description
No arguments
Return: (struct
) A struct representing this EventMetadata
instance.
Last updated