Cynthia Foxwell
f162f0ab60
Update license headers
2021-09-24 11:33:06 -06:00
NotNite
a1ca74f960
lazy_guild: remove member properly
2021-09-21 18:20:31 -04:00
luna
9fea3d7a43
lazy_guild: fix member list ordering
2021-09-01 00:31:57 +00:00
Luna
1819075137
properly unsubscribe member when being removed
2021-08-30 23:52:35 -03:00
Luna
f05b807f60
move dispatching logic to GatewayState
...
this makes gateway states have correct data for resuming
2021-08-30 00:09:34 -03:00
Luna
d16a893d84
fix nick updates on lazy guilds
2021-08-29 22:59:18 -03:00
Luna
0eb37554d3
fix typos
2021-07-14 23:44:04 -03:00
Luna
d1b10e7409
fix new joins not subscribing to channels
2021-07-14 23:41:19 -03:00
Luna
67785920bb
lazy_guild: do not remove member nicks
2021-07-14 23:27:30 -03:00
Luna
8f229bf764
pubsub: fix typo
2021-07-14 22:38:51 -03:00
Luna
07edc235f5
lazy_guild: add handling for member losing permissions
2021-07-14 21:45:43 -03:00
Luna
03dd1f0406
pubsub: remove DispatcherWithFlags superclass
2021-07-14 15:53:37 -03:00
Luna
7757c837d0
pubsub: remove flags from dispatchers
2021-07-14 15:51:36 -03:00
Luna
f3af9b5f11
pubsub: add intents logic for Guild Member Update
2021-07-14 15:14:51 -03:00
Luna
a51840487f
pubsub: add passthrough logic
2021-07-14 15:04:33 -03:00
Luna
bc1c0f3b20
add intents support to channel dispatcher
2021-07-14 14:59:34 -03:00
Luna
dae56a68ae
move events-intents table to enums module
2021-07-14 14:59:15 -03:00
Luna
c03ed978ca
pubsub.guild: replace flags with intents checking
2021-07-11 01:40:05 -03:00
Luna
1d2df14527
black run
2021-06-25 15:19:38 -03:00
Luna
64498ba3f2
only dispatch to states with websockets
2020-06-26 22:21:26 -03:00
Luna
6cf971ac1b
Unsub invalid states from guild dispatcher
2020-05-02 01:19:33 -03:00
Luna
373b727084
Add helper bool magic method for state validity
...
Reported in #102
2020-05-01 11:39:21 -03:00
Luna
82d793ae07
Ignore states without websocket
2020-05-01 11:37:56 -03:00
Luna
b1d1f4f228
add better docstring to update_status
...
- simplify logic to fetch game
- safer getting when making final status
2020-03-14 20:05:14 +00:00
Luna
f69d0aa724
ignore KeyErrors when removing flags
2020-02-26 14:01:22 -03:00
Luna
b0eb3247fd
remove code from dispatcher
...
leftovers are TBD.
- constrict Dispatcher.dispatch() to arity 3
- add helper methods to Dispatcher
- add EventType to Dispatcher
While fixing things, it was discovered that many of the things inside
LazyGuildDispatcher were just interfaces to GuildMemberList, in a very
weird way, just so it could be fitted inside the main Dispatcher. it was
decided to remove those unecessary interfaces, clients shall use the
manager directly.
2020-02-09 21:20:08 +00:00
Luna
e0e59f8b63
fix types (big)
...
varied fixes across many, many files.
2020-02-06 21:10:51 +00:00
Luna
0cc1062c52
flake8 pass
...
- fix test_empty_embed not actually reporting on empty embeds
2019-10-25 08:06:26 -03:00
Luna
83a1c1ae29
black fmt pass
2019-10-25 07:27:50 -03:00
Luna
80a54e8b8d
ignore when flags.presence isn't given
2019-07-20 14:39:22 -03:00
Luna
f99ad7a207
pubsub.guild: drop presence flags when passing it to channels
2019-07-20 13:22:56 -03:00
Luna
ad751cdad7
pubsub.guild: only pass flags when required
2019-07-20 13:21:32 -03:00
Luna
91679c3aee
fix import
2019-07-20 13:08:08 -03:00
Luna
49ed61438c
pubsub: add indirection layer to access flags
2019-07-20 13:05:47 -03:00
Luna
29d13c53b8
pubsub.channel: add flags to ChannelDispatcher
2019-07-20 13:00:19 -03:00
Luna
4c29575b2c
pubsub.dispatcher: add DispatcherWithFlags
2019-07-20 12:59:20 -03:00
Luna
99e29ad39f
pubsub.guild: default to always getting presence
2019-07-20 12:55:39 -03:00
Luna
4d7e6ec93c
pubsub.guild: skip presence events based on flags.presence
2019-07-20 12:55:14 -03:00
Luna
dda99c9a6a
add basic flags support to GuildDispatcher
2019-07-20 12:51:13 -03:00
Luna
e2cb49669e
dispatcher: add basics of subscription flags
2019-07-20 12:46:59 -03:00
Luna
2c7c313a53
fix inconsistent presence objects
...
adds default values to presence.mobile and presence.client_status, as we
don't add any checks for them
client_status is presented on ae03e00ed2 (diff-b307d936b736f302bc7cc153f0d8a0a3)
mobile isn't shown anywhere but was used for mobile indicators. more on
https://luna.gitlab.io/discord-unofficial-docs/mobile_indicator.html
2019-05-05 17:49:58 -03:00
Luna
9dab5b20ae
typing, episode 2
2019-03-04 15:48:51 -03:00
Luna
bbf80f72b1
fix tests and an ugly circular import
2019-03-04 05:24:40 -03:00
Luna
d91030a2c1
typings, episode 1
...
(i installed mypy and its beautiful)
2019-03-04 05:09:04 -03:00
Luna
0759a52046
pubsub.lazy_guild: s/pop/remove on remove_channel
2019-03-04 03:16:28 -03:00
Luna
7f7c71b3eb
dm_channels: fix some pubsub stuff
...
- pubsub.channel: make gdm_recipient_view a public function
2019-02-17 00:16:26 -03:00
Luna
8a76b5a407
pubsub.channel: add gdm recipient view for chan create/update
2019-02-16 23:39:47 -03:00
Luna
b079dd428a
storage: handle webhook authors in messages
2019-02-05 18:00:35 -03:00
Luna
f1127d1970
pubsub.lazy_guild: sanity of mind
...
- add more comments, always good
- remove some unused methods and move some others to private methods
- use _set_empty_list in close() method
2019-02-03 23:23:07 -03:00
Luna
53d7515f8c
all: update copyright year
2019-01-26 19:25:46 -03:00