Rename fetch to query, add fetch by id.

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

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 {