Interface JSONAnnouncementComment

interface JSONAnnouncementComment {
    announcementID: string;
    channelID: string;
    content: string;
    createdAt: Date;
    editedTimestamp: null | Date;
    guildID: null | string;
    id: number;
    memberID: string;
    mentions:
        | null
        | {
            channels?: { id: string }[];
            everyone?: boolean;
            here?: boolean;
            roles?: { id: number }[];
            users?: { id: string }[];
        };
}

Hierarchy (View Summary)

Properties

announcementID: string

ID of the parent announcement.

channelID: string

ID of the channel where the comment is in.

content: string

Announcement content

createdAt: Date

The date when the comment was created.

editedTimestamp: null | Date

The date when the comment was edited, if edited.

guildID: null | string

ID of the guild, if received.

id: number
memberID: string

ID of the member who sent this announcement.

mentions:
    | null
    | {
        channels?: { id: string }[];
        everyone?: boolean;
        here?: boolean;
        roles?: { id: number }[];
        users?: { id: string }[];
    }

Mentions

Type declaration

  • null
  • {
        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