Remove mod

This commit is contained in:
bitfl0wer 2023-06-01 21:14:02 +02:00
parent 73b1cd31e2
commit 4bdecb0a6c
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
1 changed files with 103 additions and 105 deletions

View File

@ -1,14 +1,13 @@
pub mod messages {
use http::header::CONTENT_DISPOSITION;
use http::HeaderMap;
use reqwest::{multipart, Client};
use serde_json::to_string;
use http::header::CONTENT_DISPOSITION;
use http::HeaderMap;
use reqwest::{multipart, Client};
use serde_json::to_string;
use crate::instance::UserMeta;
use crate::limit::LimitedRequester;
use crate::types::{Message, MessageSendSchema, PartialDiscordFileAttachment};
use crate::instance::UserMeta;
use crate::limit::LimitedRequester;
use crate::types::{Message, MessageSendSchema, PartialDiscordFileAttachment};
impl Message {
impl Message {
/**
Sends a message to the Spacebar server.
# Arguments
@ -86,9 +85,9 @@ pub mod messages {
.await
}
}
}
}
impl UserMeta {
impl UserMeta {
/// Shorthand call for Message::send()
/**
Sends a message to the Spacebar server.
@ -109,5 +108,4 @@ pub mod messages {
) -> Result<reqwest::Response, crate::errors::InstanceServerError> {
Message::send(self, channel_id, message, files).await
}
}
}