From 414cc4652d88c7656b195c7ae53a6ac408573ff8 Mon Sep 17 00:00:00 2001 From: lukasl-dev Date: Fri, 19 Aug 2022 23:30:14 +0200 Subject: [PATCH] fix(guild-actions): pass milliseconds instead of nanoseconds on play --- play_params.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/play_params.go b/play_params.go index 2c52775..c12602c 100644 --- a/play_params.go +++ b/play_params.go @@ -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 {