fix(bot): incorrect conditional in logclean

This commit is contained in:
spiral 2022-06-22 09:34:59 -04:00
parent 6c4bd2cc26
commit c156951e19
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -95,7 +95,7 @@ public class MessageCreated: IEventHandler<MessageCreateEvent>
private async Task TryHandleLogClean(Channel channel, MessageCreateEvent evt)
{
if (evt.GuildId != null) return;
if (evt.GuildId == null) return;
if (channel.Type != Channel.ChannelType.GuildText) return;
var guildSettings = await _repo.GetGuild(evt.GuildId!.Value);