Commit Graph

357 Commits

Author SHA1 Message Date
Flori 2e910cf407
Update README.md 2023-05-22 22:21:27 +02:00
Flori fc57c57fb4
Merge pull request #63 from polyphony-chat/refactor/restructuring-of-tests
Refactor/restructuring of tests
2023-05-21 21:20:28 +02:00
bitfl0wer 301ac320c6
move integration test from guild to integration.rs 2023-05-21 16:02:54 +02:00
bitfl0wer 31ff7b9243
Derive Debug, add comment 2023-05-21 15:51:24 +02:00
bitfl0wer dd6cc2f45e
Register testuser on setup(), delete on teardown() 2023-05-21 15:49:52 +02:00
bitfl0wer 849acf798e
Add delete() to User 2023-05-21 15:05:02 +02:00
bitfl0wer 8cb26929ce
Create teardown() 2023-05-21 00:47:40 +02:00
Flori c63c571b9b
Merge pull request #62 from polyphony-chat/main
Merge main into refactor branch.
2023-05-20 23:31:13 +02:00
Flori e59e9808ab
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 825c822791
Fix 'already borrowed: BorrowMutError' 2023-05-20 23:21:24 +02:00
bitfl0wer 3f27df7ac4
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 b5b032c37e
Create integration.rs, is broken right now 2023-05-20 21:04:03 +02:00
bitfl0wer 556976890d
Begin working on setup fn in tests/integration.rs 2023-05-20 12:22:54 +02:00
Flori 62508ab9ec
Merge pull request #59 from polyphony-chat/feature/user-profile-customization
Feature/user profile customization
2023-05-19 17:34:24 +02:00
bitfl0wer 0c22571660
Implement modify(), untested as of now 2023-05-16 15:59:23 +02:00
bitfl0wer 8e58f7a54d
Add UserModifySchema 2023-05-16 15:59:06 +02:00
bitfl0wer d17c046480
Add PasswordRequiredError 2023-05-16 15:58:51 +02:00
bitfl0wer 44f27f7a0e
Start working on User::modify(). 2023-05-15 23:20:23 +02:00
Flori 36c9a8658e
Merge pull request #55 from polyphony-chat/feature/guild-creation-deletion
Feature/guild creation deletion
2023-05-14 22:54:53 +02:00
bitfl0wer 5e6a5e946e
remove accidental doctests 2023-05-14 22:47:34 +02:00
bitfl0wer 48cd701fbe
make fields on GuildCreateSchema pub 2023-05-14 22:45:55 +02:00
bitfl0wer 8f8bd641c4
add type guildcreateresponse 2023-05-14 22:45:42 +02:00
bitfl0wer c0602b4158
Remove unused import 2023-05-14 22:45:31 +02:00
bitfl0wer ad09bfca40
Change function signatures, add tests 2023-05-14 22:45:18 +02:00
bitfl0wer 269d73ce87
Add guild delete route 2023-05-14 14:16:21 +02:00
bitfl0wer 190def95da
Add RateLimit information 2023-05-14 13:12:02 +02:00
bitfl0wer e3c40356bc
impl ToString for LimitType 2023-05-14 13:11:50 +02:00
bitfl0wer 3de820062b
Improve error handling on request sending 2023-05-14 13:07:46 +02:00
bitfl0wer 5a41eda295
Merge branch 'feature/rest-of-discord-types' into feature/guild-creation-deletion 2023-05-14 12:55:39 +02:00
bitfl0wer 101c95d909
Remove duplicate VoiceState 2023-05-14 12:55:19 +02:00
bitfl0wer 7f459c6c4f
Merge branch 'feature/rest-of-discord-types' into feature/guild-creation-deletion 2023-05-14 12:52:25 +02:00
bitfl0wer 7c0c95690d
Add full Guild type 2023-05-14 12:40:31 +02:00
bitfl0wer 8503bdbd80
remove get() 2023-05-13 23:45:49 +02:00
bitfl0wer 0d00215ebf
start implementing get() 2023-05-13 23:15:28 +02:00
bitfl0wer a9ef578f70
Add documentation 2023-05-13 22:55:17 +02:00
bitfl0wer 8dce270343
Implement Guild::create() 2023-05-13 22:14:53 +02:00
bitfl0wer 72a4d57aff
Add GuildCreateSchema as per Spacebar Docs 2023-05-13 22:11:06 +02:00
bitfl0wer fe5beee228
Update docs, remove panic in favor of Err Result 2023-05-13 22:10:46 +02:00
bitfl0wer 81c4402f32
Remove panic on send_request error 2023-05-13 22:06:44 +02:00
kozabrada123 ae1271d828 Add Stage Instance and Voice State 2023-05-13 22:01:04 +02:00
kozabrada123 7069a9e1e6 Add integrations 2023-05-13 21:50:36 +02:00
bitfl0wer 183bd0e0d2
create src/api/guilds/guilds.rs 2023-05-13 21:42:43 +02:00
kozabrada123 9963fd8a33 Add channel and thread types, start guild 2023-05-13 21:27:44 +02:00
Flori a177ddc60b
Update README.md 2023-05-13 19:20:49 +02:00
Flori 5372c6bce5
Merge pull request #50 from kozabrada123/main
Closes #22
2023-05-13 18:06:26 +02:00
kozabrada123 be1a358bfd
Merge branch 'polyphony-chat:main' into main 2023-05-13 14:49:53 +00:00
kozabrada123 9f8ff96d1b Small changes for merging 2023-05-13 16:43:29 +02:00
bitfl0wer ce84251d31
Fix tests 2023-05-13 16:42:24 +02:00
bitfl0wer 35d081c649
update file to one that always exists, fix test 2023-05-13 16:40:34 +02:00
bitfl0wer d4568c998c
comment out view_nsfw_guilds to fix tests 2023-05-13 16:36:28 +02:00