Represents a calendar event on Guilded.

Example

new CalendarEvent(channel, rawEvent);

Hierarchy

  • Base<number>
    • CalendarEvent

Constructors

Properties

The cancellation of the calendar event.

channelId: string

The ID of the channel the calendar event belongs to.

client: Client
color?: number

The color of the calendar event.

createdAt: Date

The date the calendar event was created.

createdBy: string

The ID of the user that created the calendar event.

description?: string

The description of the calendar event.

duration?: number

The duration of the calendar event.

id: number
isPrivate?: boolean

Whether the calendar event is private.

location?: string

The location of the calendar event.

mentions?: APIMentions

The mentions of the calendar event.

name: string

The name of the calendar event.

rsvpLimit?: number

The limit of RSVPs of the calendar event.

A manager of RSVPs that belong to the calendar event.

serverId: string

The ID of the server the calendar event belongs to.

startsAt: Date

The date the calendar event starts.

url?: string

The url of the calendar event.

Accessors

  • get author(): undefined | ServerMember
  • The server member that created the calendar event.

    Returns undefined | ServerMember

  • get authorId(): string
  • The ID of the user that created the calendar event.

    Returns string

  • get createdTimestamp(): number
  • The timestamp the calendar event was created.

    Returns number

  • get endsAt(): Date
  • The date the calendar event ends.

    Returns Date

  • get isCached(): boolean
  • Whether the calendar event is cached.

    Returns boolean

  • get server(): undefined | Server
  • The server the calendar event belongs to.

    Returns undefined | Server

  • get startsIn(): number
  • The time until the calendar event starts.

    Returns number

Methods

  • Delete the calendar event.

    Returns

    The deleted calendar event.

    Example

    event.delete();
    

    Returns Promise<CalendarEvent>

  • Edit the calendar event.

    Returns

    The edited calendar event.

    Example

    event.edit({ name: 'New name' });
    

    Parameters

    Returns Promise<CalendarEvent>

  • Fetch the calendar event.

    Returns

    The fetched calendar event.

    Example

    event.fetch();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the calendar event with.

    Returns Promise<CalendarEvent>

  • Fetch the server member that created the calendar event.

    Returns

    The fetched server member.

    Example

    event.fetchAuthor();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the server member with.

    Returns Promise<ServerMember>

  • Fetch the server the calendar event belongs to.

    Returns

    The fetched server.

    Example

    event.fetchServer();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the server with.

    Returns Promise<Server>