Skip to content

Instantly share code, notes, and snippets.

@BrightnBubbly
Created April 19, 2020 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrightnBubbly/4072b40493cb698f4305339252b4e7c9 to your computer and use it in GitHub Desktop.
Save BrightnBubbly/4072b40493cb698f4305339252b4e7c9 to your computer and use it in GitHub Desktop.
message := &stream.Message{
Text: "@paris Everything was your fault",
Attachments: []*stream.Attachment{
&stream.Attachment{
Type: "image",
ThumbURL: "https://i.imgur.com/1UtEbH7.jpg",
AssetURL: "https://i.imgur.com/1UtEbH7.jpg",
},
},
MentionedUsers: []*stream.User{
&stream.User{ID: "paris"},
},
}
channel.SendMessage(message, "helenoftroy")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment