bitfl0wer
268da9525c
Add channel delete method
2023-05-28 22:39:25 +02:00
bitfl0wer
77ae3f10b6
run cargo fmt && cargo fix
2023-05-28 00:50:52 +02:00
bitfl0wer
503edf2fac
Move test to tests-dir
2023-05-27 22:51:43 +02:00
bitfl0wer
1e844445fc
Remove empty test
2023-05-27 22:47:46 +02:00
bitfl0wer
927109e9b6
Move tests to tests/-dir
2023-05-27 22:46:27 +02:00
bitfl0wer
c214c8bd73
Prettify imports, remove outdated types/schemas
2023-05-26 12:59:32 +02:00
bitfl0wer
47b8960d15
Run cargo fix
2023-05-26 12:53:57 +02:00
bitfl0wer
96c7c129f2
Finish refactor
2023-05-26 12:50:16 +02:00
bitfl0wer
513e2b0394
start porting over new types folder
2023-05-25 23:09:18 +02:00
bitfl0wer
d762a25953
Move Channels::get() to channels.rs
2023-05-23 16:28:25 +02:00
bitfl0wer
377e619f77
Create channels.rs
2023-05-23 16:28:09 +02:00
bitfl0wer
fc1993894d
Fix: Used wrong rout to retrieve singular channel
2023-05-23 16:25:08 +02:00
bitfl0wer
cdd0465a05
Make Channel type derive Eq, PartialEq recursively
2023-05-23 15:25:32 +02:00
bitfl0wer
cc332847fb
Revert "Add ChannelType enum"
...
This reverts commit d100308dfd
.
2023-05-23 15:17:04 +02:00
bitfl0wer
de9040de80
try flattening the enum to fix CI
2023-05-23 15:10:56 +02:00
bitfl0wer
0c22e241fa
Add todo
2023-05-23 14:51:28 +02:00
bitfl0wer
d100308dfd
Add ChannelType enum
2023-05-23 14:50:48 +02:00
bitfl0wer
71d5c229cf
Replace URL in errors with full route URL
2023-05-23 14:38:03 +02:00
bitfl0wer
8808e5554f
Implement get() for channel
2023-05-23 14:37:34 +02:00
bitfl0wer
9afce452a6
Start working on get() channel route
2023-05-23 14:31:21 +02:00
bitfl0wer
b910f44e90
Change create channel method to return Channel
...
Previously returned a Response object.
2023-05-23 13:50:39 +02:00
bitfl0wer
6af16490ab
Implement create channel methods
2023-05-23 13:06:09 +02:00
bitfl0wer
8d66e7d90d
start working on channel create
2023-05-22 23:22:34 +02:00
bitfl0wer
301ac320c6
move integration test from guild to integration.rs
2023-05-21 16:02:54 +02:00
bitfl0wer
849acf798e
Add delete() to User
2023-05-21 15:05:02 +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
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
44f27f7a0e
Start working on User::modify().
2023-05-15 23:20:23 +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
e3c40356bc
impl ToString for LimitType
2023-05-14 13:11:50 +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
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
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
kozabrada123
3cac8c18c0
Add a few more gateway events
2023-05-13 16:24:34 +02:00
kozabrada123
b8f649b04b
Add rest of send events
2023-05-13 15:59:46 +02:00
kozabrada123
0e64946428
Deserialization error..
2023-05-13 09:05:20 +02:00
kozabrada123
b6814a3b10
Merge branch 'polyphony-chat:main' into main
2023-05-13 06:11:07 +00:00
bitfl0wer
86b7ee22c8
Change visibility of attachments
2023-05-12 19:18:51 +02:00
bitfl0wer
6953dbb326
add set_id() to FileAttachment
...
This is so that the id of the Attachment to be sent can just be overwritten by the send() method.
2023-05-12 19:18:40 +02:00
bitfl0wer
7984c5d19f
Make attachment sending work!
2023-05-12 19:18:00 +02:00
kozabrada123
5ab07116ec
Merge branch 'polyphony-chat:main' into main
2023-05-12 11:41:53 +00:00
bitfl0wer
00acaf6de9
cargo fix
2023-05-12 12:35:06 +02:00
bitfl0wer
eec54b4ca9
Change send to no longer take static refs
2023-05-12 12:34:27 +02:00
bitfl0wer
06d84af2db
Mark unused var as unused
2023-05-12 12:34:00 +02:00
bitfl0wer
70d7b005d9
impl PartialDiscordFileAttachment
...
Now contains move_$ methods, which can move individual values out of the PartialDiscordFileAttachment while preserving the rest of the object.
2023-05-12 12:33:39 +02:00
bitfl0wer
7eaa8a96b7
work on implementing message attachment sending
2023-05-11 23:35:36 +02:00
kozabrada123
4008d36763
Attempted reimpl
2023-05-11 22:47:31 +02:00
bitfl0wer
4c83e190b8
change message send impl
2023-05-11 22:36:35 +02:00
bitfl0wer
d5048c2ebb
add a todo so i dont forget to not eat all ram
2023-05-11 00:07:45 +02:00
bitfl0wer
175d40209f
cool i have written a memory hog
2023-05-11 00:06:13 +02:00
bitfl0wer
f42b3785f3
Change imports
2023-05-10 18:44:17 +02:00
bitfl0wer
afb5745a74
Change register test
2023-05-10 18:44:10 +02:00
kozabrada123
9962dfdf81
Merge branch 'feature/gateway-observer' into main
2023-05-09 18:35:53 +00:00
bitfl0wer
38d9c3ad03
Change test_registration
2023-05-09 19:30:52 +02:00
bitfl0wer
8b09d16542
Make register and login return UserObject
2023-05-09 17:19:41 +02:00
bitfl0wer
478313507f
Extend UserObject to match with Spacebars' User
2023-05-09 17:19:23 +02:00
bitfl0wer
d8c8cd079b
remove println
2023-05-09 17:19:04 +02:00
bitfl0wer
0ba2f568fd
impl get_settings()
2023-05-09 14:05:36 +02:00
bitfl0wer
5971ce1dbc
Make register and login return User
2023-05-09 14:05:03 +02:00
bitfl0wer
702cafc0f5
make token pub
2023-05-09 13:10:07 +02:00
bitfl0wer
11be031e98
Remove logged_in from User
2023-05-07 12:42:52 +02:00
bitfl0wer
54944fbb0e
Run clippy
2023-05-07 12:41:14 +02:00
bitfl0wer
8f3912c277
Remove unneccessary imports
2023-05-07 12:39:56 +02:00
bitfl0wer
b2fa6db492
Remove lifetime from Instance (see below)
...
Originally, it was planned, that the Instance object would store Users. I have identified, that this was not needed, as it goes beyond the scope of a library; Users of this library are expected to keep track of users themselves. The removal of this user storage also prevented further overcomplications.
2023-05-07 12:39:04 +02:00
kozabrada123
ebab5d4433
Was still a merge conflict there
2023-05-07 12:05:58 +02:00
kozabrada123
f14b7c0e49
Fix merge conflict
2023-05-07 12:04:46 +02:00
bitfl0wer
50ecc78da0
add docs, add instance.get_user()
2023-05-07 11:54:49 +02:00
kozabrada123
d4a546efa3
Fix deserialization error
2023-05-07 11:47:12 +02:00
bitfl0wer
6b4251a3aa
Remove display impl, add default trait
2023-05-07 11:32:25 +02:00
bitfl0wer
014583216a
Impl user::get() function
2023-05-07 11:32:11 +02:00
bitfl0wer
45e8fe6953
add test fn
2023-05-07 00:18:21 +02:00
bitfl0wer
c1bcd169f1
add users to mod.rs
2023-05-07 00:18:14 +02:00
bitfl0wer
621b05570a
remove nesting layer
2023-05-07 00:18:06 +02:00
bitfl0wer
222a552017
Add users to mod.rs
2023-05-07 00:17:54 +02:00
bitfl0wer
46a5f08b33
add pronouns
2023-05-06 22:47:31 +02:00
bitfl0wer
eb131be83b
add mod.rs
2023-05-06 22:47:26 +02:00
bitfl0wer
0e5a9caa44
Implement message sending (without attachments)
2023-05-06 22:24:23 +02:00
bitfl0wer
f067826889
change visibilities
2023-05-06 22:23:48 +02:00