admin

package
v0.0.0-...-554ec09 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddTeam = cmdutil.Commands{
	Name:        "addteam",
	Description: "Add a team to the system",
	Options: []*discordgo.ApplicationCommandOption{
		{
			Type:        discordgo.ApplicationCommandOptionString,
			Name:        "name",
			Description: "The FULL of the team",
		},
		{
			Type:        discordgo.ApplicationCommandOptionString,
			Name:        "logo",
			Description: "The URL of the team's logo",
		},
		{
			Type:        discordgo.ApplicationCommandOptionString,
			Name:        "emoji",
			Description: "The emoji ID of the team's emoji",
		},
		{
			Type:        discordgo.ApplicationCommandOptionUser,
			Name:        "owner",
			Description: "The owner of the team",
		},
		{
			Type:        discordgo.ApplicationCommandOptionRole,
			Name:        "role",
			Description: "The role of the team",
		},
		{
			Type:        discordgo.ApplicationCommandOptionString,
			Name:        "invite",
			Description: "The discord invite of the team",
		},
	},
	Handler:     addTeamHandler,
	Permissions: discordgo.PermissionAdministrator,
}
View Source
var SetTeam = cmdutil.Commands{
	Name:        "setteam",
	Description: "Set the team of a user",
	Options: []*discordgo.ApplicationCommandOption{
		{
			Type:        discordgo.ApplicationCommandOptionUser,
			Name:        "user",
			Description: "The user to set the team of",
			Required:    true,
		},
		{
			Type:        discordgo.ApplicationCommandOptionString,
			Name:        "team",
			Description: "The team to set the user to",
			Required:    true,
			Choices:     db.TeamOptions,
		},
	},
	Handler:     setTeamHandler,
	Permissions: discordgo.PermissionAdministrator,
}
View Source
var Suspend = cmdutil.Commands{
	Name:        "suspend",
	Description: "Suspends a user for a given amount of time.",
	Options: []*discordgo.ApplicationCommandOption{
		{
			Type:        discordgo.ApplicationCommandOptionUser,
			Name:        "user",
			Description: "The user to suspend",
			Required:    true,
		},
		{
			Type:        discordgo.ApplicationCommandOptionString,
			Name:        "reason",
			Description: "The reason for the suspension",
			Required:    true,
		},
		{
			Type:        discordgo.ApplicationCommandOptionString,
			Name:        "duration",
			Description: "Example: 4h30m is for 4 hours 30 minutes. 7d is a week.",
			Required:    false,
		},
	},
	Handler: suspendHandler,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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