feat: redirect commands

This commit is contained in:
sam 2024-10-16 14:53:30 +02:00
parent 03dc16b0b3
commit bacbc6db0e
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
7 changed files with 212 additions and 7 deletions

View file

@ -321,9 +321,9 @@ public class WebhookExecutorService(
guild.Channels.Redirects.TryGetValue(channelId.Value.Value, out var channelRedirect)
)
return channelRedirect;
if (categoryRedirect != 0)
return categoryRedirect;
return GetDefaultLogChannel(guild, logChannelType);
return categoryRedirect != 0
? categoryRedirect
: GetDefaultLogChannel(guild, logChannelType);
}
return GetDefaultLogChannel(guild, logChannelType);