diff --git a/src/commands/admin.js b/src/commands/admin.js index 7aecee4..7f24cbf 100644 --- a/src/commands/admin.js +++ b/src/commands/admin.js @@ -19,7 +19,7 @@ module.exports = { name: "gamertag-link", description: "Link a gamertag for a user", value: "gamertag-link", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "user", description: "User to link gamertag to", @@ -38,7 +38,7 @@ module.exports = { name: "gamertag-unlink", description: "Unlink a gamertag for a user", value: "gamertag-unlink", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "user", description: "User to link gamertag to", @@ -50,7 +50,7 @@ module.exports = { name: "claim-armband", description: "Claim an armband for a faction", value: "claim-armband", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "faction_role", description: "Claim an armband for this faction role.", @@ -62,7 +62,7 @@ module.exports = { name: "bounty-clear", description: "Clear a bounty off a player", value: "bounty-clear", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "gamertag", description: "Gamertag of player", @@ -75,17 +75,17 @@ module.exports = { name: "money", description: "Add/Remove money to a user", value: "money", - type: ApplicationCommandOptionType.SubCommandGroup, + type: ApplicationCommandOptionType.SubcommandGroup, options: [{ name: "add", description: "Add money to user", value: "add", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "amount", description: "The amount to add to balance", value: "amount", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 0.01, required: true, }, { @@ -99,12 +99,12 @@ module.exports = { name: "remove", description: "Remove money from a user", value: "remove", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "amount", description: "The amount to remove from balance", value: "amount", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 0.01, required: true, }, { diff --git a/src/commands/alarm.js b/src/commands/alarm.js index db700fe..90ff882 100644 --- a/src/commands/alarm.js +++ b/src/commands/alarm.js @@ -40,13 +40,13 @@ module.exports = { name: "create", description: "Create a new Zone Ping Alarm", value: "create", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [ { name: "x-coord", description: "X Coordinate of the origin", value: "x-coord", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 0.01, required: true, }, @@ -54,7 +54,7 @@ module.exports = { name: "y-coord", description: "Y Coordinate of the origin", value: "y-coord", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 0.01, required: true, }, @@ -62,7 +62,7 @@ module.exports = { name: "radius", description: "Radius of Alarm", value: "radius", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 25.00, required: true, }, @@ -108,13 +108,13 @@ module.exports = { name: "delete", description: "Delete an Alarm", value: "delete", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "add-player", description: "Add player to be ignored list of an Alarm", value: "add-player", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "gamertag", description: "Gamertag of player to ignore", @@ -127,7 +127,7 @@ module.exports = { name: "remove-player", description: "Remove a player from the ignored list of an Alarm", value: "remove-player", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "gamertag", description: "Gamertag of player to ignore", @@ -140,19 +140,19 @@ module.exports = { name: "disable", description: "Disable an Alarm", value: "disable", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "enable", description: "Enable an Alarm", value: "enable", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "mute", description: "Mute the role ping of an Alarm", value: "mute", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "toggle", description: "Turn on/off role pings for this alarm", @@ -165,7 +165,7 @@ module.exports = { name: "set-rule", description: "Add a Rule to an Alarm", value: "set-rule", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "rule", description: "Select a rule to add to an Alarm", @@ -183,13 +183,13 @@ module.exports = { name: "remove-rule", description: "Remove a rule from an Alarm", value: "remove-rule", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "rename", description: "Rename an Alarm", value: "rename", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "name", description: "New Alarm Name", @@ -202,12 +202,12 @@ module.exports = { name: "move-origin", description: "Move the origin of an Alarm", value: "move-origin", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "x-coord", description: "X Coordinate of the new origin", value: "x-coord", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 0.01, required: true, }, @@ -215,7 +215,7 @@ module.exports = { name: "y-coord", description: "Y Coordinate of the new origin", value: "y-coord", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 0.01, required: true, }] diff --git a/src/commands/bank.js b/src/commands/bank.js index 0b74e0b..28ceec1 100644 --- a/src/commands/bank.js +++ b/src/commands/bank.js @@ -17,7 +17,7 @@ module.exports = { name: "balance", description: "View your bank balance", value: "balance", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "user", description: "User to view ballance", @@ -30,7 +30,7 @@ module.exports = { name: "transfer", description: "Transfer money to another user", value: "transfer", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [ { name: "user", @@ -43,7 +43,7 @@ module.exports = { name: "amount", description: "The amount to transfer", value: "amount", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 0.01, required: true, }, diff --git a/src/commands/bounty.js b/src/commands/bounty.js index 098fd5f..115574d 100644 --- a/src/commands/bounty.js +++ b/src/commands/bounty.js @@ -17,7 +17,7 @@ module.exports = { name: "set", description: "Set a bounty on a player", value: "set", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "gamertag", description: "Gamertag of player for bounty", @@ -28,7 +28,7 @@ module.exports = { name: "value", description: "Amount of the bounty", value: "value", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 0.01, required: true }, { @@ -42,12 +42,12 @@ module.exports = { name: "pay", description: "Pay off your bounty", value: "pay", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "view", description: "View all active bounties", value: "view", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }], SlashCommand: { /** diff --git a/src/commands/config.js b/src/commands/config.js index f9212a1..3388647 100644 --- a/src/commands/config.js +++ b/src/commands/config.js @@ -18,13 +18,13 @@ module.exports = { name: "killfeed", description: "Configure the killfeed", value: "killfeed", - type: ApplicationCommandOptionType.SubCommandGroup, + type: ApplicationCommandOptionType.SubcommandGroup, options: [ { name: "channel", description: "Configure the killfeed channel", value: "channel", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "channel", description: "The channel to configure", @@ -37,7 +37,7 @@ module.exports = { name: "show_coords", description: "Show the coordinates of the victim in the killfeed channel.", value: "show_coords", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "configuration", description: "True or False", @@ -50,7 +50,7 @@ module.exports = { name: "show_weapon", description: "Show the image of the weapon in the killfeed", value: "show_weapon", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "configuration", description: "True or False", @@ -65,13 +65,13 @@ module.exports = { name: "allowed_channels", description: "Set channels you're allowed to use the bot in", value: "allowed_channels", - type: ApplicationCommandOptionType.SubCommandGroup, + type: ApplicationCommandOptionType.SubcommandGroup, options: [ { name: "add", description: "Add channel", value: "add", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "channel", description: "The channel to configure", @@ -85,7 +85,7 @@ module.exports = { name: "remove", description: "Remove channel", value: "remove", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "channel", description: "The channel to configure", @@ -99,13 +99,13 @@ module.exports = { name: "clear", description: "Clears all configured channels", value: "clear", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "view", description: "View configured allowed channels", value: "view", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, } ] }, @@ -113,7 +113,7 @@ module.exports = { name: "set_channel", description: "Configure a channel", value: "set_channel", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [ { name: "channel_type", @@ -140,7 +140,7 @@ module.exports = { name: "linked_gt_role", description: "Role for users with linked gamertags", value: "linked_gt_role", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "role", description: "Role to configure", @@ -153,7 +153,7 @@ module.exports = { name: "member_role", description: "Role for users who join the server", value: "member_role", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "role", description: "Role to configure", @@ -166,13 +166,13 @@ module.exports = { name: "bot_admin_role", description: "Set/remove bot admin role", value: "bot_admin_role", - type: ApplicationCommandOptionType.SubCommandGroup, + type: ApplicationCommandOptionType.SubcommandGroup, options: [ { name: "add", description: "Configure role to be bot admin", value: "add", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "role", description: "Role to confiure", @@ -185,7 +185,7 @@ module.exports = { name: "remove", description: "Remove configured role as bot admin", value: "remove", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "role", description: "Role to remove", @@ -198,7 +198,7 @@ module.exports = { name: "view", description: "View the configured bot admin roles", value: "view", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, } ] }, @@ -206,7 +206,7 @@ module.exports = { name: "admin_ping_role", description: "Admin role to ping in admin logs channel", value: "admin_ping_role", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "role", description: "Role to configure", @@ -219,13 +219,13 @@ module.exports = { name: "exclude", description: "Exclude roles that can be used to claim armbands", value: "exclude", - type: ApplicationCommandOptionType.SubCommandGroup, + type: ApplicationCommandOptionType.SubcommandGroup, options: [ { name: "add", description: "Configure role to be excluded", value: "add", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "role", description: "Role to confiure", @@ -238,7 +238,7 @@ module.exports = { name: "remove", description: "Remove configured role thats excluded", value: "remove", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "role", description: "Role to remove", @@ -251,7 +251,7 @@ module.exports = { name: "view", description: "View the configured excluded roles", value: "view", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, ] }, @@ -259,24 +259,24 @@ module.exports = { name: "reset", description: "Restore all settings to default configurations", value: "reset", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "view", description: "View current settings configuration", value: "view", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "starting_balance", description: "Set the starting balance of a new user", value: "starting_balance", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "amount", description: "The amount to set the starting balance", value: "amount", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 1.00, required: true, }] @@ -285,12 +285,12 @@ module.exports = { name: "uav-price", description: "Configure the price of a UAV", value: "uav-price", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "amount", description: "The amount to set the UAV price", value: "amount", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 0.01, required: true, }] @@ -299,12 +299,12 @@ module.exports = { name: "emp-price", description: "Configure the price of an EMP", value: "emp-price", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "amount", description: "The amount to set the EMP price", value: "amount", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 0.01, required: true, }] @@ -313,13 +313,13 @@ module.exports = { name: "income_role", description: "Set/remove roles to recieve income", value: "set_income_role", - type: ApplicationCommandOptionType.SubCommandGroup, + type: ApplicationCommandOptionType.SubcommandGroup, options: [ { name: "set", description: "Set role", value: "set", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [ { name: "role", @@ -332,7 +332,7 @@ module.exports = { name: "amount", description: "The amount to collect", value: 120.00, - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 0.01, required: true, } @@ -342,7 +342,7 @@ module.exports = { name: "remove", description: "Remove role", value: "remove", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "role", description: "Role to remove", @@ -357,12 +357,12 @@ module.exports = { name: "income_limiter", description: "Change the number of hours to wait before collecting next income", value: "income_limiter", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "hours", description: "Number of hours till income can be collected", value: 168.00, // 1 week - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 1.00, required: true, }] @@ -371,7 +371,7 @@ module.exports = { name: "combat-log-timer", description: "Adjust number of minutes to detect combat logs (0 disables combat log)", value: "combat-log-timer", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "minutes", description: "Minutes to qualify combat log", @@ -384,7 +384,7 @@ module.exports = { name: "toggle-uav-purchase", description: "Allow/Disallow UAV purchases", value: "toggle-uav-purchase", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "configuration", description: "True or False", @@ -397,7 +397,7 @@ module.exports = { name: "toggle-emp-purchase", description: "Allow/Disallow EMP purchases", value: "toggle-uav-purchase", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "configuration", description: "True or False", @@ -410,7 +410,7 @@ module.exports = { name: "welcome_message_server_name", description: "Configure the server name in the welcome message", value: "welcome_message_server_name", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "name", description: "Server name to include in welcome message", diff --git a/src/commands/event.js b/src/commands/event.js index eb02008..a1c581f 100644 --- a/src/commands/event.js +++ b/src/commands/event.js @@ -16,7 +16,7 @@ module.exports = { name: "player-track", description: "Track a player and announce location", value: "player-track", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "gamertag", description: "Gamertag of player", @@ -60,7 +60,7 @@ module.exports = { name: "delete", description: "Delete an active event", value: "delete", - type: ApplicationCommandOptionType.SubCommand + type: ApplicationCommandOptionType.Subcommand }], SlashCommand: { /** diff --git a/src/commands/help.js b/src/commands/help.js index 8d39915..194b79a 100644 --- a/src/commands/help.js +++ b/src/commands/help.js @@ -17,7 +17,7 @@ module.exports = { name: "commands", description: "List all commands", value: "commands", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "command", description: "Get information on a specific command", @@ -30,19 +30,19 @@ module.exports = { name: "support", description: "Get support for Application", value: "support", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "credits", description: "DayZ.R Bot Credits", value: "credits", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "stats", description: "Current Bot Statistics", value: "stats", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, } ], SlashCommand: { diff --git a/src/commands/lookup.js b/src/commands/lookup.js index f79f21d..4da0f07 100644 --- a/src/commands/lookup.js +++ b/src/commands/lookup.js @@ -15,7 +15,7 @@ module.exports = { name: "discord", description: "Find a Discord user from a Gamertag", value: "discord", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "gamertag", description: "Gamertag of player", @@ -27,7 +27,7 @@ module.exports = { name: "gamertag", description: "Find a Gamertag from a Discord user", value: "gamertag", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "user", description: "Discord User", diff --git a/src/commands/purchase-uav.js b/src/commands/purchase-uav.js index bb5c17f..344c53c 100644 --- a/src/commands/purchase-uav.js +++ b/src/commands/purchase-uav.js @@ -17,7 +17,7 @@ module.exports = { name: "x-coord", description: "X Coordinate of the origin", value: "x-coord", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 0.01, required: true, }, @@ -25,7 +25,7 @@ module.exports = { name: "y-coord", description: "Y Coordinate of the origin", value: "y-coord", - type: ApplicationCommandOptionType.Float, + type: ApplicationCommandOptionType.Number, min_value: 0.01, required: true, }, diff --git a/src/commands/server.js b/src/commands/server.js index d42e774..614b3b7 100644 --- a/src/commands/server.js +++ b/src/commands/server.js @@ -18,31 +18,31 @@ module.exports = { name: "initialize", description: "Connect your Nitrado server to the bot", value: "initialize", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "disconnect", description: "Delete your Nitrado server from the bot database", value: "disconnect", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "credentials-status", description: "Check the status of your Nitrado Credentials", value: "credentials-status", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "retry-credentials", description: "If your credentials are marked as FAILED, try retreiving Nitrado logs again.", value: "retry-credentials", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "ban-player", description: "Ban a player from the DayZ server", value: "ban-player", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "gamertag", description: "gamertag of the player to ban.", @@ -54,7 +54,7 @@ module.exports = { name: "unban-player", description: "Unban a player from the DayZ server", value: "unban-player", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "gamertag", description: "gamertag of the player to unban.", @@ -67,17 +67,17 @@ module.exports = { name: "restart", description: "Restart the DayZ Server", value: "restart", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "auto-restart", description: "Enable/Disable periodic server checks and restart if stopped", value: "auto-restart", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, }, { name: "disable-base-damage", description: "Disable/Enable base damage", value: "disable-base-damage", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "preference", description: "DisableBaseDamage Preference", @@ -89,7 +89,7 @@ module.exports = { name: "disable-container-damage", description: "Disable/Enable container damage", value: "disable-container-damage", - type: ApplicationCommandOptionType.SubCommand, + type: ApplicationCommandOptionType.Subcommand, options: [{ name: "preference", description: "disableContainerDamage Preference",