rest

package
v0.0.0-...-1a74a41 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type REST

type REST[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](definition *discordgo.ApplicationCommand, url string, client *http.Client, form func(payload T) string) *REST[T]

func (*REST[T]) Definition

func (cmd *REST[T]) Definition() *discordgo.ApplicationCommand

func (*REST[T]) Handler

func (cmd *REST[T]) Handler(sess *discordgo.Session, inter *discordgo.InteractionCreate) error

Jump to

Keyboard shortcuts

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