Commit Graph

992 Commits

Author SHA1 Message Date
Luna 43e34cde3a fix typo in sql statement 2021-08-30 23:39:53 -03:00
Luna 70cd40966d fix typo on sql query 2021-08-30 23:37:02 -03:00
Luna 36a69ad8cb fix typo 2021-08-30 23:22:54 -03:00
Luna 0c14473a95 checks: validate when target or user is an owner 2021-08-30 23:18:28 -03:00
Luna 4c2bbe89a1 remove unused function 2021-08-30 22:59:33 -03:00
Luna cb23d972c6 add targets to guild_perm_check calls 2021-08-30 22:51:53 -03:00
Luna e2b150ee21 cheks: refactor target member 2021-08-30 22:43:23 -03:00
Luna 6c1a73233b checks: add target_member_id to guild_perm_check 2021-08-30 22:13:20 -03:00
Luna 7374091dec gateway: only send payload if ws exists 2021-08-30 00:21:39 -03:00
Luna 6e9ddd89f8 relationships: move self-self check to make_friend 2021-08-30 00:16:32 -03:00
Luna f05b807f60 move dispatching logic to GatewayState
this makes gateway states have correct data for resuming
2021-08-30 00:09:34 -03:00
Luna d16a893d84 fix nick updates on lazy guilds 2021-08-29 22:59:18 -03:00
Luna 6cb92ae7f2 gateway: support v6 ready.read_state 2021-08-29 21:26:04 -03:00
Luna 221c2f5c6c refactor websocket properties name 2021-08-29 21:25:15 -03:00
Luna 0271b37de4 gateway: make user_guild_settings repr depend on gw version 2021-08-29 21:15:54 -03:00
Luna 81de11a8cf gateway: update identify schema 2021-08-29 21:03:25 -03:00
Luna cc70beb87a user.billing: fill plan_id with correct plan ids 2021-08-29 19:36:26 -03:00
Luna 4c1823c8b7 user.billing: add better stub for subscription.items 2021-08-29 19:32:19 -03:00
Luna 60b7216aac user.billing: add stub to subscription.items 2021-08-29 19:29:53 -03:00
Luna b4b54379e1 update OP class 2021-08-29 19:25:23 -03:00
Luna 9d557e2817 add stub for op 24 2021-08-29 19:19:33 -03:00
Luna 331d316feb gateway: add debug logging for received messages 2021-08-29 19:19:18 -03:00
Luna 55f86393f8 gateway: fix Request Guild Members 2021-08-29 19:18:59 -03:00
Luna eb88651424 add stubs for some routes 2021-08-29 18:08:21 -03:00
Luna 9cdb79b084 store: add subscription-plan stubs for specific SKUs 2021-08-29 17:09:57 -03:00
Luna d2cca438ab users: add stub entitlements 2021-08-29 17:09:17 -03:00
Luna 587aac380f add store blueprint 2021-08-29 16:47:15 -03:00
Luna f0c0b8e9c2 fix typo 2021-08-29 16:37:44 -03:00
Luna 59e1056604 users: add 'with_mutual_guilds' argument support 2021-08-29 16:20:05 -03:00
Luna 0a429ee47e add support for user.bio, user.accent_color CRUD 2021-08-29 15:53:00 -03:00
Luna 122798c567 schemas: add bio and accent_color 2021-08-29 15:52:28 -03:00
Luna 2a71d9f131 add applications stub blueprint 2021-08-29 15:05:46 -03:00
Luna 1818f93019 add stickers stub blueprint 2021-08-29 14:59:37 -03:00
Luna 1a95e95303 fix typo 2021-08-29 13:00:29 -03:00
Luna 495f0d4b8c messages: fix before_messages array pointing to earliest message 2021-08-29 12:58:47 -03:00
Luna ead5346713 billing: add stub for country-code route 2021-08-29 12:00:10 -03:00
Luna ae26f20705 storage: add stub for emoji.available 2021-08-29 11:48:05 -03:00
Luna b66e5e0443 fix typo 2021-08-29 01:34:25 -03:00
Luna e55ada44a8 gateway: allow self user in ready.users 2021-08-29 01:33:11 -03:00
Luna ae5c0bd0e3 gateway: allow nullable seq but invalidate if received 2021-08-29 01:32:03 -03:00
Luna a2f892192d messages: fix ordering of "around" result 2021-08-29 01:27:06 -03:00
Luna 3ed0ff8176 fix typing on message_search internal function 2021-08-29 01:21:04 -03:00
Luna 92dba16237 add proper support for "around" parameter 2021-08-29 01:17:46 -03:00
Luna 0b20ba1283 storage: fix another code path for members 2021-08-29 00:32:56 -03:00
Luna ec5fa255c6 storage: fix _member_dict 2021-08-29 00:31:02 -03:00
Luna a0bc36d319 storage: fix nick field on member_basic 2021-08-29 00:29:12 -03:00
Luna e01a1a8cd1 storage: fix some member object code paths 2021-08-28 23:54:44 -03:00
Luna 14c1163cb5 add stubs for affinity / Tinder Score 2021-08-28 23:02:47 -03:00
Luna 61463b7642 storage: add guild_scheduled_events 2021-08-28 22:55:59 -03:00
Luna 32af0ee396 fill ready.merged_members with ready_supplemental's 2021-08-28 22:00:10 -03:00
Luna f837b588cf gateway: handle when hoisted_role isnt found 2021-08-28 20:11:23 -03:00
Luna 91cff7aa10 fix typo 2021-08-28 20:10:33 -03:00
Luna 04512db4df add friends to READY_SUPPLEMENTAL 2021-08-28 20:09:27 -03:00
Luna 777e789d77 storage: prevent members_count x members inconsistency 2021-08-28 19:57:14 -03:00
Luna 59e2f9a91a presence: fill in client_status 2021-08-28 19:56:58 -03:00
Luna b650414bb9 add READY_SUPPLEMENTAL support 2021-08-28 19:56:44 -03:00
Luna 9a09311c68 change ready.relationships structure on gateway v9 2021-08-28 18:12:33 -03:00
Luna d5348fd33b gateway: add relationships to users array 2021-08-28 18:00:08 -03:00
Luna fd2bacc301 gateway: use websocket properties version 2021-08-28 17:52:11 -03:00
Luna 3c046cb34d gateway: pass version as int to websocket properties 2021-08-28 17:52:00 -03:00
Luna 12373bd02f storage: copy user.flags into user.public_flags 2021-08-28 17:48:18 -03:00
Luna d3e14ced51 fix typo (again) 2021-08-10 23:59:42 -03:00
Luna a07b750074 fix typo 2021-08-10 23:54:42 -03:00
Luna 0b20112628 Revert "gateway.schemas: attempt to make properties a dynamic dict"
This reverts commit 7a89e69820.
2021-08-10 23:54:31 -03:00
Luna 7a89e69820 gateway.schemas: attempt to make properties a dynamic dict 2021-08-10 23:50:57 -03:00
Luna 0a1ce291a9 gateway.schemas: add bot-related properties
close #129
2021-08-10 23:46:09 -03:00
Luna c0bac8bc21 gateway.schemas: validate Intents as an int 2021-08-10 23:45:57 -03:00
Luna 04b839b969 gateway: cast reset_after_ts to positive value always
close #128
2021-08-10 23:35:38 -03:00
Luna b71950715c fix typo 2021-07-15 00:20:14 -03:00
Luna 0eb37554d3 fix typos 2021-07-14 23:44:04 -03:00
Luna d1b10e7409 fix new joins not subscribing to channels 2021-07-14 23:41:19 -03:00
Luna 9273d8cbda schemas: update invite 2021-07-14 23:41:07 -03:00
Luna 67785920bb lazy_guild: do not remove member nicks 2021-07-14 23:27:30 -03:00
Luna bf5774aa03 schemas: update guild create 2021-07-14 23:27:23 -03:00
Luna 5b0a632b9f handle optional voice regions on guild create 2021-07-14 23:27:07 -03:00
Luna 8f229bf764 pubsub: fix typo 2021-07-14 22:38:51 -03:00
Luna 36e6e078b3 guild: add secondary route for nick updating 2021-07-14 22:37:36 -03:00
Luna 55032aba1e gateway: fix guild_hashes fallback 2021-07-14 22:31:00 -03:00
Luna 2b3f1ac48c gateway: add hack for Request Guild Members 2021-07-14 22:24:28 -03:00
Luna a5c52f5a2c fix typo 2021-07-14 22:24:19 -03:00
Luna a830c9cb77 update gateway schemas 2021-07-14 22:13:09 -03:00
Luna 07edc235f5 lazy_guild: add handling for member losing permissions 2021-07-14 21:45:43 -03:00
Luna 03dd1f0406 pubsub: remove DispatcherWithFlags superclass 2021-07-14 15:53:37 -03:00
Luna 7757c837d0 pubsub: remove flags from dispatchers 2021-07-14 15:51:36 -03:00
Luna f3af9b5f11 pubsub: add intents logic for Guild Member Update 2021-07-14 15:14:51 -03:00
Luna a51840487f pubsub: add passthrough logic 2021-07-14 15:04:33 -03:00
Luna bc1c0f3b20 add intents support to channel dispatcher 2021-07-14 14:59:34 -03:00
Luna dae56a68ae move events-intents table to enums module 2021-07-14 14:59:15 -03:00
Luna c03ed978ca pubsub.guild: replace flags with intents checking 2021-07-11 01:40:05 -03:00
Luna 0119044a6c gateway: remove subscriptions with flags 2021-07-11 01:39:40 -03:00
Luna 33c7db9cbb gateway: add support for intents in identify input 2021-07-11 01:21:46 -03:00
Luna a12ef353d3 add intents to identify schema 2021-07-11 01:21:24 -03:00
Luna 566920b120 enums: make Intents an IntFlag subclass 2021-07-11 01:21:03 -03:00
Luna 49e1938ed6 enums: add Intents flags 2021-07-11 00:20:02 -03:00
Luna 2ae6d3ffd2 remove unused import 2021-07-10 23:44:37 -03:00
Luna 093f11aad9 fix bug on gdm ack leading to no events 2021-07-10 23:42:17 -03:00
Luna 6c2c6500a6 add bulk ack implementation 2021-07-10 23:41:59 -03:00
Luna 87b1257e06 move code to dedicated read_states blueprint 2021-07-10 23:28:17 -03:00
Luna ea8f629e30 webhooks: add type field
close #66
2021-07-10 18:58:11 -03:00
Luna 173a2330fe add validation for guild sync 2021-07-03 00:00:47 -03:00