Skip to content

helix / TimeValue

Class: TimeValue

Defined in: core/values/time.ts:12

A duration (time): a number of ticks by default, or seconds/days.

Time(20) -> "20" (ticks) Time.seconds(5) -> "5s" Time.days(1) -> "1d"

Implements

Constructors

Constructor

new TimeValue(amount, unit): TimeValue

Defined in: core/values/time.ts:13

Parameters

amount

number

unit

Unit

Returns

TimeValue

Methods

render()

render(): string

Defined in: core/values/time.ts:18

Returns

string

Implementation of

CommandValue.render

Released under the MIT License · Credits