slackutilsx

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2019 License: BSD-2-Clause Imports: 2 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

func EscapeMessage added in v0.4.0

func EscapeMessage(message string) string

EscapeMessage text

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

Jump to

Keyboard shortcuts

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