consts

package
v0.0.0-...-ba02d07 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultMakeChannelCommand is the default command name for the create-temp-channel command.
	DefaultMakeChannelCommand = "mkch"

	// DefaultCommandPrefix is the default command prefix.
	DefaultCommandPrefix = "!"

	// ValidPrefixes is the list of all valid command prefixes.
	// It doesn't contain any character that could be used as markdown, as that may cause confusion for users when the command gets parsed as markdown.
	ValidPrefixes = "!@#$%^&=+()[]{};:'.,/?<>"

	// ValidCommandLettersDescription is the printable description of valid command letters.
	ValidCommandLettersDescription = "letters, underscores (_), and dashes (-)"
	// MinCommandNameLength is the minimum amount of required letters
	MinCommandNameLength = 2
	// MaxCommandNameLength is the maximum amount of allowed letters.
	MaxCommandNameLength = 32
)
View Source
const (
	// EveryoneRoleName is the @everyone role name.
	EveryoneRoleName = "@everyone"

	// PermissionTypeMember means the receiver of the permission is a server member.
	PermissionTypeMember = "member"
	// PermissionTypeRole means the receiver of the permission is a server role.
	PermissionTypeRole = "role"
)

Variables

View Source
var (
	// ValidCommandLettersRegex is the regexp of valid command letters.
	ValidCommandLettersRegex = regexp.MustCompile("^[A-Za-z-_]{2,32}$")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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