api

package
v0.0.0-...-fa121a4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChannel

func GetChannel(ds *discordgo.Session, channelId string) *discordgo.Channel

func GetFromUrl

func GetFromUrl(url string) ([]byte, error)

func GetGuild

func GetGuild(ds *discordgo.Session, guildId string) *discordgo.Guild

func GetIntent

func GetIntent() discordgo.Intent

func RegisterCommand

func RegisterCommand(cmd string, commandFunc CommandFunc)

func RegisterIntentNeed

func RegisterIntentNeed(neededIntents ...discordgo.Intent)

Types

type CommandFunc

type CommandFunc func(session *discordgo.Session, message *discordgo.MessageCreate, cmd string, args []string)

func GetCommand

func GetCommand(cmd string) CommandFunc

type Module

type Module interface {
	Load(session *discordgo.Session)

	Name() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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