Class DiscordGuildMember
Represents a discord Guild Member Structure API model. Docs: https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-structure
Inheritance
Inherited Members
Namespace: Color_Chan.Discord.Rest.Models.Guild
Assembly: Color-Chan.Discord.Rest.dll
Syntax
public class DiscordGuildMember : IDiscordGuildMember, IEquatable<DiscordGuildMember>
Constructors
| Improve this Doc View SourceDiscordGuildMember(DiscordGuildMemberData)
Initializes a new DiscordGuildMember
Declaration
public DiscordGuildMember(DiscordGuildMemberData data)
Parameters
Type | Name | Description |
---|---|---|
DiscordGuildMemberData | data | The data needed to create the DiscordGuildMember. |
Properties
| Improve this Doc View SourceCommunicationDisabledUntil
When the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out.
Declaration
public DateTimeOffset? CommunicationDisabledUntil { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTimeOffset> |
Deaf
Whether the user is deafened in voice channels.
Declaration
public bool Deaf { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
JoinedAt
When the user joined the guild.
Declaration
public DateTimeOffset JoinedAt { get; set; }
Property Value
Type | Description |
---|---|
System.DateTimeOffset |
Mute
Whether the user is muted in voice channels.
Declaration
public bool Mute { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NickName
This users guild nickname.
Declaration
public string NickName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Pending
Whether the user has not yet passed the guild's Membership Screening requirements.
Declaration
public bool? Pending { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Permissions
Total permissions of the member in the channel, including overwrites, returned when in the interaction object.
Declaration
public DiscordPermission? Permissions { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DiscordPermission> |
PremiumSince
When the user started boosting the guild.
Declaration
public DateTimeOffset? PremiumSince { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTimeOffset> |
Roles
A list of role ids that are assigned the this guild member.
Declaration
public IEnumerable<ulong> Roles { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.UInt64> |
User
The user this guild member represents.
Declaration
public IDiscordUser User { get; set; }
Property Value
Type | Description |
---|---|
IDiscordUser |