Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EmojiRegex = regexp.MustCompile(`<(a?):(.+?):(\d+)>`) ErrInvalidEmoji = errors.New("Invalid emoji") )
View Source
var ( ChannelRegex = regexp.MustCompile(`<#(\d+)>`) UserRegex = regexp.MustCompile(`<@!?(\d+)>`) RoleRegex = regexp.MustCompile(`<@&(\d+)>`) )
View Source
var FlagName = "command"
Functions ¶
func NewFlagSet ¶
Types ¶
type ChannelMention ¶
type ChannelMention string
func (*ChannelMention) Parse ¶
func (m *ChannelMention) Parse(arg string) error
func (*ChannelMention) Usage ¶
func (m *ChannelMention) Usage() string
type Flag ¶
type Flag struct {
// contains filtered or unexported fields
}
func (*Flag) ParseContent ¶
type RoleMention ¶
type RoleMention string
func (*RoleMention) Parse ¶
func (m *RoleMention) Parse(arg string) error
func (*RoleMention) Usage ¶
func (m *RoleMention) Usage() string
type UserMention ¶
type UserMention string
func (*UserMention) Parse ¶
func (m *UserMention) Parse(arg string) error
func (*UserMention) Usage ¶
func (m *UserMention) Usage() string
Click to show internal directories.
Click to hide internal directories.