Commit Graph

355 Commits

Author SHA1 Message Date
bitfl0wer 5af2216882 move integration test from guild to integration.rs 2023-05-21 16:02:54 +02:00
bitfl0wer f897351994 Derive Debug, add comment 2023-05-21 15:51:24 +02:00
bitfl0wer 45bd52dc9b Register testuser on setup(), delete on teardown() 2023-05-21 15:49:52 +02:00
bitfl0wer 5e5be4a9b4 Add delete() to User 2023-05-21 15:05:02 +02:00
bitfl0wer 1b89f66d15 Create teardown() 2023-05-21 00:47:40 +02:00
Flori e55cd7176c Merge pull request #62 from polyphony-chat/main
Merge main into refactor branch.
2023-05-20 23:31:13 +02:00
Flori e4a75a2809 Merge pull request #61 from polyphony-chat/refactor/instance-user-connection
Replace &mut Instance with Rc<RefCell<Instance>>
2023-05-20 23:30:21 +02:00
bitfl0wer 8aa4dea9c4 Fix 'already borrowed: BorrowMutError' 2023-05-20 23:21:24 +02:00
bitfl0wer 8a1c1f0a41 Replace &mut Instance with Rc<RefCell<Instance>>
Replace &mut Instance with Rc<RefCell<Instance>> on the User struct to represent the 1:n relation of Instance:User
2023-05-20 23:10:25 +02:00
bitfl0wer 0847821f5e Create integration.rs, is broken right now 2023-05-20 21:04:03 +02:00
bitfl0wer 64ed7cd2aa Begin working on setup fn in tests/integration.rs 2023-05-20 12:22:54 +02:00
Flori 06362cdb6e Merge pull request #59 from polyphony-chat/feature/user-profile-customization
Feature/user profile customization
2023-05-19 17:34:24 +02:00
bitfl0wer 376ae83f58 Implement modify(), untested as of now 2023-05-16 15:59:23 +02:00
bitfl0wer 29318e9085 Add UserModifySchema 2023-05-16 15:59:06 +02:00
bitfl0wer a1397cf46f Add PasswordRequiredError 2023-05-16 15:58:51 +02:00
bitfl0wer fbd9170806 Start working on User::modify(). 2023-05-15 23:20:23 +02:00
Flori 62e46ac160 Merge pull request #55 from polyphony-chat/feature/guild-creation-deletion
Feature/guild creation deletion
2023-05-14 22:54:53 +02:00
bitfl0wer aaa16ef532 remove accidental doctests 2023-05-14 22:47:34 +02:00
bitfl0wer e552bdb352 make fields on GuildCreateSchema pub 2023-05-14 22:45:55 +02:00
bitfl0wer b4cc8fd64b add type guildcreateresponse 2023-05-14 22:45:42 +02:00
bitfl0wer fbfd0e627f Remove unused import 2023-05-14 22:45:31 +02:00
bitfl0wer 120cdfd14f Change function signatures, add tests 2023-05-14 22:45:18 +02:00
bitfl0wer 833c3733d7 Add guild delete route 2023-05-14 14:16:21 +02:00
bitfl0wer d797a10009 Add RateLimit information 2023-05-14 13:12:02 +02:00
bitfl0wer 4b4adbe1cc impl ToString for LimitType 2023-05-14 13:11:50 +02:00
bitfl0wer 598ad093a1 Improve error handling on request sending 2023-05-14 13:07:46 +02:00
bitfl0wer d5103ea03f Merge branch 'feature/rest-of-discord-types' into feature/guild-creation-deletion 2023-05-14 12:55:39 +02:00
bitfl0wer 9b1a7f9bd8 Remove duplicate VoiceState 2023-05-14 12:55:19 +02:00
bitfl0wer bb546cdc82 Merge branch 'feature/rest-of-discord-types' into feature/guild-creation-deletion 2023-05-14 12:52:25 +02:00
bitfl0wer 2072ae11a5 Add full Guild type 2023-05-14 12:40:31 +02:00
bitfl0wer 51ecf888b8 remove get() 2023-05-13 23:45:49 +02:00
bitfl0wer 3fca30db35 start implementing get() 2023-05-13 23:15:28 +02:00
bitfl0wer ea454228ac Add documentation 2023-05-13 22:55:17 +02:00
bitfl0wer 1934622e4c Implement Guild::create() 2023-05-13 22:14:53 +02:00
bitfl0wer e0a45edb3c Add GuildCreateSchema as per Spacebar Docs 2023-05-13 22:11:06 +02:00
bitfl0wer 5031db6547 Update docs, remove panic in favor of Err Result 2023-05-13 22:10:46 +02:00
bitfl0wer c436fdb857 Remove panic on send_request error 2023-05-13 22:06:44 +02:00
kozabrada123 a93962b667 Add Stage Instance and Voice State 2023-05-13 22:01:04 +02:00
kozabrada123 4e51d1251b Add integrations 2023-05-13 21:50:36 +02:00
bitfl0wer ca8f94c18e create src/api/guilds/guilds.rs 2023-05-13 21:42:43 +02:00
kozabrada123 0c3e99057f Add channel and thread types, start guild 2023-05-13 21:27:44 +02:00
Flori 3d37373f98 Update README.md 2023-05-13 19:20:49 +02:00
Flori 65a8cd7cea Merge pull request #50 from kozabrada123/main
Closes #22
2023-05-13 18:06:26 +02:00
kozabrada123 e3a5a532c3 Merge branch 'polyphony-chat:main' into main 2023-05-13 14:49:53 +00:00
kozabrada123 a3969e8cb6 Small changes for merging 2023-05-13 16:43:29 +02:00
bitfl0wer 3c6a549db7 Fix tests 2023-05-13 16:42:24 +02:00
bitfl0wer 092eed6957 update file to one that always exists, fix test 2023-05-13 16:40:34 +02:00
bitfl0wer c74e40e5f9 comment out view_nsfw_guilds to fix tests 2023-05-13 16:36:28 +02:00
kozabrada123 9a80f68787 Warnings 2023-05-13 16:35:42 +02:00
kozabrada123 4765b7a362 WebSocketConnection are no longer used 2023-05-13 16:34:05 +02:00