Table of Contents

Class PlayerDestroyedEventArgs

Namespace
Nyra.EventArgs
Assembly
Nyra.dll

Raised when the server destroyed the player.

public sealed class PlayerDestroyedEventArgs : EventArgs
Inheritance
PlayerDestroyedEventArgs
Inherited Members

Remarks

NodeLink only, and every destroy arrives as a WebSocketClosed of code 1000 immediately before this event. Nyra drops the echo of its own teardown (the registry removal precedes the REST destroy), so a raised destroy came from a co-client on the same session, from the server itself (a kick's voice death, the session reap of a closing socket), or from a stale frame of a predecessor's teardown.

The destroy is a notification only. The connection's playback half (track, position estimate, filters) keeps its last state until the next play or a teardown resets it, and a subsequent PlayAsync re-creates the player.

Properties

GuildId

The guild the player played in.

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

Property Value

ulong