Documentation ¶
Index ¶
- type CreateApplicationCommandParams
- type Resource
- func (r *Resource) BulkOverwriteGlobalApplicationCommands(ctx context.Context, ac []*types.ApplicationCommand) ([]*types.ApplicationCommand, error)
- func (r *Resource) BulkOverwriteGuildApplicationCommands(ctx context.Context, gid string, ac []*types.ApplicationCommand) ([]*types.ApplicationCommand, error)
- func (r *Resource) CreateGuildApplicationCommand(ctx context.Context, id string, p *CreateApplicationCommandParams) (*types.ApplicationCommand, error)
- func (r *Resource) DeleteGlobalApplicationCommand(ctx context.Context, cid string) error
- func (r *Resource) DeleteGuildApplicationCommand(ctx context.Context, gid, cid string) error
- func (r *Resource) GetGlobalApplicationCommands(ctx context.Context) ([]*types.ApplicationCommand, error)
- func (r *Resource) GetGuildApplicationCommands(ctx context.Context, gid string) ([]*types.ApplicationCommand, error)
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 (*Resource) DeleteGuildApplicationCommand ¶
func (*Resource) GetGlobalApplicationCommands ¶
func (*Resource) GetGuildApplicationCommands ¶
Click to show internal directories.
Click to hide internal directories.