Cast delay as an integer

`Seconds` returns a `float64`. When sending this value to the API, we get back this error `400 Bad Request: In JSON, cannot use number 89837.238815739 as integer`.

Fix is to convert the delay to integer.