Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Close()
- func (c *Client) Connect(ctx context.Context) error
- func (c *Client) RegisterBoth(cmd api.CreateCommandData, cmdHandle CommandHandlerFunc, ...)
- func (c *Client) RegisterCommand(cmd api.CreateCommandData, cmdHandle CommandHandlerFunc)
- func (c *Client) RegisterMessageCommand(name string, handle MessageHandlerFunc)
- type CommandHandlerFunc
- type Config
- type MessageHandlerFunc
Constants ¶
View Source
const ( HalvaGuildID = discord.GuildID(623964456929591297) MonkaS = "<:monkaS:817041877718138891>" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
var State *Client
func (*Client) RegisterBoth ¶
func (c *Client) RegisterBoth(cmd api.CreateCommandData, cmdHandle CommandHandlerFunc, msgHandle MessageHandlerFunc)
func (*Client) RegisterCommand ¶
func (c *Client) RegisterCommand(cmd api.CreateCommandData, cmdHandle CommandHandlerFunc)
func (*Client) RegisterMessageCommand ¶
func (c *Client) RegisterMessageCommand(name string, handle MessageHandlerFunc)
type CommandHandlerFunc ¶
type CommandHandlerFunc func(ctx context.Context, data cmdroute.CommandData) (*api.InteractionResponseData, error)
type MessageHandlerFunc ¶
type MessageHandlerFunc func(ctx context.Context, c *gateway.MessageCreateEvent) (*api.SendMessageData, error)
Click to show internal directories.
Click to hide internal directories.