Class VolumeChangedEventArgs
Raised when the player's volume changed.
public sealed class VolumeChangedEventArgs : EventArgs
- Inheritance
-
VolumeChangedEventArgs
- Inherited Members
Remarks
NodeLink only.
Properties
GuildId
The guild the player plays in.
[JsonPropertyName("guildId")]
[JsonInclude]
[JsonConverter(typeof(TolerantSnowflakeConverter))]
public ulong GuildId { get; }
Property Value
Volume
New volume, 0-1000, where 100 is the default, as reported, the server enforces the range, the read does not clamp.
[JsonPropertyName("volume")]
[JsonInclude]
[JsonConverter(typeof(RoundedInt32Converter))]
[JsonRequired]
public int Volume { get; }
Property Value
Remarks
NodeLink accepts fractional volumes, so the value is rounded on read. A frame without the member is rejected, not read as a volume of zero.