Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthClient ¶
type AuthClient struct {
// contains filtered or unexported fields
}
func GetClient ¶
func GetClient(address string) (AuthClient, error)
func (AuthClient) Auth ¶
func (ac AuthClient) Auth(memberID string) (pkg.AuthResponse, error)
func (AuthClient) Register ¶
func (ac AuthClient) Register(feature Feature) (RegisterResponse, error)
type Feature ¶
type Feature struct {
Name string // ie. ".admin"
Description string // "For managing administrator"
Commands []SubCommand // Optionally empty
CommandPrefix string // Optionally empty
}
Feature to register.
type RegisterResponse ¶
type RegisterResponse struct {
Token string // A Discord bot access token
Serving string // The ID of the Guild being served
}
Response from the server while registering.
type SubCommand ¶
type SubCommand struct {
Name string // ie. "add"
Description string // ie. "This is for adding administrator roles"
Example []string // ie. [".admin", "add", "...role ID's"]
}
Commands that come with this feature.
Click to show internal directories.
Click to hide internal directories.