admin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdminCommand = discord.SlashCommandCreate{
	Name:                     "admin",
	Description:              "admin commands",
	DefaultMemberPermissions: omit.NewPtr(discord.PermissionAdministrator),
	Contexts:                 []discord.InteractionContextType{discord.InteractionContextTypeGuild},
	IntegrationTypes:         []discord.ApplicationIntegrationType{discord.ApplicationIntegrationTypeGuildInstall},
	Options: []discord.ApplicationCommandOption{
		discord.ApplicationCommandOptionSubCommand{
			Name:        "info",
			Description: "Show information about server configuration",
		},

		modChannelSubcommand,
		infractionsSubCommand,
		gatekeepSubcommand,
		gatekeepMessageSubcommand,
		joinLeaveSubcommand,
		joinMessageSubcommand,
		leaveMessageSubcommand,
		antiSpamSubcommand,
		banFooterSubcommand,
	},
}

Functions

func AdminAntiSpamHandler

func AdminAntiSpamHandler(e *handler.CommandEvent) error

func AdminBanFooterButtonHandler

func AdminBanFooterButtonHandler(e *handler.ComponentEvent) error

func AdminBanFooterHandler

func AdminBanFooterHandler(e *handler.CommandEvent) error

func AdminBanFooterModalHandler

func AdminBanFooterModalHandler(e *handler.ModalEvent) error

func AdminGatekeepHandler

func AdminGatekeepHandler(e *handler.CommandEvent) error

func AdminGatekeepMessageButtonHandler

func AdminGatekeepMessageButtonHandler(e *handler.ComponentEvent) error

func AdminGatekeepMessageHandler

func AdminGatekeepMessageHandler(e *handler.CommandEvent) error

func AdminGatekeepMessageModalHandler

func AdminGatekeepMessageModalHandler(e *handler.ModalEvent) error

func AdminInfoHandler

func AdminInfoHandler(e *handler.CommandEvent) error

func AdminInfractionsHandler

func AdminInfractionsHandler(e *handler.CommandEvent) error

func AdminJoinLeaveHandler

func AdminJoinLeaveHandler(e *handler.CommandEvent) error

func AdminJoinMessageButtonHandler

func AdminJoinMessageButtonHandler(e *handler.ComponentEvent) error

func AdminJoinMessageHandler

func AdminJoinMessageHandler(e *handler.CommandEvent) error

func AdminJoinMessageModalHandler

func AdminJoinMessageModalHandler(e *handler.ModalEvent) error

func AdminLeaveMessageButtonHandler

func AdminLeaveMessageButtonHandler(e *handler.ComponentEvent) error

func AdminLeaveMessageHandler

func AdminLeaveMessageHandler(e *handler.CommandEvent) error

func AdminLeaveMessageModalHandler

func AdminLeaveMessageModalHandler(e *handler.ModalEvent) error

func AdminModChannelHandler

func AdminModChannelHandler(e *handler.CommandEvent) error

func AdminShowAllButtonHandler

func AdminShowAllButtonHandler(e *handler.ComponentEvent) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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