Skip to content

Commit

Permalink
Adjusted value types
Browse files Browse the repository at this point in the history
  • Loading branch information
upo committed Jun 20, 2024
1 parent 6365d76 commit e1752f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/LavaPlayerExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public static async ValueTask SeekAsync<TLavaPlayer, TLavaTrack>(this LavaPlayer
where TLavaPlayer : LavaPlayer<TLavaTrack> {
await lavaNode.UpdatePlayerAsync(
lavaPlayer.GuildId,
updatePayload: new UpdatePlayerPayload(Position: seekPosition.TotalMilliseconds));
updatePayload: new UpdatePlayerPayload(Position: (int)seekPosition.TotalMilliseconds));
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Rest/Payloads/UpdatePlayerPayload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public readonly record struct UpdatePlayerPayload(
[property: JsonPropertyName("identifier")]
string Identifier = default,
[property: JsonPropertyName("position")]
double Position = default,
int Position = default,
[property: JsonPropertyName("endTime")]
int EndTime = default,
[property: JsonPropertyName("volume")]
Expand Down

0 comments on commit e1752f5

Please sign in to comment.