A GuildMember is a wrapper around a discord.User containing information on their guild membership.
Stores the member's nickname, list of roles, the time they joined, the time they started boosting the server, and a guild id.
The class also contains a handful of utility methods, such as permission helpers, kick/ban functions, and role utilities. See the Functions below for more info.
You can access the underlying user object via discord.GuildMember.user.
The guild id of the guild this member instance belongs to.
The date and time the member joined in ISO 8601 format (
The member's nickname, if set.
Calculated permissions for the member based on the currently assigned roles.
Note: See GuildChannel.getMemberPermissions if you need channel-specific permissions.
The date and time the member started boosting (otherwise,
null) in ISO 8601 format (
An array of role ids this user has assigned to them.
A reference to the underling discord.User object.
true if the member can perform actions that require the specified permission. Otherwise,
false is returned.
The permission to check for.
Fetches an instance of the guild this member belongs to.
Fetches an instance of the user for this guild member.
Attempts to kick the member from the guild.
If an error occurs, a discord.ApiError is thrown.
Returns a mention string in the format of
<@!id> where id is the id of this user.
Generated using TypeDoc