rename EditCommand to EditCommandLevel

This commit is contained in:
lyx0 2022-08-11 21:01:13 +02:00
parent e78a844860
commit 4e4b26b43a
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ func (app *Application) handleCommand(message twitch.PrivateMessage) {
common.Send(target, "Not enough arguments provided.", app.TwitchClient)
return
} else if cmdParams[1] == "level" {
app.EditCommand(cmdParams[2], cmdParams[3], message)
app.EditCommandLevel(cmdParams[2], cmdParams[3], message)
return
} else {
return

View file

@ -66,7 +66,7 @@ func (app *Application) GetCommand(name, username string) (string, error) {
}
func (app *Application) EditCommand(name, lvl string, message twitch.PrivateMessage) {
func (app *Application) EditCommandLevel(name, lvl string, message twitch.PrivateMessage) {
level, err := strconv.Atoi(lvl)
if err != nil {