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.
Click to show internal directories.
Click to hide internal directories.