Documentation ¶
Index ¶
- Variables
- func Auth(fn exrouter.HandlerFunc) exrouter.HandlerFunc
- func CapitalChannelName(c *discordgo.Channel) string
- func ChannelCommand(ctx *exrouter.Context, cmdType ChannelCmdType)
- func ChannelCommandRoute(ctx *exrouter.Context)
- func EntitiesCMD(ctx *exrouter.Context)
- func GetMessageGuild(c *exrouter.Context, m *discordgo.Message) (*discordgo.Guild, error)
- func GuildMemberPermissions(member *discordgo.Member, guild *discordgo.Guild) (apermissions int)
- func ParseChannel(arg string) (string, bool)
- func TransformMentions(session *discordgo.Session, cid string, body string) string
- type ChannelCmdType
- type DiscordBot
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ChannelRegex = regexp.MustCompile("(?:<#)?([0-9]+)>?") ChannelRegexExplicit = regexp.MustCompile("^(?:<#)?([0-9]+)>?$") UserRegex = regexp.MustCompile("(?:<@!?)?([0-9]+)>?") RoleRegex = regexp.MustCompile("(?:<@&)?([0-9]+)>?") )
Functions ¶
func Auth ¶
func Auth(fn exrouter.HandlerFunc) exrouter.HandlerFunc
func CapitalChannelName ¶
func ChannelCommand ¶
func ChannelCommand(ctx *exrouter.Context, cmdType ChannelCmdType)
func ChannelCommandRoute ¶
func EntitiesCMD ¶
func GetMessageGuild ¶
func GuildMemberPermissions ¶
func ParseChannel ¶
Types ¶
type DiscordBot ¶
var RelayBot *DiscordBot
func (*DiscordBot) Listen ¶
func (b *DiscordBot) Listen()
Click to show internal directories.
Click to hide internal directories.