aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-05-14 21:35:59 -0700
committerZeyla Hellyer <[email protected]>2017-05-22 16:44:46 -0700
commita0a933eb324fda96aedd1dfe2fbbcb10fa5190f5 (patch)
treed18ea1a1bdab9768b13c509920416d893b0016df /src/model/channel
parentAdd `Invite::url()`, `RichInvite::url()` (diff)
downloadserenity-a0a933eb324fda96aedd1dfe2fbbcb10fa5190f5.tar.xz
serenity-a0a933eb324fda96aedd1dfe2fbbcb10fa5190f5.zip
Remove more remaining selfbot support
We removed these a long time ago, and these were missed.
Diffstat (limited to 'src/model/channel')
-rw-r--r--src/model/channel/message.rs6
-rw-r--r--src/model/channel/mod.rs18
2 files changed, 0 insertions, 24 deletions
diff --git a/src/model/channel/message.rs b/src/model/channel/message.rs
index 593aa48..91f6c89 100644
--- a/src/model/channel/message.rs
+++ b/src/model/channel/message.rs
@@ -31,12 +31,6 @@ pub struct Message {
pub edited_timestamp: Option<String>,
/// Array of embeds sent with the message.
pub embeds: Vec<Embed>,
- /// Whether the message is the "found" message in a search.
- ///
- /// Note that this is only relevant in the context of searches, and will
- /// otherwise always be `false`.
- #[serde(default)]
- pub hit: bool,
/// Indicator of the type of message this is, i.e. whether it is a regular
/// message or a system message.
#[serde(rename="type")]
diff --git a/src/model/channel/mod.rs b/src/model/channel/mod.rs
index a54acdf..33e4e9b 100644
--- a/src/model/channel/mod.rs
+++ b/src/model/channel/mod.rs
@@ -497,21 +497,3 @@ pub enum PermissionOverwriteType {
/// A role which is having its permission overwrites edited.
Role(RoleId),
}
-
-/// The results of a search, including the total results and a vector of
-/// messages.
-#[derive(Clone, Debug, Deserialize)]
-pub struct SearchResult {
- /// An amount of messages returned from the result.
- ///
- /// Note that this is a vectof of a vector of messages. Each "set" of
- /// messages contains the "found" message, as well as optional surrounding
- /// messages for context.
- #[serde(rename="messages")]
- pub results: Vec<Vec<Message>>,
- /// The number of messages directly related to the search.
- ///
- /// This does not count contextual messages.
- #[serde(rename="total_results")]
- pub total: u64,
-}