From 6cd229dcef92e31b0bd18afb8e2fe131b6f2f0d7 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Sat, 1 May 2021 11:53:18 +0200 Subject: [PATCH] add: ThreadListSync --- src/types/channels/thread_list_sync.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/types/channels/thread_list_sync.ts diff --git a/src/types/channels/thread_list_sync.ts b/src/types/channels/thread_list_sync.ts new file mode 100644 index 000000000..c5fa334d4 --- /dev/null +++ b/src/types/channels/thread_list_sync.ts @@ -0,0 +1,15 @@ +import { ThreadMember } from "../messages/thread_member.ts"; +import { Channel } from "./channel.ts"; + +// TODO: add docs link +export interface ThreadListSync { + /** The id of the guild */ + guildId: string; + /** The parent channel ids whose threads are being synced. If omitted, then threads were synced for the entire guild. This array may contain channelIds that have no active threads as well, so you know to clear that data */ + channelIds?: string[]; + // TODO: check if need to omit + /** All active threads in the given channels that the current user can access */ + threads: Channel[]; + /** All thread member objects from the synced threads for the current user, indicating which threads the current user has been added to */ + members: ThreadMember[]; +}