prune

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PruneCommand = discord.SlashCommandCreate{
	Name: "prune-pending-members",
	NameLocalizations: map[discord.Locale]string{
		discord.LocaleNorwegian: "fjern-ventende-medlemmer",
	},
	Description: "Prune members.",
	DescriptionLocalizations: map[discord.Locale]string{
		discord.LocaleNorwegian: "Fjern medlemmer.",
	},

	Contexts: []discord.InteractionContextType{
		discord.InteractionContextTypeGuild,
	},
	IntegrationTypes: []discord.ApplicationIntegrationType{
		discord.ApplicationIntegrationTypeGuildInstall,
	},

	DefaultMemberPermissions: omit.NewPtr(discord.PermissionManageGuild),

	Options: []discord.ApplicationCommandOption{
		discord.ApplicationCommandOptionInt{
			Name: "days",
			NameLocalizations: map[discord.Locale]string{
				discord.LocaleNorwegian: "dager",
			},
			Description: "The number of days to prune members for.",
			DescriptionLocalizations: map[discord.Locale]string{
				discord.LocaleNorwegian: "Antall dager å fjerne medlemmer for.",
			},
			Required: true,

			MinValue: utils.Ref(0),
			MaxValue: utils.Ref(90),
		},
	},
}

Functions

func PruneCancelHandler

func PruneCancelHandler(e *handler.ComponentEvent) error

func PruneConfirmHandler

func PruneConfirmHandler(e *handler.ComponentEvent) error

func PruneHandler

func PruneHandler(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