Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for SeekAsync #167

Merged
merged 3 commits into from
Jun 21, 2024
Merged

Fix for SeekAsync #167

merged 3 commits into from
Jun 21, 2024

Conversation

thisRandomm
Copy link

In SeekAsync only the miliseconds were passed, instead of total miliseconds as it should be

upo added 2 commits June 20, 2024 23:09
In SeekAsync only the miliseconds were passed, instead of total miliseconds
@@ -11,7 +11,7 @@ namespace Victoria.Rest.Payloads;
[property: JsonPropertyName("identifier")]
string Identifier = default,
[property: JsonPropertyName("position")]
int Position = default,
double Position = default,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep it int

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cannot be int as TotalMiliseconds is Double

@@ -188,7 +188,7 @@ public static class LavaPlayerExtensions {
where TLavaPlayer : LavaPlayer<TLavaTrack> {
await lavaNode.UpdatePlayerAsync(
lavaPlayer.GuildId,
updatePayload: new UpdatePlayerPayload(Position: seekPosition.Milliseconds));
updatePayload: new UpdatePlayerPayload(Position: seekPosition.TotalMilliseconds));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cast it to int

@thisRandomm thisRandomm requested a review from Yucked June 20, 2024 22:12
@Yucked Yucked merged commit f9a3d5b into Yucked:v7 Jun 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants