fix(bot): incorrect conditional in logclean
This commit is contained in:
parent
6c4bd2cc26
commit
c156951e19
@ -95,7 +95,7 @@ public class MessageCreated: IEventHandler<MessageCreateEvent>
|
|||||||
|
|
||||||
private async Task TryHandleLogClean(Channel channel, MessageCreateEvent evt)
|
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;
|
if (channel.Type != Channel.ChannelType.GuildText) return;
|
||||||
|
|
||||||
var guildSettings = await _repo.GetGuild(evt.GuildId!.Value);
|
var guildSettings = await _repo.GetGuild(evt.GuildId!.Value);
|
||||||
|
Loading…
Reference in New Issue
Block a user