pkg

package
v0.0.0-...-3cc3726 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2020 License: GPL-3.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthArgs

type AuthArgs struct{ MemberID string }

AuthArgs structure.

type AuthResponse

type AuthResponse struct {
	Role    string
	IsAdmin bool
}

AuthResponse structure.

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 {
	Serving string // The ID of the Guild being served
	Token   string // The Discord bot access token
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL