i have not committed in years
diff --git a/src/commands/mod/viewas.ts b/src/commands/mod/viewas.ts
index c7bd4b1..5f7c7de 100644
--- a/src/commands/mod/viewas.ts
+++ b/src/commands/mod/viewas.ts
@@ -1,4 +1,4 @@
-import { CommandInteraction } from "discord.js";
+import { CategoryChannel, CommandInteraction } from "discord.js";
import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
import { WrappedCheck } from "jshaiku";
@@ -6,9 +6,13 @@
builder
.setName("viewas")
.setDescription("View the server as a specific member")
+ .addUserOption(option => option.setName("member").setDescription("The member to view as").setRequired(true))
const callback = (interaction: CommandInteraction) => {
- interaction.reply("Command incomplete [mod/viewas]");
+ let channels = interaction.guild.channels.cache
+ .filter(c => c.type === "GUILD_CATEGORY")
+ .map(c => (c as CategoryChannel).children.map(c => c))
+ console.log(channels)
}
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {