editrole

package
v1.31.14 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &commands.YAGCommand{
	CmdCategory:         commands.CategoryTool,
	Name:                "EditRole",
	Aliases:             []string{"ERole"},
	Description:         "Edits a role",
	LongDescription:     "\nRequires the manage roles permission and the bot and your highest role being above the edited role.\nRole permissions follow Discord's standard [encoding](https://discordapp.com/developers/docs/topics/permissions) and can be calculated on websites like [this](https://discordapi.com/permissions.html).",
	RequiredArgs:        1,
	SlashCommandEnabled: false,
	Arguments: []*dcmd.ArgDef{
		{Name: "Role", Type: dcmd.String},
	},
	ArgSwitches: []*dcmd.ArgDef{
		{Name: "name", Help: "Role name - String", Type: dcmd.String, Default: ""},
		{Name: "color", Help: "Role color - Either hex code or name", Type: dcmd.String, Default: ""},
		{Name: "mention", Help: "Role Mentionable - 1 for true 0 for false", Type: &dcmd.IntArg{Min: 0, Max: 1}},
		{Name: "hoist", Help: "Role Hoisted - 1 for true 0 for false", Type: &dcmd.IntArg{Min: 0, Max: 1}},
		{Name: "perms", Help: "Role Permissions - 0 to 1099511627775 ", Type: &dcmd.IntArg{Min: 0, Max: 1099511627775}},
	},
	RunFunc:            cmdFuncEditRole,
	GuildScopeCooldown: 30,
}

Functions

func ParseColor

func ParseColor(raw string) (int, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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