Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
update lavalink version
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Feb 12, 2022
1 parent 4ba7c7f commit 8befdad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/DisgoOrg/source-extensions-plugin
go 1.17

require (
github.com/DisgoOrg/disgolink/lavalink v1.2.2
github.com/DisgoOrg/disgolink/lavalink v1.3.0
github.com/pkg/errors v0.9.1
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/DisgoOrg/disgolink/lavalink v1.2.2 h1:MXB4rCXha5+o6dvw65peg9igp7Xlgp/KrHShwozZ514=
github.com/DisgoOrg/disgolink/lavalink v1.2.2/go.mod h1:u14urQSHp9DA41yYi3RnhGLeSw2J0WeN1za2Rr4Kekg=
github.com/DisgoOrg/disgolink/lavalink v1.3.0 h1:8mRfKftEhrNx4MgegdXBj23eTWpgRUn2GkFp/VOmst8=
github.com/DisgoOrg/disgolink/lavalink v1.3.0/go.mod h1:u14urQSHp9DA41yYi3RnhGLeSw2J0WeN1za2Rr4Kekg=
github.com/DisgoOrg/log v1.1.3 h1:UN0ZfmPZ7yhCCDQ7iVvIedvZ2zEexNS5Ek76GBuffOE=
github.com/DisgoOrg/log v1.1.3/go.mod h1:tSMofXaNhQNvzLRoL4tAiCG9yGY1ES5DLvduh7e9GRU=
github.com/DisgoOrg/snowflake v1.0.4 h1:hgeXSaXRDVdoNJ0rfHXyVsgxQMzctP346S5WXlBmoOU=
Expand Down
5 changes: 2 additions & 3 deletions isrc_source_extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package source_extensions

import (
"io"
"time"

"github.com/DisgoOrg/disgolink/lavalink"
"github.com/pkg/errors"
Expand All @@ -22,7 +21,7 @@ func (p ISRCSourceExtension) Encode(track lavalink.AudioTrack, w io.Writer) (err
return lavalink.WriteNullableString(w, isrcAudioTrack.ArtworkURL)
}

func (p ISRCSourceExtension) Decode(info lavalink.AudioTrackInfo, r io.Reader) (spotifyTrack lavalink.AudioTrack, err error) {
func (p ISRCSourceExtension) Decode(info lavalink.AudioTrackInfo, r io.Reader) (isrcTrack lavalink.AudioTrack, err error) {
var isrc, artworkURL *string

if isrc, err = lavalink.ReadNullableString(r); err != nil {
Expand Down Expand Up @@ -53,7 +52,7 @@ func (t *ISRCAudioTrack) Info() lavalink.AudioTrackInfo {
return t.AudioTrackInfo
}

func (t *ISRCAudioTrack) SetPosition(position time.Duration) {
func (t *ISRCAudioTrack) SetPosition(position lavalink.Duration) {
t.AudioTrackInfo.Position = position
}

Expand Down

0 comments on commit 8befdad

Please sign in to comment.