From cfd620ee39eec3d1af6448a78055a2cc204c239a Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 20 May 2021 23:49:56 +0100 Subject: [PATCH] discord: Add User.Tag() method --- discord/user.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/discord/user.go b/discord/user.go index d0a842c..367596a 100644 --- a/discord/user.go +++ b/discord/user.go @@ -37,6 +37,11 @@ func (u User) Mention() string { return u.ID.Mention() } +// Tag returns a tag of the user. +func (u User) Tag() string { + return u.Username + "#" + u.Discriminator +} + // AvatarURL returns the URL of the Avatar Image. It automatically detects a // suitable type. func (u User) AvatarURL() string {