aboutsummaryrefslogtreecommitdiff
path: root/src/model/user.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/user.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/user.rs')
-rw-r--r--src/model/user.rs35
1 files changed, 0 insertions, 35 deletions
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<U: Into<UserId>>(user_id: U) -> Result<User> {
- 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`].