mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
Update GuildChannel: method getArchivedThreads
This commit is contained in:
parent
c1ad9b160e
commit
7d92892c9f
@ -14,7 +14,8 @@ import {
|
|||||||
DiscordWebhook,
|
DiscordWebhook,
|
||||||
TargetTypes,
|
TargetTypes,
|
||||||
DiscordInviteMetadata,
|
DiscordInviteMetadata,
|
||||||
DiscordThreadMember
|
DiscordThreadMember,
|
||||||
|
DiscordListArchivedThreads
|
||||||
} from "../vendor/external.ts";
|
} from "../vendor/external.ts";
|
||||||
|
|
||||||
/** Functions and others */
|
/** Functions and others */
|
||||||
@ -334,9 +335,8 @@ 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: Routes.ListArchivedThreads & { type: "public" | "private" | "privateJoinedThreads" }) {
|
||||||
async getArchivedThreads(options: ListArchivedThreads & { type: "public" | "private" | "privateJoinedThreads" }) {
|
let func: (channelId: Snowflake, options: Routes.ListArchivedThreads) => string;
|
||||||
let func: (channelId: Snowflake, options: ListArchivedThreads) => string;
|
|
||||||
|
|
||||||
switch (options.type) {
|
switch (options.type) {
|
||||||
case "public":
|
case "public":
|
||||||
@ -381,7 +381,7 @@ 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);
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** BaseVoiceChannel */
|
/** BaseVoiceChannel */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user