diff --git a/commands/account.js b/commands/account.js index ecde661..ec519db 100644 --- a/commands/account.js +++ b/commands/account.js @@ -8,8 +8,8 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [], SlashCommand: { - options: [], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/channels.js b/commands/channels.js index 89e6e56..6db6951 100644 --- a/commands/channels.js +++ b/commands/channels.js @@ -8,8 +8,8 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, - SlashCommand: { - options: [], + options: [], + SlashCommand: { /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/checkStatus.js b/commands/checkStatus.js index 749614c..20b276c 100644 --- a/commands/checkStatus.js +++ b/commands/checkStatus.js @@ -8,8 +8,7 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, - SlashCommand: { - options: [ + options: [ { name: "user", description: "Discord Username", @@ -18,6 +17,7 @@ module.exports = { required: false, }, ], + SlashCommand: { /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/community.js b/commands/community.js index 91b37e2..7bf3daf 100644 --- a/commands/community.js +++ b/commands/community.js @@ -9,8 +9,8 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [], SlashCommand: { - options: [], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/connect_account.js b/commands/connect_account.js index daaf2a6..b35cc3d 100644 --- a/commands/connect_account.js +++ b/commands/connect_account.js @@ -8,8 +8,8 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [], SlashCommand: { - options: [], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/debug.js b/commands/debug.js index 7d253e4..dbafd73 100644 --- a/commands/debug.js +++ b/commands/debug.js @@ -10,23 +10,23 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [ + { + name: "command", + description: "The debug command to execute", + value: "command", + type: 3, + required: true, + }, + { + name: "consoleoutput", + description: "Output debug messages to console (deault=false)", + value: "consoleoutput", + type: 5, + required: true, + }, + ], SlashCommand: { - options: [ - { - name: "command", - description: "The debug command to execute", - value: "command", - type: 3, - required: true, - }, - { - name: "consoleoutput", - description: "Output debug messages to console (deault=false)", - value: "consoleoutput", - type: 5, - required: true, - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/disconnect_account.js b/commands/disconnect_account.js index 10b7988..4bcc037 100644 --- a/commands/disconnect_account.js +++ b/commands/disconnect_account.js @@ -8,8 +8,8 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [], SlashCommand: { - options: [], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/firearmSearch.js b/commands/firearmSearch.js index 2a7841d..d37afb5 100644 --- a/commands/firearmSearch.js +++ b/commands/firearmSearch.js @@ -9,16 +9,16 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [ + { + name: "serialnumber", + description: "Firearms's serial number", + value: "serialnumber", + type: 3, + required: true, + }, + ], SlashCommand: { - options: [ - { - name: "serialnumber", - description: "Firearms's serial number", - value: "serialnumber", - type: 3, - required: true, - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/help.js b/commands/help.js index d2b98d0..d6396f1 100644 --- a/commands/help.js +++ b/commands/help.js @@ -8,16 +8,16 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [ + { + name: "command", + description: "Get information on a specific command", + value: "command", + type: 3, + required: false, + }, + ], SlashCommand: { - options: [ - { - name: "command", - description: "Get information on a specific command", - value: "command", - type: 3, - required: false, - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/joinCommunity.js b/commands/joinCommunity.js index 6133f50..2382eae 100644 --- a/commands/joinCommunity.js +++ b/commands/joinCommunity.js @@ -9,16 +9,16 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [ + { + name: "code", + description: "Join community with community code", + value: "code", + type: 3, + required: true, + }, + ], SlashCommand: { - options: [ - { - name: "code", - description: "Join community with community code", - value: "code", - type: 3, - required: true, - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/leaveCommunity.js b/commands/leaveCommunity.js index e17bc61..58144ef 100644 --- a/commands/leaveCommunity.js +++ b/commands/leaveCommunity.js @@ -9,8 +9,8 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [], SlashCommand: { - options: [], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/nameSearch.js b/commands/nameSearch.js index a44fe6f..35cfdb1 100644 --- a/commands/nameSearch.js +++ b/commands/nameSearch.js @@ -9,30 +9,30 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [ + { + name: "firstname", + description: "Civilian's First Name", + value: "firstname", + type: 3, + required: true, + }, + { + name: "lastname", + description: "Civilian's Last Name", + value: "lastname", + type: 3, + required: true, + }, + { + name: "dob", + description: "Civilian's DOB (yyyy-mm-dd)", + value: "dob", + type: 3, + required: true, + }, + ], SlashCommand: { - options: [ - { - name: "firstname", - description: "Civilian's First Name", - value: "firstname", - type: 3, - required: true, - }, - { - name: "lastname", - description: "Civilian's Last Name", - value: "lastname", - type: 3, - required: true, - }, - { - name: "dob", - description: "Civilian's DOB (yyyy-mm-dd)", - value: "dob", - type: 3, - required: true, - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/panic.js b/commands/panic.js index e0f2dda..0e5c923 100644 --- a/commands/panic.js +++ b/commands/panic.js @@ -8,8 +8,8 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [], SlashCommand: { - options: [], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/ping.js b/commands/ping.js index 469ac51..b4f450c 100644 --- a/commands/ping.js +++ b/commands/ping.js @@ -8,8 +8,8 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, - SlashCommand: { - options: [], + options: [], + SlashCommand: { /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/pingOnPanic.js b/commands/pingOnPanic.js index 4635eff..7c4969b 100644 --- a/commands/pingOnPanic.js +++ b/commands/pingOnPanic.js @@ -8,8 +8,8 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [], SlashCommand: { - options: [], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/plateSearch.js b/commands/plateSearch.js index cfa0854..e46f344 100644 --- a/commands/plateSearch.js +++ b/commands/plateSearch.js @@ -9,16 +9,16 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [ + { + name: "platenumber", + description: "Vehicle's license plate number", + value: "platenumber", + type: 3, + required: true, + }, + ], SlashCommand: { - options: [ - { - name: "platenumber", - description: "Vehicle's license plate number", - value: "platenumber", - type: 3, - required: true, - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/removeChannel.js b/commands/removeChannel.js index a24c149..b1c5533 100644 --- a/commands/removeChannel.js +++ b/commands/removeChannel.js @@ -8,16 +8,16 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: ["remove_role"], }, + options: [ + { + name: "channel", + description: "Channel to remove from allowed channles", + value: "channel", + type: 7, + required: true, + }, + ], SlashCommand: { - options: [ - { - name: "channel", - description: "Channel to remove from allowed channles", - value: "channel", - type: 7, - required: true, - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/removeRole.js b/commands/removeRole.js index c631d32..9342be8 100644 --- a/commands/removeRole.js +++ b/commands/removeRole.js @@ -8,16 +8,16 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: ["MANAGE_GUILD"], }, + options: [ + { + name: "role", + description: "Role to remove from allowed roles", + value: "role", + type: 8, + required: true, + }, + ], SlashCommand: { - options: [ - { - name: "role", - description: "Role to remove from allowed roles", - value: "role", - type: 8, - required: true, - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/roles.js b/commands/roles.js index 81a62fe..389b2a5 100644 --- a/commands/roles.js +++ b/commands/roles.js @@ -8,8 +8,8 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [], SlashCommand: { - options: [], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/setChannel.js b/commands/setChannel.js index b5a1fb7..ca0c4e0 100644 --- a/commands/setChannel.js +++ b/commands/setChannel.js @@ -8,16 +8,16 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: ["MANAGE_GUILD"], }, + options: [ + { + name: "channel", + description: "Channel to add to allowed channles", + value: "channel", + type: 7, + required: true, + }, + ], SlashCommand: { - options: [ - { - name: "channel", - description: "Channel to add to allowed channles", - value: "channel", - type: 7, - required: true, - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/setPrefix.js b/commands/setPrefix.js index e3b47cd..5c8a51a 100644 --- a/commands/setPrefix.js +++ b/commands/setPrefix.js @@ -8,16 +8,16 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: ["MANAGE_GUILD"], }, + options: [ + { + name: "new-prefix", + description: "Update prefix for the bot", + value: "setprefix", + type: 3, + required: true, + }, + ], SlashCommand: { - options: [ - { - name: "new-prefix", - description: "Update prefix for the bot", - value: "setprefix", - type: 3, - required: true, - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/setRole.js b/commands/setRole.js index 911b1a8..35513a5 100644 --- a/commands/setRole.js +++ b/commands/setRole.js @@ -8,16 +8,16 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: ["MANAGE_GUILD"], }, + options: [ + { + name: "role", + description: "Role to add to allowed roles", + value: "role", + type: 8, + required: true, + }, + ], SlashCommand: { - options: [ - { - name: "role", - description: "Role to add to allowed roles", - value: "role", - type: 8, - required: true, - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/stats.js b/commands/stats.js index a4b13d3..e7c3e7a 100644 --- a/commands/stats.js +++ b/commands/stats.js @@ -9,6 +9,7 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [], SlashCommand: { /** * diff --git a/commands/togglePingOnPanic.js b/commands/togglePingOnPanic.js index b47bd22..979f0d6 100644 --- a/commands/togglePingOnPanic.js +++ b/commands/togglePingOnPanic.js @@ -8,23 +8,23 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [ + { + name: "toggle", + description: "Toggle ping on panic", + value: "toggle", + type: 5, + required: true, + }, + { + name: "role", + description: "Role to ping on panic", + value: "role", + type: 8, + required: true, + }, + ], SlashCommand: { - options: [ - { - name: "toggle", - description: "Toggle ping on panic", - value: "toggle", - type: 5, - required: true, - }, - { - name: "role", - description: "Role to ping on panic", - value: "role", - type: 8, - required: true, - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/updateLicense.js b/commands/updateLicense.js index 096a36a..da4ece8 100644 --- a/commands/updateLicense.js +++ b/commands/updateLicense.js @@ -9,30 +9,30 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [ + { + name: "firstname", + description: "Civilian's First Name", + value: "firstname", + type: 3, + required: true, + }, + { + name: "lastname", + description: "Civilian's Last Name", + value: "lastname", + type: 3, + required: true, + }, + { + name: "dob", + description: "Civilian's DOB (yyyy-mm-dd)", + value: "dob", + type: 3, + required: true, + }, + ], SlashCommand: { - options: [ - { - name: "firstname", - description: "Civilian's First Name", - value: "firstname", - type: 3, - required: true, - }, - { - name: "lastname", - description: "Civilian's Last Name", - value: "lastname", - type: 3, - required: true, - }, - { - name: "dob", - description: "Civilian's DOB (yyyy-mm-dd)", - value: "dob", - type: 3, - required: true, - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client diff --git a/commands/updateStatus.js b/commands/updateStatus.js index 40d59fa..29e624a 100644 --- a/commands/updateStatus.js +++ b/commands/updateStatus.js @@ -9,22 +9,22 @@ module.exports = { channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], member: [], }, + options: [ + { + name: "status", + description: "New Status Value", + value: "status", + type: 3, + required: true, + choices: [ + { name: '10-8 (In Service)', value: '10-8', }, { name: '10-7 (Out of Service)', value: '10-7', }, { name: '10-6 (Busy)', value: '10-6', }, + { name: '10-11 (Traffic Stop)', value: '10-11', }, { name: '10-23 (Arrive on Scene', value: '10-23', }, { name: '10-97 (In Route)', value: '10-97' }, + { name: '10-15 (Subject in Custody)', value: '10-15', }, { name: '10-70 (Foot Pursuit)', value: '10-70', }, { name: '10-80 (Vehicle Pursuit)', value: '10-80' }, + { name: '10-41 (Log in to CAD)', value: '10-41', }, { name: '10-42 (Log out of CAD)', value: '10-42' }, + ], + }, + ], SlashCommand: { - options: [ - { - name: "status", - description: "New Status Value", - value: "status", - type: 3, - required: true, - choices: [ - { name: '10-8 (In Service)', value: '10-8', }, { name: '10-7 (Out of Service)', value: '10-7', }, { name: '10-6 (Busy)', value: '10-6', }, - { name: '10-11 (Traffic Stop)', value: '10-11', }, { name: '10-23 (Arrive on Scene', value: '10-23', }, { name: '10-97 (In Route)', value: '10-97' }, - { name: '10-15 (Subject in Custody)', value: '10-15', }, { name: '10-70 (Foot Pursuit)', value: '10-70', }, { name: '10-80 (Vehicle Pursuit)', value: '10-80' }, - { name: '10-41 (Log in to CAD)', value: '10-41', }, { name: '10-42 (Log out of CAD)', value: '10-42' }, - ], - }, - ], /** * * @param {require("../structures/LinesPoliceCadBot")} client