Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateMentionLinkFromName(ctx context.Context, name string) (string, error)
- func (c *Client) FindChannelIDByName(ctx context.Context, channel string) (string, error)
- func (c *Client) PostMessage(ctx context.Context, channel string, blocks ...slack.Block) error
- func (c *Client) ReplaceMentionsToMentionLinks(ctx context.Context, in string) string
- func (c *Client) SetIconEmoji(emoji string)
- func (c *Client) SetIconURL(u string)
- func (c *Client) SetToken(token string)
- func (c *Client) SetUsername(username string)
- func (c *Client) SetWebhookURL(url string)
- func (c *Client) SlackClient() *slack.Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateMentionLinkFromName ¶ added in v0.3.0
CreateMentionLinkFromName create mention link ( `<@UXXXXXXX>` ) from mention ( `@k1low` )
func (*Client) FindChannelIDByName ¶ added in v0.3.0
FindChannelIDByName find Channel ID ( `CXXXXXXX` ) by channel name ( `#general` )
func (*Client) PostMessage ¶
PostMessage to Slack channel
func (*Client) ReplaceMentionsToMentionLinks ¶ added in v0.3.0
ReplaceMentionsToMentionLinks replace mentions ( `@k1low` ) to mention links ( `<@UXXXXXXX>` )
func (*Client) SetIconEmoji ¶ added in v0.2.0
func (*Client) SetIconURL ¶ added in v0.2.0
func (*Client) SetUsername ¶ added in v0.2.0
func (*Client) SetWebhookURL ¶ added in v0.3.0
func (*Client) SlackClient ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.