From 80a54e8b8d853383a65125758229b5f253352ab3 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 20 Jul 2019 14:39:22 -0300 Subject: [PATCH] ignore when flags.presence isn't given --- litecord/pubsub/guild.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/litecord/pubsub/guild.py b/litecord/pubsub/guild.py index 5ebc101..462fb63 100644 --- a/litecord/pubsub/guild.py +++ b/litecord/pubsub/guild.py @@ -61,7 +61,11 @@ class GuildDispatcher(DispatcherWithFlags): chanflags = dict(flags) # channels don't need presence flags - chanflags.pop('presence') + try: + chanflags.pop('presence') + except KeyError: + pass + args.append(chanflags) await self.main_dispatcher.action(