xslack

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageTypeDM            = "dm"
	MessageTypePrivateGroup  = "group"
	MessageTypePublicChannel = "public"
	MessageTypeMention       = "mention"
)

Variables

This section is empty.

Functions

func GetChannelID

func GetChannelID(botUserOAuthAccessToken string, channel string) (string, error)

func GetEmailByUserID

func GetEmailByUserID(botUserOAuthAccessToken string, userID string) (string, error)

func GetGroupID

func GetGroupID(botUserOAuthAccessToken string, channel string) (string, error)

func GetUserIDByEmail

func GetUserIDByEmail(botUserOAuthAccessToken string, userEmail string) (string, error)

func GetUserNameByEmail

func GetUserNameByEmail(botUserOAuthAccessToken string, userEmail string) (string, error)

func InviteToTeam

func InviteToTeam(botUserOAuthAccessToken, username, userEmail string) error

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

func SlackConfig

func SlackConfig(botName, botIcon string) error

Types

type SlackMessageType

type SlackMessageType string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL