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:
parent
5026795551
commit
cfd620ee39
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue