@@ -2,13 +2,13 @@ import { config } from "@lib/config.js";
2
2
3
3
import { canUserInteractWithThread , getChannelFromInteraction , isHelpPost } from "@lib/channels.js" ;
4
4
5
- import { type ThreadChannel , type ChatInputCommandInteraction , MessageFlags , SlashCommandBuilder } from "discord.js" ;
5
+ import { type ThreadChannel , MessageFlags , SlashCommandBuilder , type ChatInputCommandInteraction } from "discord.js" ;
6
6
7
7
// TODO: find a better way to do this
8
8
const getStateWord = ( close ) => close ? "closed" : "reopened" ;
9
9
const getStateVerb = ( close ) => close ? "close" : "reopene" ;
10
10
11
- async function handleIssueState ( interaction : ChatInputCommandInteraction , close = true , lock = false ) {
11
+ export async function handleIssueState ( interaction : ChatInputCommandInteraction , close = true , lock = false ) {
12
12
const threadChannel = await getChannelFromInteraction ( interaction ) as ThreadChannel ;
13
13
14
14
const stateWord = getStateWord ( close ) ;
@@ -56,7 +56,7 @@ async function handleIssueState(interaction: ChatInputCommandInteraction, close
56
56
}
57
57
}
58
58
59
- async function handleIssueStateCommand ( interaction : ChatInputCommandInteraction , close : boolean , lock : boolean = false ) {
59
+ export async function handleIssueStateCommand ( interaction : ChatInputCommandInteraction , close : boolean , lock : boolean = false ) {
60
60
const interactionChannel = await getChannelFromInteraction ( interaction ) ;
61
61
const stateVerb = getStateVerb ( close ) ;
62
62
0 commit comments