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 Attachment from "./Attachment.ts";
|
||||||
import ComponentFactory from "./components/ComponentFactory.ts";
|
import ComponentFactory from "./components/ComponentFactory.ts";
|
||||||
import MessageReaction from "./MessageReaction.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";
|
import * as Routes from "../util/Routes.ts";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -103,7 +103,7 @@ export class Message implements Model {
|
|||||||
this.embeds = data.embeds;
|
this.embeds = data.embeds;
|
||||||
|
|
||||||
if (data.thread && data.guild_id) {
|
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
|
// webhook handling
|
||||||
|
@ -9,7 +9,6 @@ import type {
|
|||||||
} from "../../vendor/external.ts";
|
} from "../../vendor/external.ts";
|
||||||
import type { ListArchivedThreads } from "../../util/Routes.ts";
|
import type { ListArchivedThreads } from "../../util/Routes.ts";
|
||||||
import BaseChannel from "./BaseChannel.ts";
|
import BaseChannel from "./BaseChannel.ts";
|
||||||
import ThreadChannel from "./ThreadChannel.ts";
|
|
||||||
import ThreadMember from "../ThreadMember.ts";
|
import ThreadMember from "../ThreadMember.ts";
|
||||||
import Invite from "../Invite.ts";
|
import Invite from "../Invite.ts";
|
||||||
import * as Routes from "../../util/Routes.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));
|
return invites.map((invite) => new Invite(this.session, invite));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
async getArchivedThreads(options: ListArchivedThreads & { type: "public" | "private" | "privateJoinedThreads" }) {
|
async getArchivedThreads(options: ListArchivedThreads & { type: "public" | "private" | "privateJoinedThreads" }) {
|
||||||
let func: (channelId: Snowflake, options: ListArchivedThreads) => string;
|
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);
|
return new ThreadChannel(this.session, thread, thread.guild_id ?? this.guildId);
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export default GuildChannel;
|
export default GuildChannel;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user