Rename fetch to query, add fetch by id.

This commit is contained in:
Paul Makles committed 2021-01-18 20:30:55 +00:00
1 parent a1a921bbcb
commit ba08746e92
4 files changed
+88 -65

No files matched your search

+4
View File
@@ -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 {