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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.