Documentation ¶
Index ¶
- func AllowDM(s *discordgo.Session, m *discordgo.MessageCreate, cmd *commands.WafferCommand) bool
- func ComesFromDM(s *discordgo.Session, m *discordgo.MessageCreate) (bool, error)
- func HasHelpPetition(s *discordgo.Session, m *discordgo.MessageCreate, cmd *commands.WafferCommand) bool
- func MemberHasPermission(s *discordgo.Session, m *discordgo.MessageCreate, cmd *commands.WafferCommand) bool
- func MessageHasArguments(s *discordgo.Session, m *discordgo.MessageCreate, cmd *commands.WafferCommand) bool
- func OwnerOnly(s *discordgo.Session, m *discordgo.MessageCreate, cmd *commands.WafferCommand) bool
- func ValidAuthor(s *discordgo.Session, m *discordgo.MessageCreate) bool
- func ValidPrefix(s *discordgo.Session, m *discordgo.MessageCreate) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowDM ¶
func AllowDM(s *discordgo.Session, m *discordgo.MessageCreate, cmd *commands.WafferCommand) bool
AllowDM returns true if the command comes from a DM and cmd.AllowDM is true.
func ComesFromDM ¶
ComesFromDM returns true if a message comes from a DM channel
func HasHelpPetition ¶
func HasHelpPetition(s *discordgo.Session, m *discordgo.MessageCreate, cmd *commands.WafferCommand) bool
func MemberHasPermission ¶
func MemberHasPermission(s *discordgo.Session, m *discordgo.MessageCreate, cmd *commands.WafferCommand) bool
MemberHasPermission checks if a member has the given permission
func MessageHasArguments ¶
func MessageHasArguments(s *discordgo.Session, m *discordgo.MessageCreate, cmd *commands.WafferCommand) bool
MessageHasArguments returns true if the message has the correct arguments length.
func OwnerOnly ¶
func OwnerOnly(s *discordgo.Session, m *discordgo.MessageCreate, cmd *commands.WafferCommand) bool
func ValidAuthor ¶
func ValidAuthor(s *discordgo.Session, m *discordgo.MessageCreate) bool
Author verified if the message author is a bot or not
func ValidPrefix ¶
func ValidPrefix(s *discordgo.Session, m *discordgo.MessageCreate) bool
ValidPrefix returns true if the message starts with the prefix
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.