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
Luna
9f50721243
gateway.websocket: fix etf
2019-04-25 22:26:45 -03:00
Luna
b6da5ad9d3
embed.sanitizer: use try/except instead of key membership check
2019-04-25 22:17:15 -03:00
Luna
ff9d421a3c
embed.sanitizer: full refactor
...
- refactor the three main mediaproxy api client functions into a
template function
- simplify common code between everyone
- add typings to fill_embed()
- embed.schemas: add querystring to EmbedURL.to_md_path
2019-04-25 22:12:04 -03:00
Luna
c9a7b3dfb5
schemas: better email type
2019-04-25 21:29:52 -03:00
Luna
7c5ef967f6
schemas: remove unused import
2019-04-25 20:56:44 -03:00
Luna
5a15f3caf2
schemas: add proper validation of voice_region type
2019-04-25 20:55:06 -03:00
Luna
2076beb5fa
base package updates: itsdangerous, quart, pytest
2019-04-22 17:04:34 -03:00
Luna
1ef2d9a819
update some deps
2019-04-22 16:56:53 -03:00
Luna
195a219f75
add ability to purposefully disable voice initialization
...
there is an issue (not very urgent) where a traceback was shown at any
`manage.py` usage. this was not catched before because of recent
modifications that removed manager startup when calling `migrate`.
2019-04-22 16:27:50 -03:00
Luna
5dbf8ac8fd
Merge branch 'admin-api-more-endpoints' into 'master'
...
Admin API improvements
Closes #44
See merge request litecord/litecord!33
2019-04-22 07:24:02 +00:00
Luna
eeaec19b2f
test_admin_api.test_guilds: add another check for unavailable guild
2019-04-22 03:51:39 -03:00
Luna
1507d422eb
docs/admin_api.md: add missing guild delete endpoint
2019-04-22 03:46:52 -03:00
Luna
daee044a4f
admin_api.guilds: make get guild route raise GuildNotFound
...
before it was returning 200 but with a `null` inside, I don't think
that's reasonable API design.
- test_admin_api/test_guilds: add checks for GuildNotFound error code
2019-04-22 02:41:24 -03:00
Luna
4142baa84b
test_admin_api/test_guilds: add test_guild_delete
2019-04-22 02:37:29 -03:00
Luna
b0c65c88dd
admin_api.guilds: add DELETE /api/v6/admin/guilds/:id
2019-04-22 02:29:55 -03:00
Luna
a6ecc84b9f
test_admin_api/test_guilds: add test_guild_update
...
- docs/admin_api.md: add note on unavailable guild object being
returned
2019-04-22 02:17:51 -03:00
Luna
d8b889c1a9
add tests/test_admin_api/test_guilds.py
...
- guilds: decouple endpoint logic into a delete_guild() function
2019-04-22 02:13:53 -03:00
Luna
717c02bdd7
admin_schemas: fix USER_UPDATE's coerce
...
- admin_api.users: fix missing attrs / wrong calls
- enums: add Flags.value attr for an instantiated Flags
2019-04-22 01:45:26 -03:00
Luna
e65db52c62
test_admin_api/test_users: add impl for test_user_update
2019-04-22 01:27:43 -03:00