📚
YAGPDB
  • YAGPDB Coding System - Documentation
  • Getting Started
  • Useful Functions
  • Primary Level
    • The Dot and Variables
      • User
      • Guild / Server
      • Member
      • Channel
      • Message
      • Reaction
      • Time
    • Custom Types
    • Functions
      • Type Conversion
      • String Manipulation
      • Math Functions
      • Message Functions
      • Mentions
      • Role Functions
      • Current User
      • Miscellaneous
      • ExecCC
    • Conditional Branching
  • Intermediate Level
  • Database
  • Range Action
  • With Action
  • Custom Embeds
  • Advanced Level
    • Using RegEx
  • Custom Commands Examples
    • Texas Hold'em
Powered by GitBook
On this page
  • Field
  • Function

Was this helpful?

  1. Primary Level
  2. The Dot and Variables

Member

You are one of the members in the server

PreviousGuild / ServerNextChannel

Last updated 5 years ago

Was this helpful?

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).