register command and dont log tags

This commit is contained in:
Jozef Steinhübl 2023-08-24 11:23:21 +02:00
parent beecd9a7a6
commit 38acccfa2b
3 changed files with 8 additions and 9 deletions

View file

@ -7,12 +7,12 @@ defineCommand({
name: "docs",
options: [
{
...new SlashCommandStringOption()
.setName("query")
.setRequired(true)
.setAutocomplete(true)
.setDescription("Select query")
.toJSON(),
...new SlashCommandStringOption()
.setName("query")
.setRequired(true)
.setAutocomplete(true)
.setDescription("Select query")
.toJSON(),
run: (_: Option, context: AutocompleteContext) => {
return context.interaction.respond([{ name: "heh", value: "heh" }]);
}

View file

@ -1 +1,2 @@
import "./version.ts"
import "./version.ts";
import "./docs.ts";

View file

@ -18,5 +18,3 @@ for (const tag of tags) {
answer: frontMatter.content
});
}
console.log(TAGS);