hoshii / Exports / CalendarEvent

CalendarEvent

Represents a calendar event

Hierarchy

  • Base<number>

    CalendarEvent

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new CalendarEvent(data, client)

Create a new CalendarEvent

Parameters

NameTypeDescription
dataRawCalendarEventThe raw data of the event
clientClientThe client

Overrides

Base.constructor

Defined in

lib/structures/CalendarEvent.ts:173open in new window

Properties

cancellation

cancellation: CalendarEventCancellation

The cancellation information of the event

Defined in

lib/structures/CalendarEvent.ts:82open in new window


channelID

channelID: string

The ID of the channel the event is in

Defined in

lib/structures/CalendarEvent.ts:87open in new window


client

client: Client

The bot client

Inherited from

Base.client

Defined in

lib/structures/Base.ts:13open in new window


color

color: number

The colour of the event

Defined in

lib/structures/CalendarEvent.ts:92open in new window


createdAt

createdAt: Date

The date the event was created at

Defined in

lib/structures/CalendarEvent.ts:97open in new window


createdBy

createdBy: string

The ID of the user who created the event

Defined in

lib/structures/CalendarEvent.ts:102open in new window


data

data: RawCalendarEvent

The raw data of the event

Defined in

lib/structures/CalendarEvent.ts:107open in new window


description

description: string

The description of the event

Defined in

lib/structures/CalendarEvent.ts:112open in new window


duration

duration: number

The duration of the event in minutes

Defined in

lib/structures/CalendarEvent.ts:117open in new window


id

id: number

The ID of the item

Inherited from

Base.id

Defined in

lib/structures/Base.ts:16open in new window


isPrivate

isPrivate: boolean

Whether the event is private

Defined in

lib/structures/CalendarEvent.ts:122open in new window


location

location: string

The location of the event

Defined in

lib/structures/CalendarEvent.ts:127open in new window


mentions

mentions: Mentions

The mentions of the event

Defined in

lib/structures/CalendarEvent.ts:132open in new window


name

name: string

The name of the event

Defined in

lib/structures/CalendarEvent.ts:137open in new window


rsvpLimit

rsvpLimit: number

The RSVP limit of the event

Defined in

lib/structures/CalendarEvent.ts:142open in new window


rsvps

rsvps: TypedCollection<number, RawCalendarEventRSVP, CalendarEventRSVP, []>

A collection of cached RSVPs

Defined in

lib/structures/CalendarEvent.ts:147open in new window


serverID

serverID: string

The ID of the server the event is in

Defined in

lib/structures/CalendarEvent.ts:156open in new window


startsAt

startsAt: Date

The date the event starts at

Defined in

lib/structures/CalendarEvent.ts:161open in new window


url

url: string

The URL of the event

Defined in

lib/structures/CalendarEvent.ts:166open in new window

Accessors

owner

get owner(): User | ServerMember | Promise<ServerMember>

The owner of the event

Returns

User | ServerMember | Promise<ServerMember>

Defined in

lib/structures/CalendarEvent.ts:204open in new window

Methods

delete

delete(): Promise<void>

Delete the calendar event

Returns

Promise<void>

Defined in

lib/structures/CalendarEvent.ts:224open in new window


edit

edit(options): Promise<CalendarEvent>

Edit the calendar event

Parameters

NameTypeDescription
optionsCalendarEventOptionsThe options to edit the calendar event with

Returns

Promise<CalendarEvent>

Defined in

lib/structures/CalendarEvent.ts:233open in new window


toJSON

toJSON(): CalendarEventData

Returns the JSON representation of the item

Returns

CalendarEventData

Overrides

Base.toJSON

Defined in

lib/structures/CalendarEvent.ts:237open in new window


update

Protected update(data): void

Parameters

NameType
dataRawCalendarEvent

Returns

void

Overrides

Base.update

Defined in

lib/structures/CalendarEvent.ts:260open in new window

Last Updated:
Contributors: Reinhardt