1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-05 19:57:02 +00:00

discord: Add User.Tag() method

This commit is contained in:
unknown 2021-05-20 23:49:56 +01:00 committed by diamondburned
parent 5026795551
commit cfd620ee39

View file

@ -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 {