Table of Contents

Struct MemberRoleEditInfo

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll

An information object representing a change in one of a guild member's roles.

public struct MemberRoleEditInfo
Inherited Members

Properties

Added

Gets a value that indicates whether the role was added to the user.

public readonly bool Added { get; }

Property Value

bool

true if the role was added to the user; otherwise false.

Name

Gets the name of the role that was changed.

public readonly string Name { get; }

Property Value

string

A string containing the name of the role that was changed.

Removed

Gets a value indicating that the user role has been removed.

public readonly bool Removed { get; }

Property Value

bool

true if the role has been removed from the user; otherwise false.

RoleId

Gets the ID of the role that was changed.

public readonly ulong RoleId { get; }

Property Value

ulong

A ulong representing the snowflake identifier of the role that was changed.