User
You are the user; the user is you
Last updated
Was this helpful?
You are the user; the user is you
Last updated
Was this helpful?
Field
Description
.User
The user's username together with discriminator.
.User.String
The user's username together with discriminator as string type.
.User.Username
The user's username.
.User.ID
The user's ID.
.User.Discriminator
The user's discriminator (The four digits after a person's username).
.User.Avatar
The user's avatar ID.
.User.AvatarURL "256"
Gives the URL for user's avatar, argument "256" is the size of the picture and can increase/decrease twofold (e.g. 512, 1024 or 128, 64 etc.).
.User.Bot
Determines whether the target user is a bot - if yes, it will return True.
.User.Mention
Mentions user.
Function
Description
userArg mention/userID
Function that can be used to retrieve.User
object from a mention or userID.
{{(userArg .User.ID).Mention}}
mentions triggering user.
pastUsernames userID offset
Returns a slice of type [ ]*logs.CCNameChange having fields .Name and .Time of previous 15 usernames and skips offset
number in that list.
{{range pastUsernames .User.ID 0}}
{{.Name}} - {{.Time.Format "Jan _2 2006"}}
{{end}}
pastNicknames userID offset
Same as pastUsernames
.