discord

package
v0.0.0-...-e479534 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandBuilder

type CommandBuilder struct {
	// contains filtered or unexported fields
}

func (*CommandBuilder) RegisterJSON

func (cb *CommandBuilder) RegisterJSON(ctx context.Context) ([]byte, error)

func (*CommandBuilder) SetAppID

func (cb *CommandBuilder) SetAppID(appID string)

func (*CommandBuilder) SetJSON

func (cb *CommandBuilder) SetJSON(json []byte)

func (*CommandBuilder) SetToken

func (cb *CommandBuilder) SetToken(token string)

func (*CommandBuilder) SetURL

func (cb *CommandBuilder) SetURL(url string)

type Dto

type Dto struct {
	Type int `json:"type"`
}

type InteractionReply

type InteractionReply struct {
	Type int                   `json:"type"`
	Data *InteractionReplyData `json:"data"`
}

type InteractionReplyData

type InteractionReplyData struct {
	TTS     bool   `json:"tts"`
	Content string `json:"content"`
}

type InteractionRequest

type InteractionRequest struct {
	Type int                     `json:"type"`
	Data *InteractionRequestData `json:"data"`
}

type InteractionRequestData

type InteractionRequestData struct {
	Name string `json:"name"`
}

type RequestVerifier

type RequestVerifier struct {
	// contains filtered or unexported fields
}

func (*RequestVerifier) SetBodyContent

func (rv *RequestVerifier) SetBodyContent(bc []byte)

func (*RequestVerifier) SetPublicKey

func (rv *RequestVerifier) SetPublicKey(pk []byte)

func (*RequestVerifier) SetSignature

func (rv *RequestVerifier) SetSignature(sg []byte)

func (*RequestVerifier) SetTimestamp

func (rv *RequestVerifier) SetTimestamp(ts []byte)

func (*RequestVerifier) Verify

func (rv *RequestVerifier) Verify() (isVerified bool)

type Verifier

type Verifier interface {
	Verify() bool
}

Jump to

Keyboard shortcuts

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