discordgo_scm

package module
v0.0.0-...-fafe520 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: MIT Imports: 2 Imported by: 1

README

Disclaimer

This is my own personal fork of ethanent discordgo slash command manager. Please use/send pull requests to his repo
https://github.com/ethanent/discordgo-scm

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feature

type Feature struct {
	InteractionType    dg.InteractionType
	Guilds             []string
	Handler            func(*dg.Session, *dg.InteractionCreate)
	ApplicationCommand *dg.ApplicationCommand
	CustomID           string
}

type SCM

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

func NewSCM

func NewSCM() SCM

func (*SCM) AddFeature

func (m *SCM) AddFeature(f Feature)

func (*SCM) RegisterFeatures

func (m *SCM) RegisterFeatures(s *dg.Session) error

func (*SCM) RemoveAllCommands

func (M *SCM) RemoveAllCommands(s *dg.Session) error

func (*SCM) RemoveFeatures

func (m *SCM) RemoveFeatures(s *dg.Session) error

Jump to

Keyboard shortcuts

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