.announce fix?
This commit is contained in:
parent
935d43f04f
commit
e6e4f17eee
@ -615,7 +615,9 @@ namespace NadekoBot.Modules.Administration
|
|||||||
g.GetDefaultChannelAsync()
|
g.GetDefaultChannelAsync()
|
||||||
)).ConfigureAwait(false);
|
)).ConfigureAwait(false);
|
||||||
|
|
||||||
await Task.WhenAll(channels.Select(c => c.SendConfirmAsync($"🆕 Message from {umsg.Author} `[Bot Owner]`:", message)))
|
if (channels == null)
|
||||||
|
return;
|
||||||
|
await Task.WhenAll(channels.Where(c => c != null).Select(c => c.SendConfirmAsync($"🆕 Message from {umsg.Author} `[Bot Owner]`:", message)))
|
||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
|
|
||||||
await umsg.Channel.SendConfirmAsync("🆗").ConfigureAwait(false);
|
await umsg.Channel.SendConfirmAsync("🆗").ConfigureAwait(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user