Skip to main content

Class: Event

Represents an event that belongs to a schedule.

Hierarchy​

Constructors​

constructor​

• new Event(data, parent): Event

Parameters​

NameTypeDescription
dataRawScheduleItemData to process.
parentScheduleParent schedule to set.

Returns​

Event

Overrides​

Base.constructor

Defined in​

structures/Event.ts:70

Properties​

country​

• country: string

The country the event takes place in.

Defined in​

structures/Event.ts:24


eventDate​

• eventDate: Date

The date of the event, which is always at midnight of the same day, in UTC.

Defined in​

structures/Event.ts:48


eventFormat​

• eventFormat: EventFormat

The format of the event.

Defined in​

structures/Event.ts:58


eventName​

• eventName: string

The name of the event, without sponsors. This is shorter than the official event name.

Defined in​

structures/Event.ts:53


location​

• location: string

The location the event takes place in. This is usually a city or an area.

Defined in​

structures/Event.ts:30


officialEventName​

• officialEventName: string

The official event name, with sponsors, etc.

Defined in​

structures/Event.ts:42


roundNumber​

• roundNumber: number

The round number of the event.

Defined in​

structures/Event.ts:18


schedule​

• schedule: Schedule

The schedule this event belongs to.

Defined in​

structures/Event.ts:36


sessions​

• sessions: Session[]

An array of sessions that take place throughout the event.

Defined in​

structures/Event.ts:64

Accessors​

isSprint​

• get isSprint(): boolean

Whether the event is a sprint weekend.

Returns​

boolean

Defined in​

structures/Event.ts:126


isTesting​

• get isTesting(): boolean

Whether the event is pre-season testing.

Returns​

boolean

Defined in​

structures/Event.ts:117

Methods​

practice​

▸ practice(practiceNumber): null | Session

Get a practice session by its number.

Parameters​

NameTypeDescription
practiceNumbernumberThe number of the practice session. (e.g. 1 for "Practice 1")

Returns​

null | Session

Defined in​

structures/Event.ts:137


session​

▸ session(sessionNumber): null | Session

Get a session by its number,

Parameters​

NameTypeDescription
sessionNumbernumberThe number of the session.

Returns​

null | Session

Defined in​

structures/Event.ts:153