slackutilsx

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2018 License: BSD-2-Clause Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

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