DockGo

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = true

Functions

func Wait

func Wait()

Types

type Client added in v0.0.4

type Client discordgo.Session

func NewBot

func NewBot(token string) *Client

func NewShard

func NewShard(token string, count int) []*Client

func (*Client) Connect added in v0.0.4

func (bot *Client) Connect()

func (*Client) Method added in v0.0.4

func (bot *Client) Method() *discordgo.Session

func (*Client) Ready added in v0.0.4

func (bot *Client) Ready(function func(*Client, *Ready))

func (*Client) Register added in v0.0.4

func (bot *Client) Register(command interface{})

type Interaction added in v0.0.3

type Interaction discordgo.InteractionCreate

func (*Interaction) Method added in v0.0.3

func (it *Interaction) Method() *discordgo.InteractionCreate

type MessageBuilder added in v0.0.2

type MessageBuilder struct {
	Prefix    string
	StartWith bool
}

type MessageCommands added in v0.0.3

type MessageCommands struct {
	Builder *MessageBuilder
	Execute func(*Client, *MessageCreate)
}

type MessageCreate added in v0.0.2

type MessageCreate discordgo.MessageCreate

func (*MessageCreate) Method added in v0.0.2

func (mc *MessageCreate) Method() *discordgo.MessageCreate

type Ready added in v0.0.4

type Ready discordgo.Ready

func (*Ready) Logger added in v0.0.4

func (mc *Ready) Logger(client *Client)

func (*Ready) Method added in v0.0.4

func (mc *Ready) Method() *discordgo.Ready

type Shard

type Shard struct {
	Total int
	ID    int
	Bot   *Client
}

type SlashBuilder added in v0.0.3

type SlashBuilder discordgo.ApplicationCommand

func (*SlashBuilder) Method added in v0.0.3

type SlashCommands added in v0.0.3

type SlashCommands struct {
	Builder *SlashBuilder
	Execute func(*Client, *Interaction)
}

Jump to

Keyboard shortcuts

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