Class DiscordModifyGuildMember
Represents a discord Modify Guild Member API request model. Docs: https://discord.com/developers/docs/resources/guild#modify-guild-member
Inheritance
Inherited Members
Namespace: Color_Chan.Discord.Core.Common.API.Params.Guild
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordModifyGuildMember
Properties
| Improve this Doc View SourceChannelId
Id of channel to move user to (if they are connected to voice). If the channel_id is set to null, this will force the target user to be disconnected from voice.
Declaration
[JsonPropertyName("channel_id")]
public ulong? ChannelId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Remarks
Requires MOVE_MEMBERS permission
CommunicationDisabledUntil
When the user's timeout will expire and the user will be able to communicate in the guild again (up to 28 days in the future), set to null to remove timeout.
Declaration
[JsonPropertyName("communication_disabled_until")]
public DateTimeOffset? CommunicationDisabledUntil { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTimeOffset> |
Remarks
Will throw a 403 error if the user has the ADMINISTRATOR permission or is the owner of the guild.
Requires the MODERATE_MEMBERS permission.
Deaf
Whether the user is deafened in voice channels.
Declaration
[JsonPropertyName("deaf")]
public bool Deaf { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Requires DEAFEN_MEMBERS permission
IsMuted
Whether the user is muted in voice channels.
Declaration
[JsonPropertyName("mute")]
public bool IsMuted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Requires MUTE_MEMBERS permission
Nick
Value to set users nickname to.
Declaration
[JsonPropertyName("nick")]
public string Nick { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Requires MANAGE_NICKNAMES permission
RoleIds
List of role ids the member is assigned
Declaration
[JsonPropertyName("roles")]
public IEnumerable<ulong> RoleIds { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.UInt64> |
Remarks
Requires MANAGE_ROLES permission