mgob icon indicating copy to clipboard operation
mgob copied to clipboard

Allow to provide icon and or icon_emoji

Open alldayalone opened this issue 4 years ago • 0 comments

I found that you allow to provide icon or icon_emoji in values

type slackPayload struct {
	Channel     string            `json:"channel"`
	Username    string            `json:"username"`
	IconUrl     string            `json:"icon_url"`
	IconEmoji   string            `json:"icon_emoji"`
	Text        string            `json:"text,omitempty"`
	Attachments []slackAttachment `json:"attachments,omitempty"`
}

But it's not actually used

payload := slackPayload{
		Channel:  cfg.Channel,
		Username: cfg.Username,
	}

Could you add it?

alldayalone avatar May 08 '20 07:05 alldayalone