finish ChannelUpdate responder
This commit is contained in:
parent
eb40872254
commit
df8af75dd4
14 changed files with 155 additions and 63 deletions
|
|
@ -1,4 +1,3 @@
|
|||
using Catalogger.Backend.Cache;
|
||||
using Catalogger.Backend.Cache.InMemoryCache;
|
||||
using Catalogger.Backend.Database;
|
||||
using Catalogger.Backend.Database.Queries;
|
||||
|
|
@ -152,8 +151,8 @@ public class ChannelCommandsComponents(
|
|||
|
||||
var channelId = WebhookExecutorService.GetDefaultLogChannel(guildConfig, logChannelType);
|
||||
string? channelMention;
|
||||
if (channelId is null or 0) channelMention = null;
|
||||
else if (guildChannels.All(c => c.ID != channelId.Value)) channelMention = $"unknown channel {channelId}";
|
||||
if (channelId is 0) channelMention = null;
|
||||
else if (guildChannels.All(c => c.ID != channelId)) channelMention = $"unknown channel {channelId}";
|
||||
else channelMention = $"<#{channelId}>";
|
||||
|
||||
List<IEmbed> embeds =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue