Make delete use self

This commit is contained in:
bitfl0wer 2023-05-28 23:04:13 +02:00
parent 5db5a2562f
commit 897c269e98
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
1 changed files with 2 additions and 2 deletions

View File

@ -53,14 +53,14 @@ impl Channel {
///
/// An `Option` that contains an `InstanceServerError` if an error occurred during the request, or `None` if the request was successful.
pub async fn delete(
self,
token: &str,
url_api: &str,
channel: Channel,
limits_user: &mut Limits,
limits_instance: &mut Limits,
) -> Option<InstanceServerError> {
let request = Client::new()
.delete(format!("{}/channels/{}/", url_api, channel.id.to_string()))
.delete(format!("{}/channels/{}/", url_api, self.id.to_string()))
.bearer_auth(token);
match LimitedRequester::new()
.await