import type { RestBody, RestPath, RestPayload, RestQuery, Schema } from "@guildedjs/guilded-api-typings"; import type { RestManager } from "../RestManager"; export declare class Router { readonly rest: RestManager; constructor(rest: RestManager); /** * Create a channel */ createChannel(data: RestBody["post"]>): Promise["post"], 201>>; /** * Fetch a channel */ getChannel(channelId: string): Promise["get"], 200>>; /** * Update a channel */ updateChannel(channelId: string, data: RestBody["patch"]>): Promise["patch"], 200>>; /** * Delete a channel */ deleteChannel(channelId: string): Promise["delete"], 204>>; /** * Send a message to a channel */ createChannelMessage(channelId: string, content: RestBody["post"]>): Promise["post"], 201>>; /** * Get a list of the latest 50 messages from a channel. */ getChannelMessages(channelId: string, options: RestQuery["get"]>): Promise["get"], 200>>; /** * Get details for a specific chat message from a chat channel. */ getChannelMessage(channelId: string, messageId: string): Promise["get"], 200>>; /** * Update a channel message. */ updateChannelMessage(channelId: string, messageId: string, options: RestBody["put"]>): Promise["put"], 200>>; /** * Delete a channel message. */ deleteChannelMessage(channelId: string, messageId: string): Promise["delete"], 200>>; /** * Get a single calendar event. */ getCalendarEvent(channelId: string, calendarEventId: number): Promise["get"], 200>>; /** * Get all calendar events in a specific channel. */ getCalendarEvents(channelId: string, options: RestQuery["get"]>): Promise["get"], 200>>; /** * Create a calendar event. */ createCalendarEvent(channelId: string, options: RestBody["post"]>): Promise["post"], 200>>; /** * Update an existing calendar event. */ updateCalendarEvent(channelId: string, calendarEventId: number, options: RestBody["patch"]>): Promise["patch"], 200>>; /** * Delete a calendar event. */ deleteCalendarEvent(channelId: string, calendarEventId: number): Promise["delete"], 200>>; /** * Get a single rsvp from a calendar event */ getCalendarEventRsvp(channelId: string, calendarEventId: number, userId: string): Promise["get"], 200>>; /** * Get rsvps from a calendar event */ getCalendarEventRsvps(channelId: string, calendarEventId: number): Promise["get"], 200>>; /** * Update an rsvp user from a calendar event */ updateCalendarEventRvsp(channelId: string, calendarEventId: number, userId: string, options: RestBody["put"]>): Promise["put"], 200>>; /** * Update many rsvps from a calendar event */ updateCalendarEventRsvpMany(channelId: string, calendarEventId: number, options: RestBody["put"]>): Promise["put"], 200>>; /** * Delete an rsvp user from a calendar event */ deleteCalendarEventRsvp(channelId: string, calendarEventId: number, userId: string): Promise["delete"], 204>>; /** * Get a list of the roles assigned to a member using the id of the member. */ getMemberRoles(serverId: string, userId: string): Promise["get"], 200>>; /** * Update a member's nickname. */ updateMemberNickname(serverId: string, userId: string, nickname: string): Promise["put"], 200>>; /** * Delete a member's nickname */ deleteMemberNickname(serverId: string, userId: string): Promise["delete"], 204>>; /** * Get a server */ getServer(serverId: string): Promise["get"], 200>>; /** * Create a topic in a forum */ createForumTopic(channelId: string, options: RestBody["post"]>): Promise["post"], 201>>; /** * Get all topics in a forum */ getForumTopics(channelId: string, options: RestQuery["get"]>): Promise["get"], 200>>; /** * Get a topic in a forum */ getForumTopic(channelId: string, forumThreadId: string): Promise["get"], 200>>; /** * Update a topic in a forum */ updateForumTopic(channelId: string, forumThreadId: string, options: RestBody["patch"]>): Promise["patch"], 201>>; /** * Delete a topic in a forum */ deleteForumTopic(channelId: string, forumThreadId: string): Promise["delete"], 204>>; /** * Pin a topic in a forum */ pinForumTopic(channelId: string, forumThreadId: string): Promise["put"], 204>>; /** * Unpin a topic in a forum */ unpinForumTopic(channelId: string, forumThreadId: string): Promise["delete"], 204>>; /** * Lock a topic in a forum */ lockForumTopic(channelId: string, forumThreadId: string): Promise["put"], 204>>; /** * Unlock a topic in a forum */ unlockForumTopic(channelId: string, forumThreadId: string): Promise["delete"], 204>>; /** * Create a list item. */ createListItem(channelId: string, options: RestBody["post"]>): Promise["post"], 201>>; /** * Get list items */ getListItems(channelId: string): Promise["get"], 200>>; /** * Get list item */ getListItem(channelId: string, itemId: string): Promise["get"], 200>>; /** * Update list item */ updateListItem(channelId: string, itemId: string, options: RestBody["put"]>): Promise["put"], 200>>; /** * Delete list item */ deleteListItem(channelId: string, itemId: string): Promise["delete"], 204>>; completeListItem(channelId: string, itemId: string): Promise["post"], 204>>; uncompleteListItem(channelId: string, itemId: string): Promise["delete"], 204>>; /** * Create a doc. */ createDoc(channelId: string, options: RestBody["post"]>): Promise["post"], 201>>; /** * Get the docs from a channel. */ getDocs(channelId: string): Promise["get"], 200>>; /** * Get a doc from a channel. */ getDoc(channelId: string, docId: number): Promise["get"], 200>>; /** * Update a doc */ updateDoc(channelId: string, docId: number, options: RestBody["put"]>): Promise["put"], 200>>; /** * Delete a doc from a channel. */ deleteDoc(channelId: string, docId: number): Promise["delete"], 204>>; /** * Add a reaction emote */ addReactionEmote(channelId: string, contentId: string, emoteId: number): Promise["put"], 204>>; /** * Delete a reaction emote */ deleteReactionEmote(channelId: string, contentId: string, emoteId: number): Promise["delete"], 204>>; /** * Award XP to a member */ awardMemberXP(serverId: string, userId: string, amount: number): Promise["post"], 200>>; /** * Award XP to a role */ awardRoleXP(serverId: string, roleId: string, amount: number): Promise["post"], 204>>; getMe(): Promise["get"], 200>>; /** * Retrieves a member's public social links */ getMemberSocialLinks(serverId: string, userId: string, type: Schema<"SocialLink">["type"]): Promise["get"], 200>>; getMember(serverId: string, userId: string): Promise["get"], 200>>; getMembers(serverId: string): Promise["get"], 200>>; /** * Kick a member from a server */ kickMember(serverId: string, userId: string): Promise["delete"], 204>>; /** * Ban a member from a server */ banMember(serverId: string, userId: string): Promise["post"], 200>>; /** * Retrieve a ban from a server */ getMemberBan(serverId: string, userId: string): Promise["get"], 200>>; /** * Unban a member from a server */ unbanMember(serverId: string, userId: string): Promise["delete"], 204>>; /** * Get all bans in a server */ getMemberBans(serverId: string): Promise["get"], 200>>; /** * Add member to group */ addMemberToGroup(groupId: string, userId: string): Promise["put"], 204>>; /** * Remove member from group */ removeMemberFromGroup(groupId: string, userId: string): Promise["delete"], 204>>; /** * Assign role to member */ assignRoleToMember(serverId: string, userId: string, roleId: number): Promise["put"], 204>>; /** * Remove role to member */ removeRoleFromMember(serverId: string, userId: string, roleId: number): Promise["delete"], 204>>; /** * Create a webhook */ createWebhook(serverId: string, options: RestBody["post"]>): Promise["post"], 201>>; /** * Get a server's webhooks */ getWebhooks(serverId: string, channelId?: string): Promise["get"], 200>>; /** * Get a webhook */ getWebhook(serverId: string, webhookId: string): Promise["get"], 200>>; /** * Update a webhook */ updateWebhook(serverId: string, webhookId: string, options: RestBody["put"]>): Promise["put"], 200>>; /** * Delete a webhook */ deleteWebhook(serverId: string, webhookId: string): Promise["delete"], 204>>; } //# sourceMappingURL=Router.d.ts.map