Interface JSONAnnouncement

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

Hierarchy (View Summary)

Properties

channelID: string

ID of the channel the announcement is in

content: string

The announcement's content

createdAt: Date

The ISO 8601 timestamp that the announcement was created at

guildID: string

ID of the guild.

id: string
memberID: string

The ID of the member who created 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

title: string

The announcement's title.