From ebc4e51fe3b1e5bc61dc99da25a22d2e2277ffc6 Mon Sep 17 00:00:00 2001 From: acdenisSK Date: Tue, 11 Jul 2017 22:13:57 +0200 Subject: Remove the deprecated functions It's already been enough time for people to migrate --- src/model/user.rs | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'src/model/user.rs') diff --git a/src/model/user.rs b/src/model/user.rs index 9c248ba..e447519 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -72,15 +72,6 @@ impl CurrentUser { default_avatar_url(self.discriminator) } - /// Alias of [`tag`]. - /// - /// [`tag`]: #method.tag - #[deprecated(since="0.2.0", note="Use `tag` instead.")] - #[inline] - pub fn distinct(&self) -> String { - self.tag() - } - /// Edits the current user's profile settings. /// /// This mutates the current user in-place. @@ -540,15 +531,6 @@ impl User { private_channel_id.send_message(f) } - /// Alias of [`tag`]. - /// - /// [`tag`]: #method.tag - #[deprecated(since="0.2.0", note="Use `tag` instead.")] - #[inline] - pub fn distinct(&self) -> String { - self.tag() - } - /// This is an alias of [direct_message]. /// /// # Examples @@ -586,23 +568,6 @@ impl User { self.avatar_url().unwrap_or_else(|| self.default_avatar_url()) } - /// Gets a user by its Id over the REST API. - /// - /// **Note**: The current user must be a bot user. - /// - /// # Errors - /// - /// If the `cache` is enabled, returns a - /// [`ModelError::InvalidOperationAsUser`] if the current user is not a bot - /// user. - /// - /// [`ModelError::InvalidOperationAsUser`]: enum.ModelError.html#variant.InvalidOperationAsUser - #[deprecated(since="0.2.0", note="Don't use this, since it doesn't fit serenity's design.")] - #[inline] - pub fn get>(user_id: U) -> Result { - user_id.into().get() - } - /// Check if a user has a [`Role`]. This will retrieve the [`Guild`] from /// the [`Cache`] if it is available, and then check if that guild has the /// given [`Role`]. -- cgit v1.2.3