also check targ for null or whitespace
This commit is contained in:
parent
c06b1ae33c
commit
f9fb9d2f76
@ -471,7 +471,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
||||
{
|
||||
var channel = (ITextChannel)umsg.Channel;
|
||||
var arg = query;
|
||||
if (string.IsNullOrWhiteSpace(arg))
|
||||
if (string.IsNullOrWhiteSpace(targ) || string.IsNullOrWhiteSpace(arg))
|
||||
{
|
||||
await channel.SendMessageAsync("💢 Please enter `target query`.").ConfigureAwait(false);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user