slashcommands

package
v0.0.0-...-094d83a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlashCommand

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

type SlashCommands

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

func New

func New(guildIDs []string) *SlashCommands

New creates a SlashCommands struct with the given options

func (*SlashCommands) Create

func (s *SlashCommands) Create(session *discordgo.Session) error

Create registers all available slash commands in the guilds listed in the config

func (*SlashCommands) Delete

func (s *SlashCommands) Delete(session *discordgo.Session) error

Delete deletes all slash commands that were registered in all guilds

Jump to

Keyboard shortcuts

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