Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to parse to a known event - Direct Message #76

Open
BinaryHexer opened this issue May 31, 2017 · 1 comment
Open

Failed to parse to a known event - Direct Message #76

BinaryHexer opened this issue May 31, 2017 · 1 comment

Comments

@BinaryHexer
Copy link

MessagePayload {  
  messageId = 0,
  messageType = "message",
  messageChannel = Id  {  
    _getId = "DXXX"
  },
  messageText = "someText"
}

Object (
fromList [ ("is_shared",Bool False)
               , ("channel", String "DXXX")
               , ("launchUri", String "slack://channel?id=DXXX&message=msgId&team=teamId")
               , ("imageUri", Null)
               , ("msg", String "timeStamp")
               , ("content", String "one two")
               , ("subtitle", String "userName")
               , ("event_ts", String "timeStamp")
               , ("title", String "TestGroup")
               , ("type", String "desktop_notification")
               , ("ssbFilename", String "knock_brush.mp3")
               , ("avatarImage", String "imageUrl")
              ])

Failed to parse to a known event
Please report this failure to the github issue tracker

So apparently it cannot handle Direct Message events?
Atleast it keeps reporting this in the output, has no problem sending messages to Direct Message channels.

@asayers
Copy link
Collaborator

asayers commented Jul 11, 2017

This is a desktop_notification event. These are relatively new and slack-api doesn't understand them yet. We should fix this.

declension added a commit to declension/slack-api that referenced this issue Jan 21, 2020
 * Fairly basic structure for the message, but seems enough to be useful
 * Main thing is it stops the constant errors :)...

Fixes rickeyski#76.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants