From f99ad7a207d949d34f9771978ee113dd77eae632 Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 20 Jul 2019 13:22:56 -0300 Subject: [PATCH] pubsub.guild: drop presence flags when passing it to channels --- 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 aef55cc..5ebc101 100644 --- a/litecord/pubsub/guild.py +++ b/litecord/pubsub/guild.py @@ -58,7 +58,11 @@ class GuildDispatcher(DispatcherWithFlags): # it is an idea to have flags support for other actions args = [] if action == 'sub': - args.append(flags) + chanflags = dict(flags) + + # channels don't need presence flags + chanflags.pop('presence') + args.append(chanflags) await self.main_dispatcher.action( 'channel', action, chan_id, user_id, *args