Interface JSONCalendarComment

interface JSONCalendarComment {
    channelID: string;
    content: string;
    createdAt: Date;
    data: {
        calendarEventId: number;
        channelId: string;
        content: string;
        createdAt: string;
        createdBy: string;
        id: number;
        mentions?: {
            channels?: {
                id: string;
            }[];
            everyone?: boolean;
            here?: boolean;
            roles?: {
                id: number;
            }[];
            users?: {
                id: string;
            }[];
        };
        updatedAt?: string;
    };
    eventID: number;
    id: number;
    memberID: string;
    updatedAt: null | Date;
}

Hierarchy (view full)

Properties

channelID: string

The ID of the channel containing this comment.

content: string

The content of the comment.

createdAt: Date

The ISO 8601 timestamp that this comment was created at.

data: {
    calendarEventId: number;
    channelId: string;
    content: string;
    createdAt: string;
    createdBy: string;
    id: number;
    mentions?: {
        channels?: {
            id: string;
        }[];
        everyone?: boolean;
        here?: boolean;
        roles?: {
            id: number;
        }[];
        users?: {
            id: string;
        }[];
    };
    updatedAt?: string;
}

Raw data

Type declaration

  • calendarEventId: number

    Calendar event ID

    The ID of the calendar event

  • channelId: string

    Channel ID Format: uuid

    The ID of the channel

  • content: string

    Content Format: long-form markdown

    The content of the calendar event comment

  • createdAt: string

    Created at Format: date-time

    The ISO 8601 timestamp that the calendar event comment was created at

  • createdBy: string

    Created by

    The ID of the user who created this calendar event comment (Note: If this event has createdByWebhookId present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)

  • id: number

    Calendar event comment ID

    The ID of the calendar event comment

  • Optionalmentions?: {
        channels?: {
            id: string;
        }[];
        everyone?: boolean;
        here?: boolean;
        roles?: {
            id: number;
        }[];
        users?: {
            id: string;
        }[];
    }
    • Optionalchannels?: {
          id: string;
      }[]

      Channels

      Info on mentioned channels

    • Optionaleveryone?: boolean

      Everyone

      If

      was mentioned

    • Optionalhere?: boolean

      Here

      If

      was mentioned

    • Optionalroles?: {
          id: number;
      }[]

      Roles

      Info on mentioned roles

    • Optionalusers?: {
          id: string;
      }[]

      Users

      Info on mentioned users

  • OptionalupdatedAt?: string

    Updated at Format: date-time

    The ISO 8601 timestamp that the calendar event comment was updated at, if relevant

eventID: number

The ID of the event containing this comment. (parent)

id: number
memberID: string

The ID of the member who sent this comment.

updatedAt: null | Date

The ISO 8601 timestamp that this comment was updated at.