LogoLogo
  • Introduction
  • What's New?
  • Upgrade Guide
  • Getting Started
    • Requirements
    • Installation
  • Defining Channels
    • Configuration
    • Retrieving Channels
  • Creating and Sending Notifications
    • Defining Notifications
    • Notifiables
    • Sending Notifications
  • Providers
    • DatabaseProvider
    • EmailProvider
    • SlackProvider
      • Slack BlockKit
    • Creating Custom Providers
  • Testing
    • Coming Soon
  • Reference
    • NotificationService
    • BaseNotification
    • SendsNotifications
    • INotifiable
    • BaseProvider
      • DatabaseProvider
        • DatabaseNotificationService
        • HasDatabaseNotifications
        • DatabaseNotificationCursor
        • DatabaseNotification
      • EmailProvider
      • SlackProvider
        • SlackMessage
          • EventMetadata
          • ActionsBlock
          • ContextBlock
          • DividerBlock
          • HeaderBlock
          • ImageBlock
          • SectionBlock
          • ButtonElement
          • ConfirmObject
          • ImageElement
          • TextObject
          • PlainTextOnlyTextObject
  • ForgeBox
  • GitHub
Powered by GitBook
On this page
  • init
  • getMemento
  1. Reference
  2. BaseProvider
  3. SlackProvider
  4. SlackMessage

EventMetadata

PreviousSlackMessageNextActionsBlock

Last updated 1 year ago

init

Creates an EventMetadata instance for the given event type and payload.

Slack Docs:

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.

{
    "event_type": "type",
    "event_payload": { ... } 
}
https://api.slack.com/metadata/using