Class GuildUserProperties
- Namespace
- NetCord.Rest
- Assembly
- NetCord.dll
public class GuildUserProperties
- Inheritance
-
GuildUserProperties
- Inherited Members
-
Constructors
GuildUserProperties(string)
public GuildUserProperties(string accessToken)
Parameters
accessToken
string
Properties
AccessToken
[JsonPropertyName("access_token")]
public string AccessToken { get; set; }
Property Value
- string
Deafened
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("deaf")]
public bool? Deafened { get; set; }
Property Value
- bool?
Muted
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("mute")]
public bool? Muted { get; set; }
Property Value
- bool?
Nickname
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("nick")]
public string? Nickname { get; set; }
Property Value
- string
RolesIds
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("roles")]
public IEnumerable<ulong>? RolesIds { get; set; }
Property Value
- IEnumerable<ulong>
Methods
AddRolesIds(IEnumerable<ulong>)
public GuildUserProperties AddRolesIds(IEnumerable<ulong> rolesIds)
Parameters
rolesIds
IEnumerable<ulong>
Returns
- GuildUserProperties
AddRolesIds(params ulong[])
public GuildUserProperties AddRolesIds(params ulong[] rolesIds)
Parameters
rolesIds
ulong[]
Returns
- GuildUserProperties
WithAccessToken(string)
public GuildUserProperties WithAccessToken(string accessToken)
Parameters
accessToken
string
Returns
- GuildUserProperties
WithDeafened(bool?)
public GuildUserProperties WithDeafened(bool? deafened = true)
Parameters
deafened
bool?
Returns
- GuildUserProperties
WithMuted(bool?)
public GuildUserProperties WithMuted(bool? muted = true)
Parameters
muted
bool?
Returns
- GuildUserProperties
WithNickname(string?)
public GuildUserProperties WithNickname(string? nickname)
Parameters
nickname
string
Returns
- GuildUserProperties
WithRolesIds(IEnumerable<ulong>?)
public GuildUserProperties WithRolesIds(IEnumerable<ulong>? rolesIds)
Parameters
rolesIds
IEnumerable<ulong>
Returns
- GuildUserProperties