required param cannot be null
This commit is contained in:
parent
8194e9aed6
commit
22aba88de5
@ -316,14 +316,12 @@ namespace NadekoBot.Modules
|
||||
cgb.CreateCommand(".setgame")
|
||||
.Description("Sets the bots game.")
|
||||
.Parameter("set_game", ParameterType.Required)
|
||||
.Do( e => {
|
||||
if (e.User.Id != NadekoBot.OwnerID || e.GetArg("set_game") == null) return;
|
||||
.Do(e => {
|
||||
if (e.User.Id != NadekoBot.OwnerID) return;
|
||||
|
||||
client.SetGame(e.GetArg("set_game"));
|
||||
});
|
||||
|
||||
|
||||
|
||||
cgb.CreateCommand(".checkmyperms")
|
||||
.Description("Checks your userspecific permissions on this channel.")
|
||||
.Do(async e => {
|
||||
|
Loading…
Reference in New Issue
Block a user