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
Luna
644d755332
test_admin_api/test_users: decouple user creation and deletion
...
- remove hardcoding of 'big_girl' username on test_list_users
2019-04-22 01:11:34 -03:00
Luna
aff4653454
docs/admin_api.md: add PATCH /users/:id to docs
2019-04-22 00:31:54 -03:00
Luna
f6bf8be94d
admin_api.guilds: use GUILD_DELETE instead of GUILD_UPDATE
2019-04-21 23:17:39 -03:00
Luna
a2e55d80e8
storage: do unavailable guild object rewrite earlier on
...
prevent unecessary db calls as soon as the guild is determined to be
unavailable
2019-04-21 23:08:45 -03:00
Luna
ea9b06182d
storage: rewrite the guild object as unavailable
...
more at https://discordapp.com/developers/docs/resources/guild#unavailable-guild-object
2019-04-21 23:07:05 -03:00
Luna
bb6055f009
admin_api.guilds: switch between GUILD_CREATE / UPDATE
2019-04-21 22:53:21 -03:00
Luna
e886a745b5
guild_memory_store: add gpl header
2019-04-21 22:39:34 -03:00
Luna
4a50ceeb67
Add basic guild available updates
...
- add litecord.guild_memory_store
- storage: add fetch of unavailable field
2019-04-21 22:38:41 -03:00
Luna
85749f2c8e
admin_api.users: add basic flag change support
2019-04-21 21:33:26 -03:00
Luna
d69e732b80
admin_api.guilds: remove unused import
2019-04-21 17:31:18 -03:00
Luna
9aaac5d994
admin_api.users: add PATCH /api/v6/admin/users/:id
...
- admin_schemas: add USER_UPDATE
- users: return a tuple with public and private user dicts on
mass_user_update()
2019-04-21 17:29:21 -03:00
Luna
3dc2e01c28
admin_api.guilds: add PATCH /api/v6/admin/guilds/:id
...
currently does not do anything else other than updating and returning
the guild, as we don't store the availability of it on the database as
of rn.
2019-04-21 17:21:31 -03:00
Luna
36ad9db0ef
schemas: decouple password checking into password type
...
- schemas: make REGISTER.consent optional
2019-04-19 06:44:56 -03:00
Luna
eef09ccf6d
keep links as underlines (pre-hover)
2019-04-15 16:28:59 -03:00
Luna
29444f3c83
fix index's b tag
2019-04-15 04:25:47 -03:00
Luna
ea9ebca26b
update static/css/index.css
...
recolor everything, add a --tos-color variable
2019-04-15 04:25:09 -03:00
Luna
8e880830e8
add nicer layout on the css
...
thanks @fursona for the headstart on css grid layout
2019-04-15 04:14:28 -03:00
Luna
a8b4493d0b
add static/css/index.css
2019-04-15 01:20:52 -03:00