Skip to content

Commit

Permalink
plugins: (message-roles) Fix removing response message
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT2 committed Aug 5, 2023
1 parent 7a79994 commit 0c3c7b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/message-roles/message-roles.go
Expand Up @@ -260,13 +260,13 @@ func MessageRolesConfigCommand(c bot.Command) error {
}
}

roles = orderedRoles

if len(orderedRoles) < len(roles) {
_, err = cmd.SendEmbed(c.E, p.Name, fmt.Sprintf("Removed role <@&%v>!", role), bot.ErrorColor)
} else {
_, err = cmd.SendEmbed(c.E, p.Name, "This role is not setup for Message Roles! Add it using the `role` argument.", bot.ErrorColor)
}

roles = orderedRoles
case "whitelist":
role, argErr1 := cmd.ParseInt64Arg(c.Args, 2)
channel, argErr2 := cmd.ParseChannelArg(c.Args, 3)
Expand Down

0 comments on commit 0c3c7b9

Please sign in to comment.