Commit Graph

89 Commits

Author SHA1 Message Date
Flori Weber 8b8ea03513
Cargo fix 2023-06-11 13:55:00 +02:00
Flori Weber 41135d037f
Cargo fix 2023-06-11 13:54:54 +02:00
Flori Weber f585e0ddae
Reformat entire project, optimize imports 2023-06-11 13:52:53 +02:00
Flori Weber f4e0d520b1
Reformat entire project, optimize imports 2023-06-11 13:52:31 +02:00
Flori Weber e5aff12f94
"Normalize" RolePositionUpdateSchema 2023-06-10 19:35:57 +02:00
bitfl0wer 7aa948647a
Add from_vec()
Calculates a PermissionFlags Stirng from a Vec<PermissionFlags>.
2023-06-09 21:34:54 +02:00
bitfl0wer 7a0a9baa45
Remove unused import 2023-06-09 20:49:02 +02:00
bitfl0wer 486e210062
Move role schemas to own file 2023-06-09 20:47:45 +02:00
bitfl0wer 9bf968c7e0
Change Role to have String over PermissionFlags
PermissionFlags implementation needs to be figured out a bit better before we can use it here.
2023-06-09 12:04:49 +02:00
bitfl0wer 9f21c06492
Change InstanceServerError to ChorusLibError
The name InstanceServerError was chosen without thinking about it too much, very early in development. The new name suits this custom Error type way better, in my opinion.
2023-06-08 22:16:23 +02:00
bitfl0wer bac097fb2e
Add RolePositionUpdateSchema 2023-06-08 20:45:56 +02:00
bitfl0wer 4993b7bac8
Change struct name
This schema is being used as a RoleModifySchema AND as a RoleCreationSchema.
2023-06-08 20:43:29 +02:00
bitfl0wer a1a4532b57
Add misssing attribute 2023-06-08 20:42:40 +02:00
bitfl0wer c31d2aa76d
Add RoleCreateSchema 2023-06-08 20:40:36 +02:00
bitfl0wer 429db9332b
cargo fix 2023-06-07 23:06:52 +02:00
bitfl0wer 0097809049
Remove unnecessary imports 2023-06-07 23:03:37 +02:00
bitfl0wer 97ca0c17eb
Try making permissions to PermissionFlags 2023-06-07 22:44:16 +02:00
bitfl0wer 6c0d21867c
Sort fields on Guild alphabetically 2023-06-07 22:40:48 +02:00
bitfl0wer 5b7bfa4a5d
Make enum into bitflags struct 2023-06-07 10:39:05 +02:00
bitfl0wer 7a1021031e
Fix enum, add has_permission() for RoleObject 2023-06-06 21:38:28 +02:00
bitfl0wer e2c80fc1f8
Make enum pub 2023-06-06 20:10:50 +02:00
bitfl0wer 6d2db3d808
Add PermissionFlags 2023-06-06 20:05:34 +02:00
Zertex 5a9a156846 make the tests pass 2023-05-30 10:57:34 -04:00
Zert3x 25a0544822
Merge branch 'main' into refactor/rename-apierror 2023-05-29 22:25:02 -04:00
bitfl0wer f18d3d7707
Add clone, default derives 2023-05-29 18:50:19 +02:00
bitfl0wer a7fd29c7f1
Make all attributes pub 2023-05-29 18:34:08 +02:00
bitfl0wer 0048e548f5
Add ChannelModifySchema 2023-05-29 18:27:15 +02:00
Flori 9c258067e8
Merge pull request #81 from polyphony-chat/feature/channel/delete
Feature/channel/delete
2023-05-29 17:56:13 +02:00
kozabrada123 b83dd916e8 Fix typo 2023-05-29 17:18:52 +02:00
bitfl0wer fee0aa966a
Changed some apparently incorrect attributes
Some attributes are not necessarily returned by the GET route for a guild. Also, some integers were too small. One example is max_video_channel_users, which was a u8, but could theoretically be a value much higher than u8::MAX.
2023-05-29 16:49:36 +02:00
kozabrada123 982e85af9e u16 is too small for flags apparently 2023-05-28 17:36:30 +02:00
kozabrada123 61a54678cb Members is optional 2023-05-28 17:36:12 +02:00
kozabrada123 a1a0c94e2d agjbg??! 2023-05-28 14:52:48 +02:00
kozabrada123 dfa047a9c5 71 conflicts due to fmt?!?!?!?! 2023-05-28 14:52:08 +02:00
kozabrada123 b6061b7bf5 Gateway opcode constants and small refactor 2023-05-28 14:39:41 +02:00
kozabrada123 304ff014e3 More stability 2023-05-28 08:43:22 +02:00
Zertex de10ccbed7 Hijack this to make User::flags pub 2023-05-28 02:42:35 -04:00
Zertex bab1f0ed52 Add custom implementation to allow simple-array behaviour for GuildFeatures 2023-05-28 02:42:09 -04:00
Zertex 73790fbf2a Change integer datatypes to be 'i32' as required by sqlx 2023-05-28 02:39:24 -04:00
kozabrada123 504d74a715 Stability, new event 2023-05-28 08:18:50 +02:00
Zertex c300f1918c merge main 2023-05-27 19:54:43 -04:00
bitfl0wer 77ae3f10b6
run cargo fmt && cargo fix 2023-05-28 00:50:52 +02:00
bitfl0wer 8ea0cc3f3f
Make password optional 2023-05-27 22:46:43 +02:00
bitfl0wer a7d092fc3a
Fix build 2023-05-27 20:54:43 +02:00
bitfl0wer 0504f0a9d2
Merge branch 'refactor/application-default' 2023-05-27 20:46:19 +02:00
kozabrada123 f54e750f74 Add options with empty string for identify props 2023-05-27 19:55:57 +02:00
Zertex 80e60901d8 uncomment, oops 2023-05-27 13:50:55 -04:00
Zertex 665a3b3667 rename APIError in ErrorField vec as well 2023-05-27 13:50:28 -04:00
Zertex 7189294d4b Hijack this to clean up ApplicationCommandOptionType with serde_repr 2023-05-27 13:46:37 -04:00
Zertex 250035fe9e Add custom Default impl to Application 2023-05-27 13:45:56 -04:00