mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
hotfix: circular dependencies
This commit is contained in:
parent
91db746acb
commit
ea91bd6230
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user