commands

package
v0.0.0-...-23ed071 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BanCommand = discord.SlashCommandCreate{
	Name:                     "ban",
	Description:              "Ban a member",
	DefaultMemberPermissions: omit.NewPtr(discord.PermissionAdministrator),
	Contexts:                 []discord.InteractionContextType{discord.InteractionContextTypeGuild},
	Options: []discord.ApplicationCommandOption{
		discord.ApplicationCommandOptionUser{
			Name:        "member",
			Description: "The member you would like to ban",
			Required:    true,
		},
		discord.ApplicationCommandOptionString{
			Name:        "reason",
			Description: "reason for banning the user",
			Required:    true,
		},
		discord.ApplicationCommandOptionString{
			Name:        "purge_duration",
			Description: "purge last x duration of messages (ex. 1h, 24h, 1h30m max 168h)",
			Required:    false,
		},
	},
}
View Source
var GoobCommand = discord.SlashCommandCreate{
	Name:        "goob",
	Description: "Goob Control utility commands",
	Options: []discord.ApplicationCommandOption{
		discord.ApplicationCommandOptionSubCommand{
			Name:        "info",
			Description: "Get info and runtime stats",
		},
	},
}
View Source
var KickCommand = discord.SlashCommandCreate{
	Name:                     "kick",
	Description:              "Kick a member",
	DefaultMemberPermissions: omit.NewPtr(discord.PermissionAdministrator),
	Contexts:                 []discord.InteractionContextType{discord.InteractionContextTypeGuild},
	Options: []discord.ApplicationCommandOption{
		discord.ApplicationCommandOptionUser{
			Name:        "member",
			Description: "The member you would like to kick",
			Required:    true,
		},
		discord.ApplicationCommandOptionString{
			Name:        "reason",
			Description: "reason for kicking the user",
			Required:    true,
		},
	},
}

Functions

Types

This section is empty.

Jump to

Keyboard shortcuts

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