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