Versions in this module Expand all Collapse all v0 v0.3.3 Aug 1, 2026 Changes in this version + func RegMessageCtx(d *Dgr, name string, handler func(c *Context[discordgo.Message])) + func RegMessageCtxE(d *Dgr, name string, handler func(c *Context[discordgo.Message])) error + func RegMsgCreate(d *Dgr, channelIDs []string, handler func(c *MsgCreateCtx)) + func RegMsgCreateE(d *Dgr, channelIDs []string, handler func(c *MsgCreateCtx)) error + func RegSlashE[T any](target SlashTarget, name string, description string, ...) error + func RegSlash[T any](target SlashTarget, name string, description string, ...) + func RegUserCtx(d *Dgr, name string, handler func(c *Context[discordgo.User])) + func RegUserCtxE(d *Dgr, name string, handler func(c *Context[discordgo.User])) error + type Button struct + Args T + CustomID string + Handler func(c *Context[T]) + Style discordgo.ButtonStyle + Text string + func (b *Button[T]) Invoke(s *discordgo.Session, i *discordgo.Interaction) + func (b *Button[T]) ToButtonComponent() discordgo.Button + func (b *Button[T]) ToComponent() discordgo.MessageComponent + type ButtonComponent interface + ToButtonComponent func() discordgo.Button + type ButtonInvoker interface + Invoke func(s *discordgo.Session, i *discordgo.Interaction) + type ButtonRow struct + Buttons []ButtonComponent + func (r *ButtonRow) ToComponent() discordgo.MessageComponent + type Choice bool + func Selected[T any](structPtr *T) *Choice + type CommandGroup struct + func Group(d *Dgr, name string, description string) *CommandGroup + func GroupE(d *Dgr, name string, description string) (*CommandGroup, error) + type Context struct + Args T + Interaction *discordgo.Interaction + Session *discordgo.Session + func (c *Context[T]) NewButton(text string, style discordgo.ButtonStyle, handler func(c *Context[T])) (*Button[T], error) + func (c *Context[T]) NewButtonRow(buttons ...ButtonComponent) (*ButtonRow, error) + func (c *Context[T]) Reply(content string, opts ...ReplyOption) error + type Dgr struct + Session *discordgo.Session + func New(token string) (*Dgr, error) + func (d *Dgr) Run(guildID string) error + func (d *Dgr) Stop() error + func (d *Dgr) SyncCommands(guildID string) error + type InteractionUser struct + type Mentionable struct + Role *discordgo.Role + Type MentionableType + User *InteractionUser + type MentionableType string + const MentionableTypeRole + const MentionableTypeUser + type MsgCreateCtx struct + Args *discordgo.Message + Session *discordgo.Session + type ReplyOption func(*discordgo.InteractionResponseData) + func WithButton[T any](button *Button[T]) ReplyOption + func WithButtons(row *ButtonRow) ReplyOption + func WithEmbeds(embeds ...*discordgo.MessageEmbed) ReplyOption + func WithEphemeral() ReplyOption + type SelectedChoice struct + Choice *Choice + Name string + Value string + func SelectedChoiceOf[T any](structPtr *T) *SelectedChoice + type SlashTarget interface + type SubCommandGroup struct + func SubGroup(group *CommandGroup, name string, description string) *SubCommandGroup + func SubGroupE(group *CommandGroup, name string, description string) (*SubCommandGroup, error) v0.3.2 Jun 19, 2026 v0.3.1 Jun 19, 2026 v0.3.0 Jun 19, 2026 v0.2.0 Jun 19, 2026 v0.1.0 Jun 9, 2026