Commit Graph

1308 Commits

Author SHA1 Message Date
Luna 30902d6e8f update many tests to the new TestClient fixture 2019-07-21 12:51:40 -03:00
Luna 7b07254741 test_cli_admin -> test_cli_staff 2019-07-21 12:34:51 -03:00
Luna cc4e4c53a9 copy elixire test user impl 2019-07-21 12:30:52 -03:00
Luna 13b2bfe242 Merge branch 'impl/suppress-embeds' into 'master'
Implementation for embed suppressing

See merge request litecord/litecord!41
2019-07-21 03:27:28 +00:00
Luna c5020f202e quickfixes 2019-07-21 00:15:48 -03:00
Luna f0dde07418 Merge branch 'impl/gw-guild-subscriptions' into 'master'
Gateway guild subscriptions

See merge request litecord/litecord!40
2019-07-20 21:29:46 +00: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 fb18662af4 dispatcher: fix typo 2019-07-20 13:16:41 -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 bbea185a7d gateway.websocket: add basic getting of guild_subscriptions field 2019-07-20 12:29:51 -03:00
Luna 7b2cff0e19 Merge branch 'impl/invites' into 'master'
Fix invite routes because Discord is inconsistent

See merge request litecord/litecord!38
2019-07-19 19:28:41 +00:00
gabixdev 409d3fcc8f
Remove unnecessary _2 routes 2019-07-19 20:53:09 +02:00
gabixdev 51180d5e05
Fixed invites 2019-07-19 20:42:22 +02:00
Luna 473e4ca310 add impl for suppress_embeds() 2019-06-20 18:29:36 -03:00
Luna 6eb51bb872 add (non-functional) suppress-embeds route 2019-06-20 17:34:11 -03:00
Luna edf1ed9a3d Merge branch 'search/msg-contexts' into 'master'
Add message contexts for search

See merge request litecord/litecord!37
2019-06-18 20:09:47 +00:00
Luna 7ba1849bc2 fix validation when searching on a dm/gdm 2019-06-18 16:55:33 -03:00
Luna 262273b618 split search result generation into own func on utils 2019-06-18 16:53:36 -03:00
Luna 2322c2603c guilds: add message contexts
- guilds: fix fetch_readable_channels()
2019-06-18 16:42:08 -03:00
Luna 9514551405 Merge branch 'search-permissions' into 'master'
Search permissions

Closes #45

See merge request litecord/litecord!36
2019-05-31 01:50:18 +00:00
Luna 508c804acd Merge branch 'master' into search-permissions 2019-05-30 22:32:12 -03:00
Luna ecf75075ad Merge branch 'zstd-support' into 'master'
zstd-stream compression support

Closes #47

See merge request litecord/litecord!35
2019-05-31 01:30:44 +00:00
Luna 288c839806 gateway: add impl for zstd_stream_send
- gateway: add utils pkg for a basic wrapper for zstandard's own
   stream writer
2019-05-30 22:17:20 -03:00
Luna 59f3f6bbb7 gateway.websocket: add ZstdCompressor at start 2019-05-30 21:58:23 -03:00
Luna 9142e26152 gateway: move encoding to litecord.gateway.encoding 2019-05-30 21:46:16 -03:00
Luna bcf12c8d3e guilds: add search filter for readable channels 2019-05-30 21:34:36 -03:00
Luna df7f2b1b21 pipfile: add zstandard library 2019-05-30 20:59:32 -03:00
Luna 23c7ac2c34 test_admin_api.test_users: properly delete test users 2019-05-10 17:27:54 -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 268b921961 gateway.websocket: add shards field to ready
see https://github.com/discordapp/discord-api-docs/pull/826
2019-05-05 17:15:53 -03:00
Luna 28602dfa68 Merge branch 'webhook-avatars-rewrite' into 'master'
Webhook avatars rewrite

See merge request litecord/litecord!34
2019-05-02 05:19:30 +00:00
Luna 4c4a583ccd webhooks: remove unused import 2019-05-02 02:10:47 -03:00
Luna feaef1e463 webhooks: finish impl for webhook_avy_redir
- migration.command: fix apply_migration call
2019-05-02 02:03:37 -03:00
Luna ecfe4fa457 webhooks: remove unused import 2019-05-01 19:09:42 -03:00
Luna addabb53ef add draft for webhook_avatars usage 2019-05-01 18:51:57 -03:00
Luna 454f368f94 tests.test_embeds: add tests for path_exists
- embed.sanitizer: better error handling when fetching the key
2019-04-26 17:00:01 -03:00
Luna acc52a0c61 add basic checking of webhook avatar mime 2019-04-26 16:48:27 -03:00
Luna 5a3740f41b add basic redirect for webhook avatars 2019-04-26 04:10:29 -03:00
Luna 0ab3f2bfa4 add 1_webhook_avatars migration 2019-04-26 03:55:53 -03:00
Luna 1061eda096 embed.sanizier: quickfix for proxify() 2019-04-25 23:45:39 -03:00
Luna 0631f007c1 test_websocket: add test for etf
- embed.sanitizer: remove unused import
2019-04-25 22:44:34 -03:00