Rename fetch to query, add fetch by id.
This commit is contained in:
1 parent
a1a921bbcb
commit
ba08746e92
4 files changed
+88
-65
No files matched your search
@@ -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