feat: add /configure-channels command

This commit is contained in:
sam 2024-08-14 16:05:43 +02:00
parent 110edd34b4
commit 4db09346e2
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
7 changed files with 588 additions and 25 deletions

View file

@ -167,7 +167,7 @@ public class WebhookExecutorService(
return GetDefaultLogChannel(guild, logChannelType);
}
private ulong? GetDefaultLogChannel(Guild guild, LogChannelType channelType) => channelType switch
public static ulong? GetDefaultLogChannel(Guild guild, LogChannelType channelType) => channelType switch
{
LogChannelType.GuildUpdate => guild.Channels.GuildUpdate,
LogChannelType.GuildEmojisUpdate => guild.Channels.GuildEmojisUpdate,