hotfix: circular dependencies

This commit is contained in:
Yuzu 2022-07-05 20:47:20 -05:00
parent 91db746acb
commit ea91bd6230
2 changed files with 5 additions and 4 deletions

View File

@ -19,7 +19,7 @@ import Member from "./Member.ts";
import Attachment from "./Attachment.ts";
import ComponentFactory from "./components/ComponentFactory.ts";
import MessageReaction from "./MessageReaction.ts";
import ThreadChannel from "./channels/ThreadChannel.ts";
// import ThreadChannel from "./channels/ThreadChannel.ts";
import * as Routes from "../util/Routes.ts";
/**
@ -103,7 +103,7 @@ export class Message implements Model {
this.embeds = data.embeds;
if (data.thread && data.guild_id) {
this.thread = new ThreadChannel(session, data.thread, data.guild_id);
// this.thread = new ThreadChannel(session, data.thread, data.guild_id);
}
// webhook handling

View File

@ -9,7 +9,6 @@ import type {
} from "../../vendor/external.ts";
import type { ListArchivedThreads } from "../../util/Routes.ts";
import BaseChannel from "./BaseChannel.ts";
import ThreadChannel from "./ThreadChannel.ts";
import ThreadMember from "../ThreadMember.ts";
import Invite from "../Invite.ts";
import * as Routes from "../../util/Routes.ts";
@ -64,6 +63,7 @@ export class GuildChannel extends BaseChannel implements Model {
return invites.map((invite) => new Invite(this.session, invite));
}
/*
async getArchivedThreads(options: ListArchivedThreads & { type: "public" | "private" | "privateJoinedThreads" }) {
let func: (channelId: Snowflake, options: ListArchivedThreads) => string;
@ -110,7 +110,8 @@ export class GuildChannel extends BaseChannel implements Model {
);
return new ThreadChannel(this.session, thread, thread.guild_id ?? this.guildId);
}
}*/
}
export default GuildChannel;