slackutilsx

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: BSD-2-Clause Imports: 2 Imported by: 19 modules, 16 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

type Retryable added in v0.6.1

type Retryable interface {
	Retryable() bool
}

Retryable errors return true.

Jump to

Keyboard shortcuts

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