mirror of
https://github.com/xHyroM/bun-discord-bot.git
synced 2024-11-22 14:41:05 +01:00
register command and dont log tags
This commit is contained in:
parent
beecd9a7a6
commit
38acccfa2b
3 changed files with 8 additions and 9 deletions
|
@ -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" }]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
import "./version.ts"
|
import "./version.ts";
|
||||||
|
import "./docs.ts";
|
||||||
|
|
|
@ -18,5 +18,3 @@ for (const tag of tags) {
|
||||||
answer: frontMatter.content
|
answer: frontMatter.content
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(TAGS);
|
|
||||||
|
|
Loading…
Reference in a new issue