Hierarchy

Constructors

Properties

_createdAt: null | number

Timestamp (unix epoch time) of the event's creation.

_startsAt: null | number

Timestamp (unix epoch time) of the event starting time.

cancelation: undefined | null | {
    createdBy?: string;
    description?: string;
}

Details about event cancelation (if canceled)

channelID: string

ID of the channel the event was created on.

color: null | number

Event color in calendar.

Raw data

description: null | string

Event's description

duration: number

Duration in ms of the event.

guildID: string

Guild/server ID

id: string | number

Item ID

isPrivate: boolean
location: null | string

Event user-specified location

memberID: string

ID of the member that created the event.

mentions: null | APIMentions
name: string

Name of the event

rsvpLimit: null | number

Limit of event entry.

url: null | string

Event user-specified url

Accessors

Methods

  • Edit the calendar event

    Parameters

    • options: {
          color?: number;
          description?: string;
          duration?: number;
          isPrivate?: boolean;
          location?: string;
          name?: string;
          rsvpLimit?: number;
          startsAt?: string;
          url?: string;
      }
      • Optional color?: number
      • Optional description?: string
      • Optional duration?: number
      • Optional isPrivate?: boolean
      • Optional location?: string
      • Optional name?: string
      • Optional rsvpLimit?: number
      • Optional startsAt?: string
      • Optional url?: string

    Returns Promise<CalendarEvent>