Commit Graph

17 Commits

Author SHA1 Message Date
Luna 262273b618 split search result generation into own func on utils 2019-06-18 16:53:36 -03:00
Luna b0f881f422 utils: docstring arrangements 2019-03-20 17:27:35 -03:00
Luna b6e21a2501 guilds: handle banner changes like user avatar changes
just like user avatars, the client can just send the icon hash, we need
to check that first beforehand.

 - guilds: add description update
 - utils: move to_update() from blueprints.users to there
2019-03-15 04:29:35 -03:00
Luna e2af6b6370 voice: more voice goodies
- lvsp manager: change internal structure of lvsp conns
 - voice.manager: add incomplete impl for creating a channel
2019-03-04 20:46:14 -03:00
Luna 9dab5b20ae typing, episode 2 2019-03-04 15:48:51 -03:00
Luna d91030a2c1 typings, episode 1
(i installed mypy and its beautiful)
2019-03-04 05:09:04 -03:00
Luna 53d7515f8c all: update copyright year 2019-01-26 19:25:46 -03:00
Luna 6872139ff6 gateway.websocket: do chunked sends on zlib stream
this should fix issues with big payloads being sent
as a single big websocket message to a client (potentially crashing it).

chunked sends split the payload into 1KB chunks that are each
sent through the websocket. clients are already supposed to handle
this behavior from the zlib-stream docs.

 - utils: add yield_chunks
2018-12-10 01:44:44 -03:00
Luna 2632d033fa all: add GPL header 2018-12-07 02:14:58 -03:00
Luna 5db633b797 channel.messages: use sanitize_embed
- embed: add sanitizer module
 - embed.schemas: add to_json to EmbedURL
 - utils: add custom JSON encoder
 - run: use custom JSON encoder
 - gateway.websocket: use custom JSON encoder
2018-12-04 21:45:14 -03:00
Luna 94fe51ac69 channel.messages: add embed insertion
- storage: move pg_set_json to litecord.utils to fix circular imports
 - storage: add embed fetch to get_message
 - embed.schemas: fix author.url's url
 - schemas: add EMBED_OBJECT to MESSAGE_CREATE
2018-12-04 18:37:42 -03:00
Luna 8c4b7a1ac8 pubsub.lazy_guild: fix list_id for non-everyone lists
- utils: add murmurhash3 implementation
2018-12-04 02:02:40 -03:00
Luna Mendes bd9c4cb26c pubsub.lazy_guild: add implementation for pres_update
- utils: fix index_by_func
2018-11-07 18:52:50 -03:00
Luna Mendes c212cbd392 pubsub.lazy_guild: change some instance vars to properties
- utils: add index_by_func
2018-11-07 17:53:31 -03:00
Luna Mendes dca1adc6f8 blueprints.guilds: add create_role function 2018-10-26 15:57:24 -03:00
Luna Mendes b06c07c097 gateway.websocket: add handler for heartbeats
this should keep connections more stable since we reply and update
WebsocketState.last_seq
2018-09-28 17:50:18 -03:00
Luna Mendes 92f6e3cf75 add invite usage
users can now join guilds!

invites:
 - add GET /api/v6/invites/<invite_code>
 - add DELETE /api/v6/invites/<invite_code>
 - add GET /api/v6/guilds/<guild_id>/invites
 - add GET /api/v6/channels/<channel_id>/invites
 - add POST /api/v6/invite/<invite_code>

storage:
 - add verification_level to invites
 - add empty invite.guild.features

gateway.state_manager:
 - add StateManager.user_states
 - give a dummy offline state on guild_states
    - this makes it possible for people to see offline members even when
       those members never logged in (since the would have no state being
       reffered to them)

 - gateway.websocket: use get_member_ids on lazy guild handler
 - auth: add GET /api/v6/auth/consent-required
 - dispatcher: add dispatch_user_guild and dispatch_user
 - run: use Origin header on Access-Control-Allow-Origin
2018-09-27 23:10:30 -03:00