Hierarchy

  • Channels

Constructors

Methods

  • Archive a channel.

    Parameters

    • channelID: string

      ID of the channel to archive

    Returns Promise<void>

  • Bulk create/update calendar rsvps.

    Parameters

    • channelID: string

      ID of the Calendar channel.

    • eventID: number

      ID of a calendar event.

    • memberIDs: string[]

      List of multiple member ids.

    • options: EditCalendarRSVPOptions

      Update options.

    Returns Promise<void>

  • Bulk delete every reaction from a target.

    Parameters

    • channelID: string

      ID of a channel.

    • channelType: "ChannelMessage"

      Type of channel.

    • targetID: string | number

      Target to remove reactions from it.

    • Optional filter: DELETEMessageReactionQuery

    Returns Promise<void>

  • Mark a list item as completed.

    Parameters

    • channelID: string

      ID of a "Lists" channel.

    • itemID: string

      ID of a list item.

    Returns Promise<void>

  • Create an event into a "Calendar" channel.

    Parameters

    • channelID: string

      ID of a "Calendar" channel.

    • options: CreateCalendarEventOptions

      Event options.

    • Optional createSeries: {
          endDate?: string;
          endsAfterOccurrences?: number;
          every?: {
              count: number;
              interval: "day" | "week" | "month" | "year";
          };
          on?: ("sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday")[];
          type: "once" | "everyDay" | "everyWeek" | "everyMonth" | "custom";
      }

      (optional) Create a series. (event's repetition)

      • Optional endDate?: string

        The ISO 8601 timestamp that the event ends at. Used to control the end date of the event repeat (only used when type is custom; if used with endsAfterOccurrences, the earliest resultant date of the two will be used)

      • Optional endsAfterOccurrences?: number

        Used to control the end date of the event repeat (only used when type is custom; if used with endDate, the earliest resultant date of the two will be used) (max 24)

      • Optional every?: {
            count: number;
            interval: "day" | "week" | "month" | "year";
        }

        Apply further clarification to your events. This must have type set to custom

        • count: number

          How often between your interval the event should repeat. For example, 1 would be every interval, 2 would be every second occurrence of the interval

        • interval: "day" | "week" | "month" | "year"

          Coupled with count, this indicates the time range you are repeating your event over

      • Optional on?: ("sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday")[]

        Used to control the day of the week that the event should repeat on (only used when type is custom and when every.interval is week) (min items 1)

      • type: "once" | "everyDay" | "everyWeek" | "everyMonth" | "custom"

        How often you want your event to repeat (important note: this will repeat for the next 180 days unless custom is defined) (default once)

    Returns Promise<CalendarEvent>

  • The Guilded API only allows series on the event's creation.

    Use createCalendarEvent and set the createSeries property to create a series.

    Returns Error

  • Create a new item in a list channel.

    Parameters

    • channelID: string

      ID of a "Lists" channel.

    • content: string

      String content of the new item.

    • Optional note: {
          content: string;
      }

      Add a note to the new item.

      • content: string

        The note of the list item

    Returns Promise<ListItem>

  • Add a reaction to a specified object from a channel.

    Parameters

    • channelID: string

      ID of a channel that supports reaction.

    • channelType: ChannelReactionTypes

      Type of the selected channel. (e.g: "ChannelMessage")

    • targetID: string | number

      ID of the object you'd like to add the reaction to. (e.g: a message ID)

    • reaction: number

      ID of the reaction to add.

    Returns Promise<void>

  • Add a reaction to a target from a subcategory (e.g: a comment from Forum Thread)

    Parameters

    • channelID: string

      ID of a channel that supports reaction.

    • subcategoryType: ChannelSubcategoryReactionTypes

      Type of the selected subcategory. (e.g: "CalendarEvent")

    • subcategoryID: string | number

      ID of the subcategory you selected.

    • targetID: string | number

      ID of the target you'd like to add the reaction to. (e.g: a comment id)

    • reaction: number

      ID of the reaction to add.

    Returns Promise<void>

  • Delete an announcement.

    Parameters

    • channelID: string

      ID of an Announcement channel.

    • announcementID: string

      ID of the announcement to delete.

    Returns Promise<void>

  • Delete an announcement comment.

    Parameters

    • channelID: string

      ID of an Announcement channel.

    • announcementID: string

      ID of the announcement where the comment is in.

    • commentID: number

      ID of the comment to delete.

    Returns Promise<void>

  • Delete a comment from a calendar event.

    Parameters

    • channelID: string

      ID of the channel containing the event.

    • eventID: number

      ID of the event containing the comment.

    • commentID: number

      ID of the comment to delete.

    Returns Promise<void>

  • Delete an event from a "Calendar" channel.

    Parameters

    • channelID: string

      ID of a "Calendar" channel.

    • eventID: number

      ID of a calendar event.

    Returns Promise<void>

  • Delete a CalendarEventSeries.

    Parameters

    • channelID: string

      ID of the channel.

    • eventID: number

      ID of the event.

    • seriesID: string

      ID of the series.

    Returns Promise<void>

  • Delete a RSVP from a calendar event.

    Parameters

    • channelID: string

      ID of a "Calendar" channel.

    • eventID: number

      ID of a calendar event.

    • memberID: string

      ID of a member.

    Returns Promise<void>

  • Delete a doc from a "Docs" channel.

    Parameters

    • channelID: string

      ID of a "Docs" channel.

    • docID: number

      ID of a doc.

    Returns Promise<void>

  • Delete a doc comment.

    Parameters

    • channelID: string

      ID of the docs channel.

    • docID: number

      ID of the doc.

    • commentID: number

      ID of the comment to delete.

    Returns Promise<void>

  • Delete a forum thread comment.

    Parameters

    • channelID: string

      ID of a "Forums" channel.

    • threadID: number

      ID of a forum thread.

    • commentID: number

      ID of a forum thread comment.

    Returns Promise<void>

  • Delete a forum thread from a specific forum channel

    Parameters

    • channelID: string

      ID of a "Forums" channel.

    • threadID: number

      ID of a forum thread.

    Returns Promise<void>

  • Delete an item from a list channel.

    Parameters

    • channelID: string

      ID of a "Lists" channel.

    • itemID: string

      ID of a list item.

    Returns Promise<void>

  • Delete a specific message.

    Parameters

    • channelID: string

      ID of the channel containing the message.

    • messageID: string

      ID of the message you'd like to delete.

    Returns Promise<void>

  • Remove a reaction from a specified message.

    Parameters

    • channelID: string

      ID of a channel that supports reaction.

    • channelType: ChannelReactionTypes

      Type of the selected channel. (e.g: "ChannelMessage")

    • targetID: string | number

      ID of the target you'd like to add the reaction to. (e.g: a message ID)

    • reaction: number

      ID of the reaction.

    Returns Promise<void>

  • Remove a reaction from a target from a subcategory (e.g: a comment from Forum Thread)

    Parameters

    • channelID: string

      ID of a channel that supports reaction.

    • subcategoryType: ChannelSubcategoryReactionTypes

      Type of the selected subcategory. (e.g: "CalendarEvent")

    • subcategoryID: string | number

      ID of the subcategory you selected.

    • targetID: string | number

      ID of the target you'd like to remove the reaction from. (e.g: a comment id)

    • reaction: number

      ID of the reaction to add.

    Returns Promise<void>

  • Edit a CalendarEventSeries.

    Parameters

    • channelID: string

      ID of the channel.

    • eventID: number

      ID of the event.

    • seriesID: string

      ID of the series.

    • options: undefined | {
          endDate?: string;
          endsAfterOccurrences?: number;
          every?: {
              count: number;
              interval: "day" | "week" | "month" | "year";
          };
          on?: ("sunday" | "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday")[];
          type: "once" | "everyDay" | "everyWeek" | "everyMonth" | "custom";
      }

      Edit repetition options.

    Returns Promise<void>

  • Edit a doc from a "Docs" channel.

    Parameters

    • channelID: string

      ID of a "Docs" channel.

    • docID: number

      ID of a doc.

    • options: EditDocOptions

      Edit options.

    Returns Promise<Doc>

  • Edit an item from a list channel.

    Parameters

    • channelID: string

      ID of a "Lists" channel.

    • itemID: string

      ID of a list item.

    • Optional options: {
          content?: string;
          note?: {
              content: string;
          };
      }

      Edit options.

      • Optional content?: string
      • Optional note?: {
            content: string;
        }
        • content: string

          The note of the list item

    Returns Promise<ListItem>

  • Edit a specific message coming from a specified channel.

    Type Parameters

    Parameters

    • channelID: string

      The ID of the channel.

    • messageID: string

      The ID of the message you'd like to edit.

    • newMessage: EditMessageOptions

      object containing new message's options.

    • Optional params: object

      Optional parameters.

    Returns Promise<Message<T>>

  • Get a specific announcement from a channel.

    Parameters

    • channelID: string

      ID of an Announcement channel.

    • announcementID: string

      ID of the announcement to get.

    Returns Promise<Announcement>

  • Get a specific comment from an announcement.

    Parameters

    • channelID: string

      ID of an Announcement channel.

    • announcementID: string

      ID of the announcement where the comment is in.

    • commentID: number

      ID of the comment to get.

    Returns Promise<AnnouncementComment>

  • This method is used to get a specific calendar event.

    Note: this method requires a "Calendar" channel.

    Parameters

    • channelID: string

      ID of a Calendar channel.

    • eventID: number

      ID of a Calendar event.

    Returns Promise<CalendarEvent>

  • This method is used to get a specific event comment coming from a calendar. Note: this method doesn't cache scheduled events due to the API's restrictions.

    Parameters

    • channelID: string

      ID of a "Calendar" channel.

    • eventID: number

      ID of an event containing the comment to get.

    • commentID: number

      ID of the comment to get.

    Returns Promise<CalendarEventComment>

  • This method is used to get a list of CalendarEventComment Note: due to API's restrictions, we're not able to cache scheduled events from this method.

    Parameters

    • channelID: string

      ID of a "Calendar" channel.

    • eventID: number

      ID of the event containing comments.

    Returns Promise<CalendarEventComment[]>

  • This method is used to get a specific CalendarEventRSVP.

    Note: this method requires a Calendar channel.

    Parameters

    • channelID: string

      ID of a Calendar channel

    • eventID: number

      ID of a Calendar Event

    • memberID: string

      ID of a Guild Member

    Returns Promise<CalendarEventRSVP>

  • This method is used to get a channel doc.

    Note: This method requires a "Docs" channel.

    Parameters

    • channelID: string

      ID of the Docs channel.

    • docID: number

      ID of the channel doc.

    Returns Promise<Doc>

  • Get a specific comment from a doc.

    Parameters

    • channelID: string

      ID of the channel containing the doc.

    • docID: number

      ID of the doc the comment is in.

    • commentID: number

      ID of the comment to get.

    Returns Promise<DocComment>

  • Get every comments from a doc.

    Parameters

    • channelID: string

      ID of the channel containing the doc.

    • docID: number

      ID of the doc the comment is in.

    Returns Promise<DocComment[]>

  • This method is used to get a list of "Channel" Doc.

    Parameters

    • channelID: string

      ID of a "Docs" channel.

    • Optional filter: {
          before?: string;
          limit?: number;
      }

      Object to filter the output.

      • Optional before?: string
      • Optional limit?: number

    Returns Promise<Doc[]>

  • This method is used to get a specific forum thread comment.

    Parameters

    • channelID: string

      ID of a "Forums" channel.

    • threadID: number

      ID of a Forum thread.

    • commentID: number

      ID of a Forum thread comment.

    Returns Promise<ForumThreadComment>

  • This method is used to get a specific forum thread.

    Note: This method requires a "Forum" channel.

    Parameters

    • channelID: string

      ID of a speific Forum channel.

    • threadID: number

      ID of the specific Forum Thread.

    Returns Promise<ForumThread<ForumChannel>>

  • This method is used to get a specific list item.

    Parameters

    • channelID: string

      ID of a "List" channel.

    • itemID: string

      ID of a list item.

    Returns Promise<ListItem>

  • This method is used to get a list of ListItem.

    Parameters

    • channelID: string

      ID of a "List" channel.

    Returns Promise<ListItem[]>

  • This method is used to get a channel message.

    Type Parameters

    Parameters

    • channelID: string

      The ID of the channel containing the message.

    • messageID: string

      The ID of the message to get.

    • Optional params: object

      Optional parameters.

    Returns Promise<Message<T>>

  • Lock a forum thread.

    Parameters

    • channelID: string

      ID of a "Forums" channel.

    • threadID: number

      ID of a forum thread.

    Returns Promise<void>

  • Pin a forum thread.

    Parameters

    • channelID: string

      ID of a "Forums" channel.

    • threadID: number

      ID of a forum thread.

    Returns Promise<void>

  • Pin a message.

    Parameters

    • channelID: string

      ID of the channel where the message to pin is in

    • messageID: string

      ID of the message to pin

    Returns Promise<void>

  • Restore a channel.

    Parameters

    • channelID: string

      ID of the channel to restore

    Returns Promise<void>

  • Mark a list item as uncompleted.

    Parameters

    • channelID: string

      ID of a "Lists" channel.

    • itemID: string

      ID of a list item.

    Returns Promise<void>

  • Unlock a forum thread.

    Parameters

    • channelID: string

      ID of a "Forums" channel.

    • threadID: number

      ID of a forum thread.

    Returns Promise<void>

  • Unpin a forum thread.

    Parameters

    • channelID: string

      ID of a "Forums" channel.

    • threadID: number

      ID of a forum thread.

    Returns Promise<void>

  • Unpin a message.

    Parameters

    • channelID: string

      ID of the channel where the message to unpin is in

    • messageID: string

      ID of the message to unpin

    Returns Promise<void>