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.
Click to show internal directories.
Click to hide internal directories.