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