Table of Contents

Class PlayerUpdateEventArgs

Namespace
Nyra.EventArgs
Assembly
Nyra.dll

The server reported the state of the player.

public sealed class PlayerUpdateEventArgs : EventArgs
Inheritance
PlayerUpdateEventArgs
Inherited Members

Properties

GuildId

The guild the player plays in.

[JsonPropertyName("guildId")]
[JsonInclude]
[JsonConverter(typeof(TolerantSnowflakeConverter))]
public ulong GuildId { get; }

Property Value

ulong

State

The state the server reported.

[JsonPropertyName("state")]
[JsonInclude]
public PlayerState State { get; }

Property Value

PlayerState

Remarks

Absorbs a null or missing state, the getter materializes a fresh instance, so handlers never read null but cannot tell a fabricated empty state from a server-reported one.