gatekeep

package
v0.0.0-...-7602435 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApproveSlashCommand = discord.SlashCommandCreate{
	Name:                     "approve",
	Description:              "Approve a user to join the server",
	DefaultMemberPermissions: json.NewNullablePtr(discord.PermissionKickMembers),
	IntegrationTypes:         []discord.ApplicationIntegrationType{discord.ApplicationIntegrationTypeGuildInstall},
	Contexts: []discord.InteractionContextType{
		discord.InteractionContextTypeGuild,
	},

	Options: []discord.ApplicationCommandOption{
		discord.ApplicationCommandOptionUser{
			Name:        "user",
			Description: "The user to approve",
			Required:    true,
		},
	},
}

Functions

func ApproveSlashCommandHandler

func ApproveSlashCommandHandler(e *handler.CommandEvent) error

func ApproveUserCommandHandler

func ApproveUserCommandHandler(e *handler.CommandEvent) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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