Documentation ¶
Index ¶
- func WithChannelID(cid string) zap.Field
- func WithCommand(c string) zap.Field
- func WithComponent(co string) zap.Field
- func WithEventID(eid string) zap.Field
- func WithGuildID(gid string) zap.Field
- func WithHandler(h string) zap.Field
- func WithMessageID(mid string) zap.Field
- func WithRoleID(rid string) zap.Field
- func WithSubmissionID(sid string) zap.Field
- func WithUserID(uid string) zap.Field
- type EventHandler
- type MessageReplier
- type VerificationDialog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithChannelID ¶
func WithCommand ¶
func WithComponent ¶
func WithEventID ¶
func WithGuildID ¶
func WithHandler ¶
func WithMessageID ¶
func WithRoleID ¶
func WithSubmissionID ¶
func WithUserID ¶
Types ¶
type EventHandler ¶
type EventHandler struct { Cache cache.Cache Logger *zap.Logger Prefix string EventScoreService scores.ScoresService MetadataService meta.Service InteractionCreateHandlers map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate) Commands []*discordgo.ApplicationCommand }
func (*EventHandler) HandleInteractionsCreate ¶
func (h *EventHandler) HandleInteractionsCreate( s *discordgo.Session, i *discordgo.InteractionCreate, )
func (*EventHandler) HandleMessageCreate ¶
func (h *EventHandler) HandleMessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)
func (*EventHandler) RegisterInteractionCreateHandlers ¶
func (h *EventHandler) RegisterInteractionCreateHandlers(s *discordgo.Session) error
type MessageReplier ¶
type VerificationDialog ¶ added in v0.3.0
type VerificationDialog struct { UserDisplay string SID string EID string EventName string IGN string Score string Verified bool VerifiedBy string URL string }
func FromEmbed ¶ added in v0.3.0
func FromEmbed(embeds []*discordgo.MessageEmbed) (*VerificationDialog, error)
func (*VerificationDialog) ToEmbed ¶ added in v0.3.0
func (v *VerificationDialog) ToEmbed() *discordgo.MessageEmbed
Click to show internal directories.
Click to hide internal directories.