From 093f11aad94dd61cfa01e58794ebf15b1d62a423 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 10 Jul 2021 23:42:17 -0300 Subject: [PATCH] fix bug on gdm ack leading to no events --- litecord/blueprints/read_states.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/blueprints/read_states.py b/litecord/blueprints/read_states.py index 5c216e7..c32440d 100644 --- a/litecord/blueprints/read_states.py +++ b/litecord/blueprints/read_states.py @@ -36,7 +36,7 @@ async def ack_channel(channel_id, message_id): user_id = await token_check() ctype, guild_id = await channel_check(user_id, channel_id) - if ctype == ChannelType.DM: + if ctype not in GUILD_CHANS: guild_id = None await channel_ack(user_id, channel_id, guild_id, message_id)