Adding breadthread framing and fixing something about breadalert

This commit is contained in:
Bradley Bickford 2025-06-24 22:19:06 -04:00
parent 617a49bb16
commit 6fe761ffaf
3 changed files with 44 additions and 2 deletions

View File

@ -9,7 +9,7 @@ export const data = new SlashCommandBuilder()
subcommand subcommand
.setName("list") .setName("list")
.setDescription("List the current Bread Alert active alerts") .setDescription("List the current Bread Alert active alerts")
.addNumberOption(option => .addIntegerOption(option =>
option option
.setName("count") .setName("count")
.setDescription("The number of future alerts to return, default 5") .setDescription("The number of future alerts to return, default 5")

View File

@ -0,0 +1,40 @@
import { ChannelType, CommandInteraction, SlashCommandBuilder } from "discord.js";
export const enabled: boolean = true
export const data = new SlashCommandBuilder()
.setName("breadthread")
.setDescription("Manages Breadbot's extended thread features")
.addSubcommand(subcommand =>
subcommand
.setName("autolock")
.setDescription("Enables auto locking of a thread after a period of thread inactivity")
.addChannelOption(option =>
option
.setName("channel")
.setDescription("The name of the thread you want to autolock")
.addChannelTypes(
ChannelType.PublicThread,
ChannelType.PrivateThread,
ChannelType.AnnouncementThread
)
.setRequired(true)
)
.addBooleanOption(option =>
option
.setName("enable")
.setDescription("Enable or disable the auto locking")
.setRequired(true)
)
.addStringOption(option =>
option
.setName("timeinactive")
.setDescription("How long the thread needs to be inactive before locking, default is 3 days")
.setRequired(false)
)
)
export async function execute(interaction: CommandInteraction) {
return interaction.reply("NOT IMPLEMENTED!")
}

View File

@ -1,7 +1,9 @@
import * as ping from "./ping"; import * as ping from "./ping";
import * as breadalert from "./breadalert" import * as breadalert from "./breadalert"
import * as breadthread from "./breadthread"
export const commands = { export const commands = {
ping, ping,
breadalert breadalert,
breadthread
} }