Search Results for

    Show / Hide Table of Contents

    Class DiscordModifyGuildMember

    Represents a discord Modify Guild Member API request model. Docs: https://discord.com/developers/docs/resources/guild#modify-guild-member

    Inheritance
    System.Object
    DiscordModifyGuildMember
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Color_Chan.Discord.Core.Common.API.Params.Guild
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public class DiscordModifyGuildMember

    Properties

    | Improve this Doc View Source

    ChannelId

    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

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    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

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX