Documentation ¶
Index ¶
- Constants
- Variables
- type Handler
- func (m *Handler) Action(command string, content string, msg *discordgo.Message, ...)
- func (m *Handler) Commands() []string
- func (m *Handler) Init(session *shardmanager.Manager)
- func (m *Handler) OnMessage(session *discordgo.Session, msg *discordgo.MessageCreate)
- func (m *Handler) Uninit(session *shardmanager.Manager)
- type PendingNotification
Constants ¶
View Source
const (
UserConfigNotificationsLayoutModeKey = "notifications:layout-mode"
)
Variables ¶
View Source
var ( ValidTextDelimiters = []string{ " ", ".", ",", "?", "!", ";", "(", ")", "=", "\"", "'", "`", "´", "_", "~", "+", "-", "/", ":", "*", "\n", "…", "’", "“", "‘", "[", "]", } WhitelistedBotIDs = []string{ "430101373397368842", "178215222614556673", "232927528325611521", "309026207104761858", "426398711896080384", "308942631696859148", "426685461793341451", "308942526570561536", "430089364417150976", "633601942077046786", } )
View Source
var (
KeywordsNotFoundError = errors.New("keyword(s) not found")
)
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
func (*Handler) Init ¶
func (m *Handler) Init(session *shardmanager.Manager)
func (*Handler) OnMessage ¶
func (m *Handler) OnMessage(session *discordgo.Session, msg *discordgo.MessageCreate)
func (*Handler) Uninit ¶
func (m *Handler) Uninit(session *shardmanager.Manager)
Click to show internal directories.
Click to hide internal directories.