dgate

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

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 2 Imported by: 0

README

dgate

Go Report Card GoDoc Lines of Code

A performant self-bot Discord API wrapper for Go. It focuses on being powerful to use, while being easy to scale.

[!NOTE]
dgate is currently in the alpha stages of development. Once the module reaches a stable release the relevant documentation will be created.

Features

  • Fast - dgate is written in Go, allowing it, and you, to leverage its fearless concurrency.
  • Easy to Integrate - The API was designed with simplicity and powerfulness in mind. This allows you to focus on what matters; the self-bot.

Installation

dgate can be installed by using go get:

go get github.com/luminaldev/dgate

After this command has been run, dgate is ready to use. dgate can be updated by using go get -u:

go get -u github.com/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