mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
Continue to log chat sends to no available channels
This commit is contained in:
@@ -984,15 +984,16 @@ namespace Tgstation.Server.Host.Components.Chat
|
||||
Task SendMessage(IEnumerable<ulong> channelIds, Message replyTo, MessageContent message, CancellationToken cancellationToken)
|
||||
{
|
||||
channelIds = channelIds.ToList();
|
||||
if (!channelIds.Any())
|
||||
return Task.CompletedTask;
|
||||
|
||||
logger.LogTrace(
|
||||
"Chat send \"{message}\"{embed} to channels: {channelIdsCommaSeperated}",
|
||||
"Chat send \"{message}\"{embed} to channels: [{channelIdsCommaSeperated}]",
|
||||
message.Text,
|
||||
message.Embed != null ? " (with embed)" : String.Empty,
|
||||
String.Join(", ", channelIds));
|
||||
|
||||
if (!channelIds.Any())
|
||||
return Task.CompletedTask;
|
||||
|
||||
return Task.WhenAll(
|
||||
channelIds.Select(x =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user