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 ¶
Types ¶
type ChannelType ¶
type ChannelType int
ChannelType the type of channel based on the channelID
const ( // CTypeUnknown represents channels we cannot properly detect. CTypeUnknown ChannelType = iota // CTypeDM is a private channel between two slack users. CTypeDM // CTypeGroup is a group channel. CTypeGroup // CTypeChannel 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 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.