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 ¶
This section is empty.
Types ¶
type ChannelMention ¶
func (*ChannelMention) ID ¶ added in v0.0.9
func (m *ChannelMention) ID() discord.Snowflake
func (*ChannelMention) Mention ¶ added in v0.0.11
func (m *ChannelMention) Mention() 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 FlagSet ¶
func NewFlagSet ¶
func NewFlagSet() *FlagSet
type RoleMention ¶
func (*RoleMention) ID ¶ added in v0.0.9
func (m *RoleMention) ID() discord.Snowflake
func (*RoleMention) Mention ¶ added in v0.0.11
func (m *RoleMention) Mention() string
func (*RoleMention) Parse ¶
func (m *RoleMention) Parse(arg string) error
func (*RoleMention) Usage ¶
func (m *RoleMention) Usage() string
type UserMention ¶
func (*UserMention) ID ¶ added in v0.0.9
func (m *UserMention) ID() discord.Snowflake
func (*UserMention) Mention ¶ added in v0.0.11
func (m *UserMention) Mention() 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.