mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-21 21:54:36 +00:00
Fix bb.config failing with no subcommand parameters
This commit is contained in:
parent
155b8e44b0
commit
0c0f6ee5c2
1 changed files with 0 additions and 5 deletions
|
@ -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.")
|
||||||
|
|
Loading…
Reference in a new issue