Countdown

abstract class Countdown : PluginElement

Countdown component. Countdowns should affect whether are interactive components active. Interactive components might be Custom or Button.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val endsAt: Date

Date in the future (or in the past for when isExpired is true) that holds the information about an action that should be taken before the countdown expires.

Link copied to clipboard
abstract val isExpired: Boolean

Method that checks current time against endsAt. It can be polled periodically to check whether actions should be active.