Class AnnouncementsService

Hierarchy

  • AnnouncementsService

Constructors

Properties

httpRequest: BaseHttpRequest

Methods

  • Create an announcement

    Throws

    ApiError

    Parameters

    • options: {
          channelId: string;
          requestBody: {
              content: string | Record<string, any>;
              title: string;
          };
      }
      • channelId: string
      • requestBody: {
            content: string | Record<string, any>;
            title: string;
        }
        • content: string | Record<string, any>

          The content of the announcement

        • title: string

          The title of the announcement

    Returns CancelablePromise<{
        announcement: AnnouncementPayload;
    }>

    any Success

  • Update an announcement

    Throws

    ApiError

    Parameters

    • options: {
          announcementId: string;
          channelId: string;
          requestBody: {
              content?: string | Record<string, any>;
              title?: string;
          };
      }
      • announcementId: string
      • channelId: string
      • requestBody: {
            content?: string | Record<string, any>;
            title?: string;
        }
        • Optional content?: string | Record<string, any>

          The content of the announcement

        • Optional title?: string

          The title of the announcement

    Returns CancelablePromise<{
        announcement: AnnouncementPayload;
    }>

    any Success

Generated using TypeDoc