Documentation ¶
Index ¶
- Constants
- type ChannelType
- type Command
- type Context
- func (c *Context) CommandRespond(response string)
- func (c *Context) RemoveReaction(channelID string, messageID string, reaction string) error
- func (c *Context) Router() *Router
- func (c *Context) SendFile(channelID string, name string, filepath string) error
- func (c *Context) SendMessage(channelID string, m string) error
- func (c *Context) SendReaction(channelID string, messageID string, reaction string) error
- func (c *Context) SendReply(channelID string, messageID string, guildID string, m string) error
- type CreateChannelArgs
- type Group
- type HandlerFunc
- type MiddlewareFunc
- type Router
- func (r *Router) CreateChannel(args CreateChannelArgs) (*discordgo.Channel, error)
- func (r *Router) CreateEmoji(guildID string, name string, path string) (*discordgo.Emoji, error)
- func (r *Router) Group() *Group
- func (r *Router) Session() *discordgo.Session
- func (r *Router) SetErrorFunc(f HandlerFunc)
- func (r *Router) SetPrefix(prefix string)
- func (r *Router) Start() error
- func (r *Router) Wait()
- type User
Constants ¶
View Source
const MessageAny = "_*"
View Source
const MessageNotFound = "_?"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelType ¶
type ChannelType int
const ( ChannelTypeGuildText ChannelType = 0 ChannelTypeDM ChannelType = 1 ChannelTypeGuildVoice ChannelType = 2 ChannelTypeGroupDM ChannelType = 3 ChannelTypeGuildCategory ChannelType = 4 ChannelTypeGuildNews ChannelType = 5 ChannelTypeGuildStore ChannelType = 6 ChannelTypeGuildNewsThread ChannelType = 10 ChannelTypeGuildPublicThread ChannelType = 11 ChannelTypeGuildPrivateThread ChannelType = 12 ChannelTypeGuildStageVoice ChannelType = 13 ChannelTypeGuildForum ChannelType = 15 )
type Context ¶
type Context struct { Sender *User MessageID string ChannelID string GuildID string MessageCreate *discordgo.MessageCreate InteractionCreate *discordgo.InteractionCreate // contains filtered or unexported fields }
func (*Context) CommandRespond ¶
func (*Context) RemoveReaction ¶
func (*Context) SendReaction ¶
type CreateChannelArgs ¶
type CreateChannelArgs struct { GuildID string Name string Topic string CategoryID string Type ChannelType }
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func (*Group) Message ¶
func (g *Group) Message(name string, f HandlerFunc)
func (*Group) SetErrorFunc ¶
func (g *Group) SetErrorFunc(f HandlerFunc)
func (*Group) Use ¶
func (g *Group) Use(f MiddlewareFunc)
type HandlerFunc ¶
type MiddlewareFunc ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) CreateChannel ¶
func (r *Router) CreateChannel(args CreateChannelArgs) (*discordgo.Channel, error)
func (*Router) CreateEmoji ¶
func (*Router) SetErrorFunc ¶
func (r *Router) SetErrorFunc(f HandlerFunc)
Click to show internal directories.
Click to hide internal directories.