You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into an issue with the Slackbot for the community workspace, where it blew up with endless replies because it was unable to determine that a message with SubType thread_broadcast originated from itself. This looks to be because the root field isn't present on the slackevents.MessageEvent type, and I need to use that UserID to properly identify who sent it:
I believe this could be fixed by adding the following to the MessageEvent struct:
// Root is the message that was broadcast to the channel when the SubType is thread_broadcast. If this is not a thread_broadcast this value is likely nil.Root*MessageEvent`json:"root"`
The text was updated successfully, but these errors were encountered:
theckman
added a commit
to theckman/slack
that referenced
this issue
Sep 7, 2020
The `thread_broadcast` subtype includes extra data in the MessageEvent that
we're currently losing, the `root` field. This is where it puts the message that
is being shared to a channel as a reply to a thread.
Fixesslack-go#792
theckman
added a commit
to theckman/slack
that referenced
this issue
Sep 7, 2020
The `thread_broadcast` subtype includes extra data in the MessageEvent that
we're currently losing, the `root` field. This is where it puts the message that
is being shared to a channel as a reply to a thread.
Fixesslack-go#792
Ran into an issue with the Slackbot for the community workspace, where it blew up with endless replies because it was unable to determine that a message with SubType
thread_broadcast
originated from itself. This looks to be because theroot
field isn't present on theslackevents.MessageEvent
type, and I need to use that UserID to properly identify who sent it:I believe this could be fixed by adding the following to the
MessageEvent
struct:The text was updated successfully, but these errors were encountered: