Represents a calendar event RSVP on Guilded.

Example

new CalendarEventRsvp(calendarEvent, rawCalendarEventRsvp);

Hierarchy

  • Base
    • CalendarEventRsvp

Constructors

Properties

calendarEvent: CalendarEvent
calendarEventId: number

The ID of the calendar event the RSVP belongs to.

channelId: string

The ID of the channel the calendar event RSVP belongs to.

client: Client
createdAt: Date

The date the calendar event RSVP was created.

createdBy: string

The ID of the user that created the calendar event RSVP.

editedAt?: Date

The date the calendar event RSVP was edited.

editedBy?: string

The ID of the user that edited the calendar event RSVP.

id: string
serverId: string

The ID of the server the calendar event RSVP belongs to.

The status of the calendar event RSVP.

userId: string

The ID of the user the calendar event RSVP belongs to.

Accessors

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

    Returns undefined | ServerMember

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

    Returns string

  • get channel(): CalendarChannel
  • The channel the calendar event RSVP belongs to.

    Returns CalendarChannel

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

    Returns number

  • get editedTimestamp(): undefined | number
  • The timestamp the calendar event RSVP was edited.

    Returns undefined | number

  • get editor(): undefined | ServerMember
  • The server member that edited the calendar event RSVP.

    Returns undefined | ServerMember

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

    Returns boolean

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

    Returns undefined | Server

  • get user(): undefined | User
  • The user the calendar event RSVP belongs to.

    Returns undefined | User

Methods

  • Delete the calendar event RSVP.

    Returns

    The deleted calendar event RSVP.

    Example

    calendarEventRsvp.delete();
    

    Returns Promise<CalendarEventRsvp>

  • Fetch the calendar event RSVP.

    Returns

    The fetched calendar event RSVP.

    Example

    calendarEventRsvp.fetch();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the calendar event RSVP with.

    Returns Promise<CalendarEventRsvp>

  • Fetch the server member that created the calendar event RSVP.

    Returns

    The fetched server member.

    Example

    calendarEventRsvp.fetchAuthor();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the server member with.

    Returns Promise<ServerMember>

  • Fetch the server member that edited the calendar event RSVP.

    Returns

    The fetched server member.

    Example

    calendarEventRsvp.fetchEditor();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the server member with.

    Returns Promise<undefined | ServerMember>

  • Fetch the server the calendar event RSVP belongs to.

    Returns

    The fetched server.

    Example

    calendarEventRsvp.fetchServer();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the server with.

    Returns Promise<Server>

  • Fetch the user the calendar event RSVP belongs to.

    Returns

    The fetched user.

    Example

    calendarEventRsvp.fetchUser();
    

    Returns Promise<User>