Fix bb.config failing with no subcommand parameters

This commit is contained in:
Noikoio 2019-05-27 19:55:21 -07:00
parent 155b8e44b0
commit 0c0f6ee5c2

View file

@ -50,11 +50,6 @@ Friend Class ManagerCommands
Return Return
End If End If
If param.Length <> 3 Then
Await reqChannel.SendMessageAsync(GenericError)
Return
End If
' Special case: Restrict 'modrole' to only guild managers ' Special case: Restrict 'modrole' to only guild managers
If param(1).Equals("modrole", StringComparison.OrdinalIgnoreCase) And Not reqUser.GuildPermissions.ManageGuild Then If param(1).Equals("modrole", StringComparison.OrdinalIgnoreCase) And Not reqUser.GuildPermissions.ManageGuild Then
Await reqChannel.SendMessageAsync(":x: This command may only be used by those with the `Manage Server` permission.") Await reqChannel.SendMessageAsync(":x: This command may only be used by those with the `Manage Server` permission.")