Commit Graph

1328 Commits

Author SHA1 Message Date
Luna 3e390caffe add migration to maintain data consistency on members
the tables that should refer to members aren't doing so because
they were declared before the members table itself.

this leads to data inconsistency as members leave or get kicked
or get banned from a guild, and the relevant rows on those tables
ARE NOT removed as well.
2021-09-20 23:07:31 -03:00
NotNite 4cae4e240d
tests: clean up code reuse in invites 2021-09-20 19:58:29 -04:00
NotNite d2c0b9ac61
tests: more invite tests 2021-09-20 19:47:18 -04:00
luna 2283030fc3 Merge branch 'feature/guild-join-messages' into 'master'
Add guild join system message

Closes #95

See merge request litecord/litecord!81
2021-09-20 20:56:24 +00:00
NotNite 787d83cd80
Add guild join system message 2021-09-20 16:49:10 -04:00
NotNite e5bc3d0097
Remove outdated docs 2021-09-20 15:28:57 -04:00
luna 1ab1b1572f Merge branch 'refactor/test-resources' into 'master'
Add test resources

Closes #58 and #132

See merge request litecord/litecord!80
2021-09-17 01:02:21 +00:00
Luna 63d451f2d0 add test for webhook execution 2021-09-16 21:57:49 -03:00
Luna c79b4df252 add some int fields to WrappedGuildChannel 2021-09-16 21:57:33 -03:00
Luna 7503b60bc8 do not continuously set app blueprints 2021-09-15 23:39:13 -03:00
Luna 53c0b8578d add test for webhook creation 2021-09-15 22:57:13 -03:00
Luna 8f3fa52fa8 add test for updating messages 2021-09-14 23:49:28 -03:00
Luna c5af9cacad add test for pinned messages 2021-09-14 23:49:21 -03:00
Luna 83bf048604 pins: update system message error message 2021-09-14 23:48:58 -03:00
Luna 1b294c68a4 pins: fix unpinning the only pinned message in a channel 2021-09-14 23:48:28 -03:00
Luna 9088ac8fd3 utils: fix bug on not catching 'after' param properly 2021-09-13 23:52:38 -03:00
Luna ea06ea88e2 tests: add test for 'before' and 'after' params 2021-09-13 23:52:27 -03:00
Luna 3d79163ef9 add test for message listing in 'around' param 2021-09-13 23:34:38 -03:00
Luna 9861823434 tests: assert deleted message is actually deleted 2021-09-13 23:25:05 -03:00
Luna 8da480db88 tests: add test for bulk deletes 2021-09-13 23:24:05 -03:00
Luna 415f1fa3be tests: add test for channel delete 2021-09-13 22:54:10 -03:00
Luna 2f9fea2740 test_channels: validate new channels can be fetched on api 2021-09-13 22:20:12 -03:00
Luna 3d27a30339 tests: use test user on test_user_update 2021-09-07 00:07:36 -03:00
Luna 829767318e tests: add more fields to WrappedUser 2021-09-07 00:05:17 -03:00
Luna 866accb45f tests: add test for different member deleting own message 2021-09-06 00:14:43 -03:00
Luna e5691e1362 tests: make all parameters optional on create_user 2021-09-06 00:14:28 -03:00
Luna d7abc1e700 add test_channels 2021-09-05 23:58:24 -03:00
Luna 4fa8fd9d39 tests: add support for guild channels and messages 2021-09-05 23:58:08 -03:00
Luna 5bb9d107a6 storage: properly handle unknown channels on get_channel 2021-09-05 23:30:55 -03:00
Luna 7ac38212a3 storage: assert channel type is valid on more places 2021-09-05 23:30:41 -03:00
Luna ddf78d94e4 storage: fix typing for get_chan_type 2021-09-05 23:30:19 -03:00
Luna 7e79abf344 guilds: properly delete child channels on guild delete 2021-09-05 23:29:35 -03:00
Luna 1d36038469 checks: assert guild channel has correlated guild id 2021-09-05 23:29:19 -03:00
Luna 0a0d0603dd channels: don't ignore unknown channel types 2021-09-05 23:29:07 -03:00
Luna 9d81bef527 channels: handle when chan_type is None 2021-09-05 23:28:54 -03:00
Luna 948627efd1 tests: make test app fixture async 2021-09-05 18:29:03 -03:00
Luna de4c5a5e75 remove unused import 2021-09-05 15:56:04 -03:00
Luna 60e21a1733 tests: use test guild resource for admin api test_guilds 2021-09-05 15:55:20 -03:00
Luna 494a6b5c63 tests: add support for test guild resources 2021-09-05 15:50:27 -03:00
Luna d01fde15da storage: fix typo 2021-09-05 15:50:11 -03:00
Luna ddf27ace1a tests: add test_find_single_user with test resources 2021-09-05 14:05:11 -03:00
Luna 7b98b2332f tests: add test resource awareness 2021-09-05 14:04:59 -03:00
Luna 1fcce1ed0c gateway: don't check all the payloads 2021-09-05 00:51:52 -03:00
Luna bcb626c024 storage: add allowed_mentions to get_message 2021-09-05 00:36:37 -03:00
luna 4860ae369d Merge branch 'feature/implement-inline-replies' into 'master'
Implement inline replies

Closes #131

See merge request litecord/litecord!79
2021-09-05 03:23:00 +00:00
Evie Viau 53c49711cc Implement inline replies 2021-09-05 03:23:00 +00:00
Luna e1b9886f03 update IDENTIFY schema 2021-09-03 00:48:34 -03:00
Luna 871b9e3458 update IDENTIFY schema 2021-09-03 00:35:46 -03:00
Luna 820a81087f update UserFlags 2021-09-02 22:04:00 -03:00
Luna 1a0fe767c3 manage: add setflag and unsetflag commands 2021-09-02 21:44:34 -03:00