diff --git a/src/helpers/channels/threads/get_archived_threads.ts b/src/helpers/channels/threads/get_archived_threads.ts index 50229b260..4a4de2927 100644 --- a/src/helpers/channels/threads/get_archived_threads.ts +++ b/src/helpers/channels/threads/get_archived_threads.ts @@ -4,7 +4,7 @@ import { endpoints } from "../../../util/constants.ts"; import { camelKeysToSnakeCase } from "../../../util/utils.ts"; export async function getArchivedThreads( - channelId: string, + channelId: bigint, options?: ListPublicArchivedThreads & { type?: "public" | "private" | "privateJoinedThreads"; }, diff --git a/src/helpers/channels/threads/get_thread_members.ts b/src/helpers/channels/threads/get_thread_members.ts index b56b0f576..34c1d0e13 100644 --- a/src/helpers/channels/threads/get_thread_members.ts +++ b/src/helpers/channels/threads/get_thread_members.ts @@ -6,7 +6,7 @@ import { endpoints } from "../../../util/constants.ts"; // TODO(threads): it seems like the documented return type is wrong /** Returns array of thread members objects that are members of the thread. */ -export async function getThreadMembers(channelId: string) { +export async function getThreadMembers(channelId: bigint) { // TODO(threads): perm check // TODO(threads): intents check const channel = await cacheHandlers.get("channels", channelId); diff --git a/src/helpers/channels/threads/remove_from_thread.ts b/src/helpers/channels/threads/remove_from_thread.ts index 7cf250275..9e967a843 100644 --- a/src/helpers/channels/threads/remove_from_thread.ts +++ b/src/helpers/channels/threads/remove_from_thread.ts @@ -5,7 +5,7 @@ import { Errors } from "../../../types/misc/errors.ts"; import { endpoints } from "../../../util/constants.ts"; /** Removes another user from a thread. Requires the MANAGE_THREADS permission or that you are the creator of the thread. Also requires the thread is not archived. Returns a 204 empty response on success. Fires a Thread Members Update Gateway event. */ -export async function removeFromThread(channelId: string, userId?: string) { +export async function removeFromThread(channelId: bigint, userId?: bigint) { // TODO(threads): perm check const channel = await cacheHandlers.get("channels", channelId); if (channel) { diff --git a/src/helpers/channels/threads/start_thread.ts b/src/helpers/channels/threads/start_thread.ts index 5fe429c22..dc4f8bbde 100644 --- a/src/helpers/channels/threads/start_thread.ts +++ b/src/helpers/channels/threads/start_thread.ts @@ -11,8 +11,8 @@ import { camelKeysToSnakeCase } from "../../../util/utils.ts"; * @param messageId when provided the thread will be public */ export async function startThread( - channelId: string, - options: StartThread & { messageId?: string }, + channelId: bigint, + options: StartThread & { messageId?: bigint }, ) { const channel = await cacheHandlers.get("channels", channelId); if (channel) {