fix channel check

This commit is contained in:
MathMan05
2026-02-07 15:02:06 -06:00
committed by Rory&
parent a427bdaa56
commit af284c829f
+1 -1
View File
@@ -261,7 +261,7 @@ export async function getPermission(
});
const query = {
relations: ["recipients", "thread_members", "thread_members.member", ...(opts.channel_relations || [])],
select: ["id", "recipients", "permission_overwrites", "owner_id", "guild_id", ...(opts.channel_select || [])],
select: ["type", "parent_id", "id", "recipients", "permission_overwrites", "owner_id", "guild_id", ...(opts.channel_select || [])],
} as FindOneOptions<Channel>;
if (typeof channel_id === "string") {
channel = await Channel.findOneOrFail({ where: { id: channel_id }, ...query });