1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-28 01:33:10 +00:00

Commands are now camel-cased

This commit is contained in:
diamondburned (Forefront) 2020-01-23 22:30:32 -08:00
parent 3baf89671b
commit 3d81c28685

View file

@ -265,7 +265,7 @@ func (sub *Subcommand) parseCommands() error {
// Check if Raw is enabled for command:
if !flag.Is(Raw) {
command.Command = strings.ToLower(name)
command.Command = strings.ToLower(string(name[0])) + name[1:]
}
// Middlewares shouldn't even have arguments.