Documentation
¶
Overview ¶
Package gateway implements a websocket client for the Discord gateway.
Index ¶
- type Client
- func (c *Client) Connect(pc context.Context) error
- func (c *Client) OnGuildCreate(f func(context.Context, *types.Guild))
- func (c *Client) OnInteractionCreate(f func(context.Context, *types.Interaction))
- func (c *Client) OnMessageCreate(f func(context.Context, *types.Message))
- func (c *Client) OnReady(f func(context.Context, *Ready))
- type Option
- type Ready
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) OnGuildCreate ¶
func (*Client) OnInteractionCreate ¶
func (c *Client) OnInteractionCreate(f func(context.Context, *types.Interaction))
func (*Client) OnMessageCreate ¶
Click to show internal directories.
Click to hide internal directories.