Interface GatewayEvent_AnnouncementCreated

interface GatewayEvent_AnnouncementCreated {
    announcement: {
        channelId: string;
        content: string;
        createdAt: string;
        createdBy: string;
        groupId: string;
        id: string;
        mentions?: {
            channels?: {
                id: string;
            }[];
            everyone?: boolean;
            here?: boolean;
            roles?: {
                id: number;
            }[];
            users?: {
                id: string;
            }[];
        };
        serverId: string;
        title: string;
    };
    serverId: string;
}

Properties

announcement: {
    channelId: string;
    content: string;
    createdAt: string;
    createdBy: string;
    groupId: string;
    id: string;
    mentions?: {
        channels?: {
            id: string;
        }[];
        everyone?: boolean;
        here?: boolean;
        roles?: {
            id: number;
        }[];
        users?: {
            id: string;
        }[];
    };
    serverId: string;
    title: string;
}

Type declaration

  • channelId: string

    Channel ID Format: uuid

    The ID of the channel

  • content: string

    Content Format: long-form markdown

    The content of the announcement

  • createdAt: string

    Created at Format: date-time

    The ISO 8601 timestamp that the announcement was created at

  • createdBy: string

    Created by

    The ID of the user who created this announcement

  • groupId: string

    Group ID

    The ID of the group

  • id: string

    Announcement ID

    The ID of the announcement

  • 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

  • serverId: string

    Server ID

    The ID of the server

  • title: string

    Title

    The title of the announcement

serverId: string

The ID of the server