Documentation ¶
Index ¶
- Constants
- func GetChannelID(botUserOAuthAccessToken string, channel string) (string, error)
- func GetEmailByUserID(botUserOAuthAccessToken string, userID string) (string, error)
- func GetGroupID(botUserOAuthAccessToken string, channel string) (string, error)
- func GetUserIDByEmail(botUserOAuthAccessToken string, userEmail string) (string, error)
- func GetUserNameByEmail(botUserOAuthAccessToken string, userEmail string) (string, error)
- func InviteToTeam(botUserOAuthAccessToken, username, userEmail string) error
- func PostEphemeral(botUserOAuthAccessToken string, dstChannelID, dstSlackUserID string, ...) error
- func PostMessage(botUserOAuthAccessToken string, dstSlackID string, msgPayload interface{}, ...) error
- func SlackConfig(botName, botIcon string) error
- type SlackMessageType
Constants ¶
View Source
const ( MessageTypeDM = "dm" MessageTypePrivateGroup = "group" MessageTypePublicChannel = "public" MessageTypeMention = "mention" )
Variables ¶
This section is empty.
Functions ¶
func GetChannelID ¶
func GetEmailByUserID ¶
func GetUserIDByEmail ¶
func GetUserNameByEmail ¶
func PostEphemeral ¶
func PostEphemeral(botUserOAuthAccessToken string, dstChannelID, dstSlackUserID string, attachment slack.Attachment) error
func PostMessage ¶
func PostMessage(botUserOAuthAccessToken string, dstSlackID string, msgPayload interface{}, msgType SlackMessageType) error
Types ¶
Click to show internal directories.
Click to hide internal directories.