chore: remove archive and unarchive thread

This commit is contained in:
Skillz4Killz
2021-11-24 03:15:42 +00:00
committed by GitHub
parent a33e96a2b8
commit 1099ec451e
5 changed files with 0 additions and 20 deletions

View File

@@ -589,7 +589,6 @@ export interface Helpers {
upsertSlashCommands: typeof helpers.upsertSlashCommands;
validDiscoveryTerm: typeof helpers.validDiscoveryTerm;
addToThread: typeof helpers.addToThread;
archiveThread: typeof helpers.archiveThread;
deleteThread: typeof helpers.deleteThread;
editThread: typeof helpers.editThread;
getActiveThreads: typeof helpers.getActiveThreads;
@@ -602,7 +601,6 @@ export interface Helpers {
removeThreadMember: typeof helpers.removeThreadMember;
startThreadWithoutMessage: typeof helpers.startThreadWithoutMessage;
startThreadWithMessage: typeof helpers.startThreadWithMessage;
unarchiveThread: typeof helpers.unarchiveThread;
unlockThread: typeof helpers.unlockThread;
}
@@ -760,7 +758,6 @@ export function createBaseHelpers(options: Partial<Helpers>) {
upsertSlashCommands: options.upsertSlashCommands || helpers.upsertSlashCommands,
validDiscoveryTerm: options.validDiscoveryTerm || helpers.validDiscoveryTerm,
addToThread: options.addToThread || helpers.addToThread,
archiveThread: options.archiveThread || helpers.archiveThread,
deleteThread: options.deleteThread || helpers.deleteThread,
editThread: options.editThread || helpers.editThread,
getActiveThreads: options.getActiveThreads || helpers.getActiveThreads,
@@ -773,7 +770,6 @@ export function createBaseHelpers(options: Partial<Helpers>) {
removeThreadMember: options.removeThreadMember || helpers.removeThreadMember,
startThreadWithoutMessage: options.startThreadWithoutMessage || helpers.startThreadWithoutMessage,
startThreadWithMessage: options.startThreadWithMessage || helpers.startThreadWithMessage,
unarchiveThread: options.unarchiveThread || helpers.unarchiveThread,
unlockThread: options.unlockThread || helpers.unlockThread,
};
}

View File

@@ -1,6 +0,0 @@
import type { Bot } from "../../../bot.ts";
/** Sets a thread channel to be archived. */
export async function archiveThread(bot: Bot, threadId: bigint) {
return await bot.helpers.editThread(threadId, { archived: true });
}

View File

@@ -1,5 +1,4 @@
export * from "./addToThread.ts";
export * from "./archiveThread.ts";
export * from "./deleteThread.ts";
export * from "./editThread.ts";
export * from "./getActiveThreads.ts";
@@ -11,5 +10,4 @@ export * from "./lockThread.ts";
export * from "./removeThreadMember.ts";
export * from "./startThreadWithoutMessage.ts";
export * from "./startThreadWithMessage.ts";
export * from "./unarchiveThread.ts";
export * from "./unlockThread.ts";

View File

@@ -1,6 +0,0 @@
import type { Bot } from "../../../bot.ts";
/** Sets a thread channel to be unarchived. */
export async function unarchiveThread(bot: Bot, threadId: bigint) {
return await bot.helpers.editThread(threadId, { archived: false });
}

View File

@@ -159,7 +159,6 @@ export * from "./channels/getStageInstance.ts";
export * from "./channels/deleteStageInstance.ts";
export * from "./voice/connectToVoiceChannel.ts";
export * from "./channels/threads/addToThread.ts";
export * from "./channels/threads/archiveThread.ts";
export * from "./channels/threads/deleteThread.ts";
export * from "./channels/threads/editThread.ts";
export * from "./channels/threads/getActiveThreads.ts";
@@ -172,7 +171,6 @@ export * from "./channels/threads/lockThread.ts";
export * from "./channels/threads/removeThreadMember.ts";
export * from "./channels/threads/startThreadWithMessage.ts";
export * from "./channels/threads/startThreadWithoutMessage.ts";
export * from "./channels/threads/unarchiveThread.ts";
export * from "./channels/threads/unlockThread.ts";
export * from "./channels/cloneChannel.ts";