refactor/declare command option types

This commit is contained in:
SowinskiBraeden committed 2023-09-10 00:41:45 -07:00
1 parent 28737c5756
commit ab2b59ff11
18 files changed
+170 -128

No files matched your search

+6 -5
View File
@@ -1,4 +1,5 @@
const { EmbedBuilder } = require("discord.js");
const CommandOptions = require('../util/CommandOptionTypes').CommandOptionTypes;
module.exports = {
name: "help",
@@ -15,12 +16,12 @@ module.exports = {
name: "commands",
description: "List all commands",
value: "commands",
type: 1,
type: CommandOptions.SubCommand,
options: [{
name: "command",
description: "Get information on a specific command",
value: "command",
type: 3,
type: CommandOptions.String,
required: false,
}]
},
@@ -28,19 +29,19 @@ module.exports = {
name: "support",
description: "Get support for Applicatz",
value: "support",
type: 1,
type: CommandOptions.SubCommand,
},
{
name: "credits",
description: "DayZR Bot Credits",
value: "credits",
type: 1,
type: CommandOptions.SubCommand,
},
{
name: "stats",
description: "Current Bot Statistics",
value: "stats",
type: 1,
type: CommandOptions.SubCommand,
}
],
SlashCommand: {