Documentation ¶
Overview ¶
Package slackutilsx is a utility package that doesn't promise API stability. its for experimental functionality and utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelType ¶
type ChannelType int
ChannelType the type of channel based on the channelID
const ( // Unknown represents channels we cannot properly detect. CTypeUnknown ChannelType = iota // DM is a private channel between two slack users. CTypeDM // Group is a group channel. CTypeGroup // Channel is a public channel. CTypeChannel )
func DetectChannelType ¶
func DetectChannelType(channelID string) ChannelType
DetectChannelType converts a channelID to a ChannelType. channelID must not be empty. However, if it is not empty, the channel type will default to Unknown.
func (ChannelType) String ¶
func (t ChannelType) String() string
Click to show internal directories.
Click to hide internal directories.