Commit Graph

1223 Commits

Author SHA1 Message Date
Luna b1aef75bb2 presence: remove TODO
that function is already shard-aware since we started subscribing at the
websocket start instead of fetching session ids for every single
dispatch.
2020-02-17 22:36:56 -03:00
Luna f0f5570dfa Merge branch 'feature/rewrite-dispatcher' into 'master'
dispatcher refactor

Closes #84

See merge request litecord/litecord!60
2020-02-09 21:20:08 +00:00
Luna b0eb3247fd remove code from dispatcher
leftovers are TBD.

 - constrict Dispatcher.dispatch() to arity 3
 - add helper methods to Dispatcher
 - add EventType to Dispatcher

While fixing things, it was discovered that many of the things inside
LazyGuildDispatcher were just interfaces to GuildMemberList, in a very
weird way, just so it could be fitted inside the main Dispatcher. it was
decided to remove those unecessary interfaces, clients shall use the
manager directly.
2020-02-09 21:20:08 +00:00
Luna 39e8a1ad7e images: force-cast to bool inside Icon
reported in #86
2020-02-08 13:28:29 -03:00
Luna c3b281c940 Merge branch 'feature/improve-typing' into 'master'
improve typing (episode 1)

Closes #85

See merge request litecord/litecord!59
2020-02-06 21:10:52 +00:00
Luna e0e59f8b63 fix types (big)
varied fixes across many, many files.
2020-02-06 21:10:51 +00:00
Luna 020e03bf6d Merge branch 'fix/db-constraints' into 'master'
fix/add database constraints

Closes #70

See merge request litecord/litecord!58
2020-02-04 20:50:40 +00:00
Luna e42aadb6d0 migration.command: dont split on migration 0
(it's a hack)
2020-02-04 20:50:40 +00:00
Luna 7db5ce62c1 presence: fix removed shard field
closes #80
2020-02-03 18:29:11 -03:00
Luna 67a8ae4ce2 Merge branch 'impl/deprecated-regions' into 'master'
impl: deprecated regions

Closes #79

See merge request litecord/litecord!57
2020-02-03 20:01:22 +00:00
Luna 20bc174ea1 impl: deprecated regions 2020-02-03 20:01:22 +00:00
Luna 41b877fcd0 admin_api.voice: fix path to fix_region_server route
related to #79
2020-02-03 16:21:59 -03:00
Luna fac82d3a6c Merge branch 'master' of https://gitlab.com/litecord/litecord 2020-02-03 06:41:17 -03:00
Luna 9998092db4 admin_api.users: allow PUT method to create user
PUT was the wanted method. POST serves as a fallback.

closes !56
2020-02-03 06:40:34 -03:00
Luna 3aec18cb19 Merge branch 'impl/remaining-user-flags' into 'master'
Adding Remaining User Flags

See merge request litecord/litecord!55
2020-01-31 20:38:29 +00:00
Hampus Kraft a666ca4fc0
feat: adding remaining user flags 2020-01-31 19:15:42 +01:00
Luna d2e219a1df Merge branch 'presence-dataclass' into 'master'
make Presence dataclass

Closes #64

See merge request litecord/litecord!52
2020-01-30 01:50:50 +00:00
Luna 0f600543e8 Refactor GatewayState with proper types
Make websocket loop be inside app context
2020-01-30 01:50:50 +00:00
Luna 70443ca379 Merge branch 'bugfix/voice-region-schema' into 'master'
fix voice region unsync

Closes #76

See merge request litecord/litecord!54
2020-01-29 19:52:44 +00:00
Luna 9567bf0a85 admin_api.voice: refresh lvsp regions on insert
closes #76
2020-01-29 19:52:44 +00:00
Luna d050d3b025 Merge branch 'master' of https://gitlab.com/litecord/litecord 2020-01-29 16:32:45 -03:00
Luna b53a96bc0f common.users: use logbook 2020-01-29 16:29:59 -03:00
Luna ba612ed185 Merge branch 'patch-1' into 'master'
Fixing ports in nginx config

See merge request litecord/litecord!53
2020-01-29 09:43:54 +00:00
Hampus Kraft 699a119fe2 nginx: update ports 2020-01-29 06:51:04 +00:00
Luna cc45500637 Merge branch 'master' of https://gitlab.com/litecord/litecord 2020-01-27 17:25:25 -03:00
Luna c416f01244 schemas: add GUILD_UPDATE.features
closes #75
2020-01-27 17:23:23 -03:00
Luna a37ddbf6b1 Merge branch 'fix-vanity-length' into 'master'
Updating Vanity URL Length

See merge request litecord/litecord!50
2020-01-26 18:47:41 +00:00
Hampus Kraft 5a3f927c69
fix: updating vanity URL length 2020-01-26 19:36:35 +01:00
Luna 65069eb668 Merge branch 'master' into multiple-embeds 2020-01-25 14:12:10 -03:00
Luna c8d37019a9 gateway.websocket: ignore compression when encoding=etf 2020-01-25 00:07:31 -03:00
Luna 6e81b8d5fb test_embeds: assert path_exists for simple case 2020-01-24 21:32:35 -03:00
Luna d8a24ad052 embeds: make mediaproxy functions return list of embeds
- embeds: make mediaproxy functions check their types
2020-01-24 21:13:34 -03:00
Luna 6c802ad3fa update winter 2020-01-07 16:56:20 -03:00
Luna a76460bea1 varied fixes due to sed fuckups 2020-01-06 22:55:20 -03:00
Luna 3481165bc5 everything: use winter 2020-01-06 21:38:29 -03:00
Luna 9a0a0c5a59 pipfile: add winter 2020-01-06 21:35:21 -03:00
Luna bc3fa37d63 guild.members: use context manager for pool conn acquire 2019-11-15 20:37:10 -03:00
Luna e917982f6d guilds: remove unused import 2019-10-26 12:00:31 -03:00
Luna 44315b0845 move add_member to common.guilds
this decreases copy-pasting of the 'INSERT INTO members' line, and
add_member gets a `basic` kwarg to remove gateway side-effects

 - errors: add 40007 error code to ERR_MSG_MAP
 - invites: use 40007 and 10006 error codes
2019-10-26 11:57:43 -03:00
Luna 27b5836132 invites: check maximum invite count 2019-10-26 11:52:26 -03:00
Luna 23034aadbd errors: add 30016 err code to ERR_MSG_MAP 2019-10-26 11:49:54 -03:00
Luna 6dc591e853 allow presences boolean on request guild members
see 5454bdf4e0 for source
2019-10-26 11:47:12 -03:00
Luna 57220179bc Merge branch 'enhance/refactor-and-move-internals' into 'master'
Refactor and move internals

See merge request litecord/litecord!47
2019-10-25 19:52:31 +00:00
Luna ca7f1eae6b user.billing: fix import 2019-10-25 16:44:39 -03:00
Luna 7c3e9ec2c7 move create_guild_settings to common.guilds 2019-10-25 16:19:18 -03:00
Luna c765cd7fe0 fix imports 2019-10-25 16:01:48 -03:00
Luna 91d70d2c41 fix imports to common.users 2019-10-25 13:52:33 -03:00
Luna f1e6baffd2 move user functions to common.users 2019-10-25 13:48:22 -03:00
Luna ffa244173c messages: remove double import 2019-10-25 13:41:11 -03:00
Luna b41d3b6f36 guilds: use common, remove delete_guild() from it 2019-10-25 13:39:22 -03:00