Table of Contents

Class PlayerCreatedEventArgs

Namespace
Nyra.EventArgs
Assembly
Nyra.dll

Raised when the server created the player.

public sealed class PlayerCreatedEventArgs : EventArgs
Inheritance
PlayerCreatedEventArgs
Inherited Members

Remarks

NodeLink only. The creation this connection's own join caused races the return of the connect and usually fires before any handler can subscribe, so treat the connect's completion as the creation signal.

This event only reports creations that happen on this session after a handler subscribed, such as a re-creation after a resume (the voice re-send or a later play re-creates a player lost during the outage). A creation by a co-client on another session never delivers here, the event is scoped to the creating session.

Properties

GuildId

The guild the player plays in.

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

Property Value

ulong

Player

The player the server created.

[JsonPropertyName("player")]
[JsonInclude]
public Player Player { get; }

Property Value

Player

Remarks

Absorbs a null player the server sends, the setter substitutes a fresh instance, so handlers never read null even when the frame carries one. The fallback player is hollow, GuildId reads 0 (use the args' GuildId, which the frame populated), Volume reads 0 (the server's default is 100), and every reference member is null.