application

package
v0.0.0-...-3d4fb19 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateApplicationCommandParams

type CreateApplicationCommandParams struct {
	Name              string                            `json:"name"`
	Description       string                            `json:"description"`
	Options           []*types.ApplicationCommandOption `json:"options,omitempty"`
	DefaultPermission bool                              `json:"default_permission,omitempty"`
	Type              types.ApplicationCommandType      `json:"type,omitempty"`
}

type Resource

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

func NewApplicationResource

func NewApplicationResource(rc *resources.RestClient, id string) *Resource

func (*Resource) BulkOverwriteGlobalApplicationCommands

func (r *Resource) BulkOverwriteGlobalApplicationCommands(ctx context.Context, ac []*types.ApplicationCommand) ([]*types.ApplicationCommand, error)

func (*Resource) BulkOverwriteGuildApplicationCommands

func (r *Resource) BulkOverwriteGuildApplicationCommands(ctx context.Context, gid string, ac []*types.ApplicationCommand) ([]*types.ApplicationCommand, error)

func (*Resource) CreateGuildApplicationCommand

func (r *Resource) CreateGuildApplicationCommand(ctx context.Context, id string, p *CreateApplicationCommandParams) (*types.ApplicationCommand, error)

func (*Resource) DeleteGlobalApplicationCommand

func (r *Resource) DeleteGlobalApplicationCommand(ctx context.Context, cid string) error

func (*Resource) DeleteGuildApplicationCommand

func (r *Resource) DeleteGuildApplicationCommand(ctx context.Context, gid, cid string) error

func (*Resource) GetGlobalApplicationCommands

func (r *Resource) GetGlobalApplicationCommands(ctx context.Context) ([]*types.ApplicationCommand, error)

func (*Resource) GetGuildApplicationCommands

func (r *Resource) GetGuildApplicationCommands(ctx context.Context, gid string) ([]*types.ApplicationCommand, error)

Jump to

Keyboard shortcuts

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