Skip to content

[QUERY] how to trigger on message changed and message deleted? #463

@brahn

Description

@brahn

Question

Is there a way to use the Deno SDK to create triggers when messages are edited or deleted?

Context

I have successfully created a trigger when a message is posted, setting the trigger's event.event_type to TriggerEventTypes.MessagePosted

The message_changed and message_deleted events appear in documentation for the Events API:
https://api.slack.com/events/message/message_changed
https://api.slack.com/events/message/message_deleted

However, they do not appear among the supported event triggers listed in the Deno SDK documentation:
https://tools.slack.dev/deno-slack-sdk/guides/creating-event-triggers#supported-events

And when I attempted to set a trigger's event.event_type field to event type 'slack#/events/message_changed', I received the errorevent type 'slack#/events/message_metadata_updated'`

Environment

$ deno --version
deno 2.3.5 (stable, release, aarch64-apple-darwin)
v8 13.7.152.6-rusty
typescript 5.8.3

$ sw_vers && uname -v
ProductName:		macOS
ProductVersion:		13.2.1
BuildVersion:		22D68
Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:46 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6020

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions