Luna
379bd75424
webhooks: fix typo on get_webhook's sql
2019-03-18 04:57:09 -03:00
Luna
e8c158da81
add 15_drop_nullable_webhook_avatar.sql
...
- webhooks: quickfix to webhook_check
2019-03-18 04:54:23 -03:00
Luna
712f1d9ff2
webhooks: add drafts for execution impl
...
- channel.messages: export msg_create_request,
msg_create_check_payload, msg_add_attachment
- schemas: add WEBHOOK_MESSAGE_CREATE
2019-03-18 04:35:44 -03:00
Luna
8360638356
webhooks: add webhook delete impl
2019-03-17 17:39:59 -03:00
Luna
d29fa2e1f3
webhooks: add webhook patch impl
...
- schemas: add WEBHOOK_UPDATE
2019-03-17 17:35:51 -03:00
Luna
eeee05cfe9
webhooks: add more impls
2019-03-17 03:45:31 -03:00
Luna
5a198de517
webhooks: generate a proper token and insert icon on creation
2019-03-17 03:28:54 -03:00
Luna
89009d44c6
webhooks: fix unused/undefined vars
2019-03-17 02:00:51 -03:00
Luna
ca676f6bfb
webhooks: add impl to create and fetch webhook list
...
- schemas: add WEBHOOK_CREATE
2019-03-17 01:33:05 -03:00
Luna
67acf7e22a
Merge branch 'admin-api-conversion' into 'master'
...
Admin api conversion
Closes #38
See merge request litecord/litecord!26
2019-03-17 02:33:53 +00:00
Luna
cc379df861
tests.conftest: add teardown to prevent overuse of resources
2019-03-16 21:13:10 -03:00
Luna
169d22ad72
test_admin_api.test_users: add impl for test_create_delete
...
- admin_api.users: fix bug
2019-03-16 20:31:28 -03:00
Luna
2dda7c1bf9
add tests.test_admin_api.test_users
2019-03-16 19:17:12 -03:00
Luna
700e590e8b
admin_api.users: add user deletion
...
- users: expose _force_disconnect as user_disconnect
2019-03-16 18:44:02 -03:00
Luna
efebd21cfb
docs/admin_api.md: add per_page arg
...
- admin_api.users: properly return user objects
2019-03-16 18:23:37 -03:00
Luna
e60b396e19
admin_api.users: add user search endpoint
2019-03-16 18:18:02 -03:00
Luna
ddb56891d1
add tests.test_admin_api.test_instance_invites
...
- admin_api.instance_invites: fixes
2019-03-16 17:38:22 -03:00
Luna
78aba9432e
admin_api.instance_invites add impls for other endpoints
...
- docs/admin_api.md: document them
- docs/admin_api.md: add basic usage of the api
2019-03-16 17:23:00 -03:00
Luna
5fb27c04a2
add admin_api.{users, instance_invites} blueprints
...
- admin_schemas: add USER_CREATE
2019-03-16 16:45:13 -03:00
Luna
76048f3abc
docs/admin_api.md: add draft for upcoming endpoints
2019-03-16 16:00:21 -03:00
Luna
681dee4306
Merge branch 'guild-features' into 'master'
...
Guild features
Closes #37 and #36
See merge request litecord/litecord!25
2019-03-15 19:37:26 +00:00
Luna
e8c55ac2a9
docs/admin_api.md: add supported features
2019-03-15 16:17:18 -03:00
Luna
276fc4c093
docs/admin_api.md: add Guilds and Guild features sections
2019-03-15 16:14:44 -03:00
Luna
30be092c3c
docs/admin_api.md: update headings
2019-03-15 16:09:52 -03:00
Luna
b90089a784
users: remove unused import
2019-03-15 04:43:26 -03:00
Luna
5c0dfcc9b1
guilds: add support for icon hash for j.splash
...
- guilds: fix guild icon being set to j.splash
- schemas: handle splash being icon hash
2019-03-15 04:39:09 -03:00
Luna
5bfafa2a29
storage: expose banner and description on invites
2019-03-15 04:32:02 -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
44b81ea2f6
guilds: fix guild update icon call
...
- images: add support for splash and banner
- add jpeg check when converting extension
2019-03-15 04:17:57 -03:00
Luna
7cd95d3f94
gateway.websocket: fix ETF encoding with a json pass
...
- icons: fix get guild banner handler args
2019-03-15 03:54:40 -03:00
Luna
2bc3817a4e
guilds: fix region update vip check
2019-03-15 03:46:12 -03:00
Luna
448b74f91b
schemas: add GUILD_UPDATE.{banner, description}
...
- storage: add banner and description to get_guild fetch
- migration: add 14_add_guild_description.sql
2019-03-15 03:41:51 -03:00
Luna
79735eedf8
guilds: add (untested) impl for splash and banner
...
this finishes all theoretical implementations for features.
Closes #36 and #37 .
2019-03-15 03:34:49 -03:00
Luna
60ccd8db0b
guilds: add size=(128, 128) when updating guild icon
2019-03-15 03:16:17 -03:00
Luna
1987db11e4
guilds: decouple icon put logic into a func
2019-03-15 02:41:30 -03:00
Luna
060e91907d
icons: properly remove unused vars
2019-03-15 01:26:27 -03:00
Luna
c2c3ea3091
icons: remove double get_guild_splash handler
...
- icons: remove print debug
2019-03-15 00:08:41 -03:00
Luna
5862dce922
icons: add getters for splash and banner
...
- fix channel-icons scope fetch
2019-03-15 00:01:49 -03:00
Luna
8605e1f59f
Merge branch 'master' into guild-features
2019-03-14 16:23:38 -03:00
Luna
e6e442f112
schemas: enable nullable for region fields
...
Closes #40 .
2019-03-14 16:18:44 -03:00
Luna
47db480209
register: properly handle missing j.invite
...
- schemas: fix 80col line breaks
2019-03-13 22:59:27 -03:00
Luna
1ad328904d
admin_schemas: move FEATURES schema to there
2019-03-13 18:35:01 -03:00
Luna
a12c63a7bf
add impl for VIP_REGIONS
...
(untested)
- lvsp_manager: add Region, and store vip region status in it
- lvsp_manager: add LVSPManager.region
2019-03-13 18:28:48 -03:00
Luna
977fa95ff2
admin_api.features: delete vanity invites when guild loses feature
...
- guilds: make _vanity_inv -> vanity_invite exportable function
2019-03-13 05:07:10 -03:00
Luna
6763f2c501
guilds: add VANITY_URL feature check when editing vanity
2019-03-13 05:04:48 -03:00
Luna
afcdd145f4
emoji: add MORE_EMOJI feature support
...
bumps emoji limit to 200 for both static and animated, needs more
looking.
- storage: add Storage.has_feature
2019-03-13 05:03:26 -03:00
Luna
5c51894807
guilds: add failsafe check for same invite
2019-03-13 04:49:50 -03:00
Luna
f0d4c84e68
guilds: add implementation for vanity invites
...
I'm not proud of it, especially that we couldn't use much SQL power and
things are laid off to Storage calls. It works, though
- schemas: add VANITY_URL_PATCH
2019-03-13 04:48:25 -03:00
Luna
633cd730c0
guilds: add basic vanity urls
...
- add vanity_invites table
2019-03-13 04:28:23 -03:00
Luna
0dbfb3a210
admin_api.features: dispatch GUILD_UPDATE on feature changes
...
- storage: fix typing on get_guild_full
2019-03-13 04:09:43 -03:00