fix bug on gdm ack leading to no events

This commit is contained in:
Luna 2021-07-10 23:42:17 -03:00
parent 6c2c6500a6
commit 093f11aad9
1 changed files with 1 additions and 1 deletions

View File

@ -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)