Member
You are one of the members in the server
Field
Field
Description
.Member.JoinedAt
When member joined the guild/server of type discordgo.Timestamp. Method .Parse will convert this to of type time.Time.
.Member.Nick
The nickname for this member.
.Member.Roles
A list of role IDs that the member has.
.Member.User
Underlying user on which the member is based on.
Function
Function
Description
editNickname "newNick"
Edits triggering user's nickname, argument has to be of type string. YAGPDB's highest role has to be above the highest role of the member.
getMember
Function returns Member object having above methods.
{{(getMember .User.ID).JoinedAt}}
is the same as {{.Member.JoinedAt}}
onlineCount
Returns the count of online users/members on current server.
onlineCountBots
Returns the count of online bots.
Member object in Discord documentation (read this if you want to write complex codes).
Last updated
Was this helpful?