GuildMember
Namespace: Discord
Inherits from
PartialGuildMemberProperties
Name
Description
Type
Nickname
The member's current nickname
string
Roles
The member's roles
IReadOnlyList<ulong>
JoinedAt
Timestamp indicating when the user joined the guild
DateTime
BoostingSince
Timestamp indicating when the user started boosting the guild
DateTime?
Methods
Update
Updates the object's information.
Modify
Modifies the member.
Parameters
Name
Description
Type
properties
The changes you want to make
GuildMemberProperties
AddRole
Adds a role to the member.
Parameters
Name
Description
Type
roleId
The role you want assigned to the member
ulong
RemoveRole
Removes a role from the member.
Parameters
Name
Description
Type
roleId
The role you want removed from the member
ulong
GetPermissions
Gets a member's permissions in the server.
Returns
DiscordPermissionKick
Kicks the member from the guild.
Ban
Bans the member from the guild.
Parameters
Name
Description
Type
reason
The reason you're banning the member
string?
deleteMessageDays
Amount of days to delete messages from the user.
uint?
Unban
Unbans the member from the guild.
AsMessagable
Converts the member to a string that can be used within messages to ping the user.
Returns
string
Last updated
Was this helpful?