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", name: "docs",
options: [ options: [
{ {
...new SlashCommandStringOption() ...new SlashCommandStringOption()
.setName("query") .setName("query")
.setRequired(true) .setRequired(true)
.setAutocomplete(true) .setAutocomplete(true)
.setDescription("Select query") .setDescription("Select query")
.toJSON(), .toJSON(),
run: (_: Option, context: AutocompleteContext) => { run: (_: Option, context: AutocompleteContext) => {
return context.interaction.respond([{ name: "heh", value: "heh" }]); 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 answer: frontMatter.content
}); });
} }
console.log(TAGS);