Documentation ¶
Index ¶
- type Client
- func (c *Client) AddRole(gID string, uID string, rID string) (*http.Response, error)
- func (c *Client) MakeRequest(r objects.Request) (*http.Response, error)
- func (c *Client) RemoveRole(gID string, uID string, rID string) (*http.Response, error)
- func (c *Client) SendMessage(cID string, payload payloads.SendMessage) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { HTTPClient http.Client Token string // This should also include the token's prefix, e.g. "Bot <token>" URL string // This is the URL of the API }
func (*Client) MakeRequest ¶
func (*Client) RemoveRole ¶
func (*Client) SendMessage ¶
Click to show internal directories.
Click to hide internal directories.