Flori
754b604a59
Add message: get ( #405 )
...
Closes #259
2023-08-22 21:27:50 +02:00
bitfl0wer
3947b04183
Add message: get
2023-08-22 21:27:31 +02:00
Flori
b601c35e70
Get pinned, pin, unpin Message ( #404 )
...
Implements the above mentioned features, including a basic test
Closes #268 , #269 , #270
2023-08-22 20:15:30 +02:00
bitfl0wer
8cf1f84d73
Closes #269 , #268 , #270
2023-08-22 20:09:44 +02:00
Flori
ba0b143707
Bitfl0wer/issue258 ( #403 )
2023-08-22 19:32:51 +02:00
bitfl0wer
9302fbd42a
Correctify search_message
...
Fixes Search Messages #258
2023-08-22 19:23:27 +02:00
bitfl0wer
582c5347e6
Add search_messages Test
2023-08-22 19:23:05 +02:00
bitfl0wer
2fa3216c24
Add json feature to reqwest
2023-08-22 19:22:30 +02:00
bitfl0wer
ad0d4752f7
Move search_messages to Channel impl
2023-08-22 17:56:13 +02:00
bitfl0wer
a22c4c901e
Implement Default for MessageSearchQuery
2023-08-22 17:55:53 +02:00
bitfl0wer
dfde96d791
Make channel_type in ChannelCreateSchema of type enum "ChannelType"
2023-08-22 17:55:29 +02:00
bitfl0wer
19335bf83b
Add some missing derives
2023-08-22 14:01:17 +02:00
bitfl0wer
1696cc610d
Add MessageSearchEndpoint Enum and MessageSearchQuery schema struct
2023-08-22 14:01:03 +02:00
bitfl0wer
8143514b6b
Add search() and search_messages()
2023-08-22 14:00:39 +02:00
Flori
561c790eb7
Modify Guild Channel Positions ( #402 )
...
Fixes #229
2023-08-22 01:17:22 +02:00
bitfl0wer
c542714f96
Modify Guild Channel Positions
...
Fixes #229
2023-08-22 01:11:22 +02:00
Flori
93c377fc68
Bitfl0wer/issue289 ( #400 )
...
Closes #289
2023-08-20 23:30:00 +02:00
bitfl0wer
a606a31645
Fix deserialize error
2023-08-20 23:24:30 +02:00
bitfl0wer
a3d4bde360
Add modify_guild test
2023-08-20 23:24:06 +02:00
bitfl0wer
21b89107a2
Add Guild::modify();
2023-08-20 23:13:34 +02:00
bitfl0wer
79fd36abb4
Complete GuildModifySchema
2023-08-20 22:52:06 +02:00
bitfl0wer
21e396c8b6
Add GuildModifySchema
2023-08-20 22:46:58 +02:00
bitfl0wer
8b09d52ac8
Add Types
2023-08-20 22:46:44 +02:00
Flori
4e56181486
Make ban test a little more meaningful ( #399 )
...
By checking for an error on trying to ban the same person again, we can
kind of gauge if the ban functionality actually works.
2023-08-20 19:26:57 +02:00
bitfl0wer
454031310e
Make ban test a little more meaningful
2023-08-20 19:26:00 +02:00
Flori
8418897dcc
Create Guild Ban ( #398 )
...
- Closes #299
- Add derives for `GuildCreateSchema`
- Add `GuildBanCreateSchema`
- Add `Guild::create_ban`
2023-08-20 19:01:39 +02:00
bitfl0wer
70d2c3974d
Add "lazy" test for guild_create_ban
2023-08-20 18:55:47 +02:00
bitfl0wer
7b24fb5cde
Add create_ban
...
Closes "Create Guild Ban #299"
2023-08-20 18:49:10 +02:00
bitfl0wer
d27d7d9796
Create GuildBanCreateSchema, clean up GuildCreateSchema
2023-08-20 18:48:07 +02:00
Flori
509f2f6fb4
Update README.md
2023-08-20 17:28:11 +02:00
Flori
9c717c3aa6
Enhancement/updatemessage ( #190 )
...
Implements UpdateMessage for some more Gateway Events.
2023-08-20 16:10:28 +02:00
bitfl0wer
1ad8055406
Start implementing some UpdateMessages
2023-08-19 01:13:07 +02:00
bitfl0wer
d7bd96d039
Handle id().is_none() cases
2023-08-18 23:40:01 +02:00
bitfl0wer
86b1149565
Make id(&self) return Option<Snowflake>
2023-08-18 23:34:00 +02:00
bitfl0wer
1144b77fbb
Fix typo
2023-08-18 21:29:34 +02:00
bitfl0wer
4c5a2ca515
Remove prints
2023-08-18 20:20:58 +02:00
bitfl0wer
d085e763d5
Add Arc<RwLock<T>>
2023-08-18 20:20:53 +02:00
bitfl0wer
a8094da49a
Add Todo to every event which needs UpdateMessage
2023-08-18 20:20:25 +02:00
kozabrada123
c9cd936628
Minor gateway updates ( #188 )
...
* Fix TYPING_START not existing
* Fix spacebar READY deserialization error
2023-08-18 14:27:39 +02:00
Flori
c70c54065b
Add content type specification ( #187 )
...
This pr adds specifying the Content-Type header for requests with a body
Should be all requests but lmk if I missed any
2023-08-18 11:59:14 +02:00
kozabrada123
9ff3fc3efa
Add content type specification
2023-08-18 11:41:06 +02:00
Flori
d211b13166
Change type of Channel::last_pin_timestamp ( #186 )
...
Closes #160
2023-08-17 22:56:33 +02:00
bitfl0wer
0ed417dae6
Change type of Channel::last_pin_timestamp
2023-08-17 22:45:42 +02:00
Flori
7828ad2082
Change bearer_auth to header("Authorization" ( #185 )
...
Closes #181
2023-08-17 22:42:12 +02:00
bitfl0wer
9cdc807651
Change bearer_auth to header("Authorization"
2023-08-17 22:26:07 +02:00
Flori
071cee9f2a
Improved auto updating structs ( #184 )
...
This PR does the following things:
- Give `UserMeta` a `GatewayHandle`
- Change struct-fields which are supposed to be "shared" to
`Arc<RwLock<T>>`. "shared" struct-fields are things like a `Channel`
object, which may exist both on their own, and inside a `Guild`s struct
fields. Due to sharing this field, we only need to update a single
object to propagate the changes everywhere.
- Some light refactorings across the project. Example: change
`UserMeta::get()` to `UserMeta::get_user()`
- Add `Composite` trait and proc macro. `Composites` are `Updateable`
(uniquely identifiable) objects, which contain at least one other shared
(`Arc<RwLock<T>>`) field. This trait/macro provides functionality to not
only watch an object, but also all observable struct fields in that
object.
- Gets rid of tokio:⌚ :channel in favor of Arc<RwLock<T>>
To-do before merging:
- [x] Properly test `Composite` functionality to ensure it works as
intended
I'd love a second pair of eyes over this, especially in case I forgot
something major ^^'
2023-08-17 19:40:47 +02:00
bitfl0wer
f047802350
Remove comment
2023-08-17 18:26:34 +02:00
bitfl0wer
ad4404fb43
Remove prints
2023-08-17 18:26:14 +02:00
bitfl0wer
b768d0f444
Call watch_whole either way
2023-08-17 18:26:06 +02:00
bitfl0wer
027a07cd12
Update test a little
2023-08-17 18:23:57 +02:00