disco

package module
v0.0.0-...-c4845e7 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 2 Imported by: 0

README

disco

this package is a wrapper for the discord gateway websocket, based off of LuminalDev/dgate.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Selfbot *discord.Selfbot
	Gateway *discord.Gateway
	Config  *types.Config
}

func NewClient

func NewClient(token string, config *types.Config) *Client

func (*Client) AddHandler

func (client *Client) AddHandler(event string, function any) error

func (*Client) Close

func (client *Client) Close()

func (*Client) Connect

func (client *Client) Connect() error

func (*Client) GetMembers

func (client *Client) GetMembers(guildId string, memberIds []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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