Search Results for

    Show / Hide Table of Contents

    Struct Overwrite

    Represent a permission object.

    Namespace: Discord
    Assembly: Discord.Net.Core.dll
    Syntax
    public struct Overwrite

    Constructors

    | Improve this Doc View Source

    Overwrite(UInt64, PermissionTarget, OverwritePermissions)

    Initializes a new Overwrite with provided target information and modified permissions.

    Declaration
    public Overwrite(ulong targetId, PermissionTarget targetType, OverwritePermissions permissions)
    Parameters
    Type Name Description
    UInt64 targetId
    PermissionTarget targetType
    OverwritePermissions permissions

    Properties

    | Improve this Doc View Source

    Permissions

    Gets the permissions associated with this overwrite entry.

    Declaration
    public readonly OverwritePermissions Permissions { get; }
    Property Value
    Type Description
    OverwritePermissions
    | Improve this Doc View Source

    TargetId

    Gets the unique identifier for the object this overwrite is targeting.

    Declaration
    public readonly ulong TargetId { get; }
    Property Value
    Type Description
    UInt64
    | Improve this Doc View Source

    TargetType

    Gets the type of object this overwrite is targeting.

    Declaration
    public readonly PermissionTarget TargetType { get; }
    Property Value
    Type Description
    PermissionTarget

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.7.2