aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/model/user.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/model/user.rs b/src/model/user.rs
index 0cb0c3a..969b051 100644
--- a/src/model/user.rs
+++ b/src/model/user.rs
@@ -79,6 +79,11 @@ impl CurrentUser {
}
}
+ /// Returns the DiscordTag(tm) of a User.
+ pub fn distinct(&self) -> String {
+ format!("{}#{}", self.name, self.discriminator)
+ }
+
/// Gets a list of guilds that the current user is in.
pub fn guilds(&self) -> Result<Vec<GuildInfo>> {
rest::get_guilds(GuildPagination::After(GuildId(0)), 100)