Documentation ¶
Index ¶
- func CanBan(s *discordgo.Session, guildID string, m *discordgo.Member) bool
- func HasPerm(userPerms, hasPerm int64) bool
- func IsChannelAdmin(s *discordgo.Session, channelID, userID string) bool
- func WaitForMessage(s *discordgo.Session) chan *discordgo.MessageCreate
- func WaitForUserMessage(s *discordgo.Session, userID string) chan *discordgo.MessageCreate
- func WaitForUserReact(s *discordgo.Session, userID string) chan *discordgo.MessageReactionAdd
- type Command
- type CommandHandler
- type Context
- type Middleware
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForMessage ¶
func WaitForMessage(s *discordgo.Session) chan *discordgo.MessageCreate
func WaitForUserMessage ¶
func WaitForUserMessage(s *discordgo.Session, userID string) chan *discordgo.MessageCreate
func WaitForUserReact ¶
func WaitForUserReact(s *discordgo.Session, userID string) chan *discordgo.MessageReactionAdd
Types ¶
type Command ¶
type Command struct { *discordgo.ApplicationCommand Middlewares []Middleware Handler CommandHandler }
func (*Command) ApplyMiddlewares ¶
func (c *Command) ApplyMiddlewares() CommandHandler
type CommandHandler ¶
func IsAdmin ¶
func IsAdmin(h CommandHandler) CommandHandler
type Middleware ¶
type Middleware func(CommandHandler) CommandHandler
type Router ¶
type Router struct {
Commands []Command
}
func (*Router) AddCommands ¶
func (*Router) RegisterCommands ¶
Click to show internal directories.
Click to hide internal directories.