Class GroupMembership
Membership changes of a GroupUpdate.
public sealed record GroupMembership : IEquatable<GroupMembership>
- Inheritance
-
GroupMembership
- Implements
- Inherited Members
Properties
Add
The guilds added to the group.
[JsonPropertyName("add")]
[JsonConverter(typeof(SnowflakeListConverter))]
public IReadOnlyList<ulong>? Add { get; init; }
Property Value
Remarks
Adding a guild neither creates nor connects its player, the group update that follows does. The server expects real Discord snowflake ids, a non-snowflake value is rejected.
Remove
The guilds removed from the group.
[JsonPropertyName("remove")]
[JsonConverter(typeof(SnowflakeListConverter))]
public IReadOnlyList<ulong>? Remove { get; init; }
Property Value
Remarks
Removal only drops the membership, the guild's player keeps playing whatever it played. The server accepts any string here, only the add path validates snowflakes, a non-member id is a silent no-op.
Methods
Equals(GroupMembership?)
Indicates whether both memberships add and remove the same guilds.
public bool Equals(GroupMembership? other)
Parameters
otherGroupMembershipThe membership to compare with.
Returns
- bool
Whether the lists match by content.
GetHashCode()
Returns a hash of the membership's comparable members.
public override int GetHashCode()
Returns
- int
The hash code.