mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 05:26:59 +00:00
Rename fetch to query, add fetch by id.
This commit is contained in:
@@ -46,6 +46,10 @@ impl Ref {
|
||||
pub async fn fetch_channel(&self) -> Result<Channel> {
|
||||
self.fetch("channels").await
|
||||
}
|
||||
|
||||
pub async fn fetch_message(&self) -> Result<Message> {
|
||||
self.fetch("messages").await
|
||||
}
|
||||
}
|
||||
|
||||
impl User {
|
||||
|
||||
Reference in New Issue
Block a user