fix: thread.channelId -> thread.parentId

This commit is contained in:
Skillz4Killz
2021-06-19 14:34:52 +00:00
committed by GitHub
parent 805a1aed12
commit 15801c214b
5 changed files with 8 additions and 8 deletions
@@ -7,7 +7,7 @@ import { requireBotGuildPermissions } from "../../../util/permissions.ts";
export async function deleteThread(threadId: bigint, reason?: string) {
const thread = await cacheHandlers.get("threads", threadId);
if (thread) {
const channel = await cacheHandlers.get("channels", thread?.channelId);
const channel = await cacheHandlers.get("channels", thread?.parentId);
if (channel?.guildId) await requireBotGuildPermissions(channel.guildId, ["MANAGE_THREADS"]);
}