Skip to content

Commit

Permalink
fix(guild-actions): pass milliseconds instead of nanoseconds on play
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasl-dev committed Aug 19, 2022
1 parent e3227d2 commit 414cc46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions play_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ func (p PlayParams) startTime() string {
if p.StartTime == 0 {
return ""
}
return strconv.Itoa(int(p.StartTime))
return strconv.Itoa(int(p.StartTime.Milliseconds()))
}

func (p PlayParams) endTime() string {
if p.EndTime == 0 {
return ""
}
return strconv.Itoa(int(p.EndTime))
return strconv.Itoa(int(p.EndTime.Milliseconds()))
}

func (p PlayParams) volume() string {
Expand Down

0 comments on commit 414cc46

Please sign in to comment.