Class AnnouncementManager

Hierarchy (View Summary)

Constructors

Properties

cache: Collection<string, Announcement> = ...
client: Client

Methods

  • Create an announcement in a Guilded channel.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    • data: CreateAnnouncementBody

      Announcement data.

    Returns Promise<Announcement>

    The announcement.

  • Create a comment in a Guilded channel's announcement.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    • announcementId: string

      The ID of the announcement.

    • data: CreateAnnouncementBody

      Comment data.

    Returns Promise<AnnouncementComment>

    The comment.

  • Delete an announcement in a Guilded channel.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    • announcementId: string

      The ID of the announcement.

    Returns Promise<unknown>

  • Delete a comment of a Guilded channel's announcement.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    • announcementId: string

      The ID of the announcement.

    • commentId: number

      The ID of the comment.

    Returns Promise<unknown>

  • Get an announcement in a Guilded channel.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    • announcementId: string

      The ID of the announcement.

    Returns Promise<Announcement>

    The announcement.

  • Get a comment in a Guilded channel's announcement.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    • announcementId: string

      The ID of the announcement.

    • commentId: number

      The ID of the comment.

    Returns Promise<AnnouncementComment>

    The comment.

  • Update an announcement in a Guilded channel.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    • announcementId: string

      The ID of the announcement.

    • data: UpdateAnnouncementBody

      Announcement data.

    Returns Promise<Announcement>

    The announcement.

  • Update a comment in a Guilded channel's announcement.

    Parameters

    • channelId: string

      The ID of the Guilded channel.

    • announcementId: string

      The ID of the announcement.

    • commentId: number

      The ID of the comment.

    • data: UpdateAnnouncementCommentBody

      Comment data.

    Returns Promise<AnnouncementComment>

    The comment.