Documentation ¶
Index ¶
- Variables
- type Event
- func (ev *Event) Reply(content string) error
- func (ev *Event) ReplyEmbed(embed *utils.Embed, ephemeral bool) error
- func (ev *Event) ReplyEmbedEphemeral(embed *utils.Embed) error
- func (ev *Event) ReplyEmbeds(embeds []*utils.Embed, ephemeral bool) error
- func (ev *Event) ReplyEmbedsEphemeral(embeds []*utils.Embed) error
- func (ev *Event) ReplyEphemeral(content string) error
- type Executor
- type Handler
- func (c *Handler) AddCommand(command Executor)
- func (c *Handler) Build(session *discordgo.Session, event *discordgo.InteractionCreate)
- func (c *Handler) DropCommand(name string)
- func (c *Handler) GetCommand(name string) *Executor
- func (c *Handler) RegisterCommand(session *discordgo.Session)
- func (c *Handler) UnregisterCommand(session *discordgo.Session)
Constants ¶
This section is empty.
Variables ¶
View Source
var KumaInfo = Executor{Data: data, Execute: execute}
KumaInfo framework info command
Functions ¶
This section is empty.
Types ¶
type Event ¶ added in v2.1.0
type Event struct { Session *discordgo.Session Ev *discordgo.InteractionCreate Member *discordgo.Member User *discordgo.User Interaction *discordgo.Interaction }
func (*Event) ReplyEmbed ¶ added in v2.1.0
ReplyEmbed send embed message to the command
func (*Event) ReplyEmbedEphemeral ¶ added in v2.1.0
ReplyEmbedEphemeral send embed message to the command with ephemeral
func (*Event) ReplyEmbeds ¶ added in v2.1.0
ReplyEmbeds send embed messages to the command
func (*Event) ReplyEmbedsEphemeral ¶ added in v2.1.0
ReplyEmbedsEphemeral send embed messages to the command with ephemeral
func (*Event) ReplyEphemeral ¶ added in v2.1.0
ReplyEphemeral send string message to the command with ephemeral
type Executor ¶ added in v2.1.0
type Executor struct { Data *discordgo.ApplicationCommand Execute func(event *Event) error }
type Handler ¶ added in v2.1.0
func (*Handler) AddCommand ¶ added in v2.1.0
AddCommand add command to the command handler
func (*Handler) Build ¶ added in v2.1.0
func (c *Handler) Build(session *discordgo.Session, event *discordgo.InteractionCreate)
Build building command handler
func (*Handler) DropCommand ¶ added in v2.1.0
DropCommand drop command from the command handler
func (*Handler) GetCommand ¶ added in v2.1.0
GetCommand get command by name
func (*Handler) RegisterCommand ¶ added in v2.1.0
RegisterCommand register command to the discord
func (*Handler) UnregisterCommand ¶ added in v2.1.0
UnregisterCommand unregister command from the discord
Click to show internal directories.
Click to hide internal directories.