aboutsummaryrefslogtreecommitdiff
path: root/src/model/guild/partial_guild.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-07-11 22:13:57 +0200
committeracdenisSK <[email protected]>2017-07-11 22:13:57 +0200
commitebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6 (patch)
tree1eeee881705d8721cdb4238461e5422043a63ca1 /src/model/guild/partial_guild.rs
parentAdd a way to add multiple fields at once (diff)
downloadserenity-ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6.tar.xz
serenity-ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6.zip
Remove the deprecated functions
It's already been enough time for people to migrate
Diffstat (limited to 'src/model/guild/partial_guild.rs')
-rw-r--r--src/model/guild/partial_guild.rs91
1 files changed, 0 insertions, 91 deletions
diff --git a/src/model/guild/partial_guild.rs b/src/model/guild/partial_guild.rs
index 694a64b..26d4257 100644
--- a/src/model/guild/partial_guild.rs
+++ b/src/model/guild/partial_guild.rs
@@ -477,95 +477,4 @@ impl PartialGuild {
pub fn webhooks(&self) -> Result<Vec<Webhook>> {
self.id.webhooks()
}
-
- /// Alias of [`bans`].
- ///
- /// [`bans`]: #method.bans
- #[deprecated(since="0.1.5", note="Use `bans` instead.")]
- #[inline]
- pub fn get_bans(&self) -> Result<Vec<Ban>> {
- self.bans()
- }
-
- /// Alias of [`channels`].
- ///
- /// [`channels`]: #method.channels
- #[deprecated(since="0.1.5", note="Use `channels` instead.")]
- #[inline]
- pub fn get_channels(&self) -> Result<HashMap<ChannelId, GuildChannel>> {
- self.channels()
- }
-
- /// Alias of [`emoji`].
- ///
- /// [`emoji`]: #method.emoji
- #[deprecated(since="0.1.5", note="Use `emoji` instead.")]
- #[inline]
- pub fn get_emoji<E: Into<EmojiId>>(&self, emoji_id: E) -> Result<Emoji> {
- self.emoji(emoji_id)
- }
-
- /// Alias of [`emojis`].
- ///
- /// [`emojis`]: #method.emojis
- #[deprecated(since="0.1.5", note="Use `emojis` instead.")]
- #[inline]
- pub fn get_emojis(&self) -> Result<Vec<Emoji>> {
- self.emojis()
- }
-
- /// Alias of [`integrations`].
- ///
- /// [`integrations`]: #method.integrations
- #[deprecated(since="0.1.5", note="Use `integrations` instead.")]
- #[inline]
- pub fn get_integrations(&self) -> Result<Vec<Integration>> {
- self.integrations()
- }
-
- /// Alias of [`invites`].
- ///
- /// [`invites`]: #method.invites
- #[deprecated(since="0.1.5", note="Use `invites` instead.")]
- #[inline]
- pub fn get_invites(&self) -> Result<Vec<RichInvite>> {
- self.invites()
- }
-
- /// Alias of [`member`].
- ///
- /// [`member`]: #method.member
- #[deprecated(since="0.1.5", note="Use `member` instead.")]
- #[inline]
- pub fn get_member<U: Into<UserId>>(&self, user_id: U) -> Result<Member> {
- self.member(user_id)
- }
-
- /// Alias of [`members`].
- ///
- /// [`members`]: #method.members
- #[deprecated(since="0.1.5", note="Use `members` instead.")]
- #[inline]
- pub fn get_members<U>(&self, limit: Option<u64>, after: Option<U>)
- -> Result<Vec<Member>> where U: Into<UserId> {
- self.members(limit, after)
- }
-
- /// Alias of [`prune_count`].
- ///
- /// [`prune_count`]: #method.prune_count
- #[deprecated(since="0.1.5", note="Use `prune_count` instead.")]
- #[inline]
- pub fn get_prune_count(&self, days: u16) -> Result<GuildPrune> {
- self.prune_count(days)
- }
-
- /// Alias of [`webhooks`].
- ///
- /// [`webhooks`]: #method.webhooks
- #[deprecated(since="0.1.5", note="Use `webhooks` instead.")]
- #[inline]
- pub fn get_webhooks(&self) -> Result<Vec<Webhook>> {
- self.webhooks()
- }
}