reformat command data structure

This commit is contained in:
SowinskiBraeden committed 2022-09-30 13:18:57 -07:00
1 parent fd811f30ab
commit 481f012d6a
26 files changed
+189 -188

No files matched your search

+1 -1
View File
@@ -8,8 +8,8 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
options: [],
SlashCommand: { SlashCommand: {
options: [],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+2 -2
View File
@@ -8,8 +8,8 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
SlashCommand: { options: [],
options: [], SlashCommand: {
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+2 -2
View File
@@ -8,8 +8,7 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
SlashCommand: { options: [
options: [
{ {
name: "user", name: "user",
description: "Discord Username", description: "Discord Username",
@@ -18,6 +17,7 @@ module.exports = {
required: false, required: false,
}, },
], ],
SlashCommand: {
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+1 -1
View File
@@ -9,8 +9,8 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
options: [],
SlashCommand: { SlashCommand: {
options: [],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+1 -1
View File
@@ -8,8 +8,8 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
options: [],
SlashCommand: { SlashCommand: {
options: [],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+16 -16
View File
@@ -10,23 +10,23 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], 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: { 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 * @param {require("../structures/LinesPoliceCadBot")} client
+1 -1
View File
@@ -8,8 +8,8 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
options: [],
SlashCommand: { SlashCommand: {
options: [],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+9 -9
View File
@@ -9,16 +9,16 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
options: [
{
name: "serialnumber",
description: "Firearms's serial number",
value: "serialnumber",
type: 3,
required: true,
},
],
SlashCommand: { SlashCommand: {
options: [
{
name: "serialnumber",
description: "Firearms's serial number",
value: "serialnumber",
type: 3,
required: true,
},
],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+9 -9
View File
@@ -8,16 +8,16 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
options: [
{
name: "command",
description: "Get information on a specific command",
value: "command",
type: 3,
required: false,
},
],
SlashCommand: { SlashCommand: {
options: [
{
name: "command",
description: "Get information on a specific command",
value: "command",
type: 3,
required: false,
},
],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+9 -9
View File
@@ -9,16 +9,16 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
options: [
{
name: "code",
description: "Join community with community code",
value: "code",
type: 3,
required: true,
},
],
SlashCommand: { SlashCommand: {
options: [
{
name: "code",
description: "Join community with community code",
value: "code",
type: 3,
required: true,
},
],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+1 -1
View File
@@ -9,8 +9,8 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
options: [],
SlashCommand: { SlashCommand: {
options: [],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+23 -23
View File
@@ -9,30 +9,30 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], 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: { 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 * @param {require("../structures/LinesPoliceCadBot")} client
+1 -1
View File
@@ -8,8 +8,8 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
options: [],
SlashCommand: { SlashCommand: {
options: [],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+2 -2
View File
@@ -8,8 +8,8 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
SlashCommand: { options: [],
options: [], SlashCommand: {
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+1 -1
View File
@@ -8,8 +8,8 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
options: [],
SlashCommand: { SlashCommand: {
options: [],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+9 -9
View File
@@ -9,16 +9,16 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
options: [
{
name: "platenumber",
description: "Vehicle's license plate number",
value: "platenumber",
type: 3,
required: true,
},
],
SlashCommand: { SlashCommand: {
options: [
{
name: "platenumber",
description: "Vehicle's license plate number",
value: "platenumber",
type: 3,
required: true,
},
],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+9 -9
View File
@@ -8,16 +8,16 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: ["remove_role"], member: ["remove_role"],
}, },
options: [
{
name: "channel",
description: "Channel to remove from allowed channles",
value: "channel",
type: 7,
required: true,
},
],
SlashCommand: { SlashCommand: {
options: [
{
name: "channel",
description: "Channel to remove from allowed channles",
value: "channel",
type: 7,
required: true,
},
],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+9 -9
View File
@@ -8,16 +8,16 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: ["MANAGE_GUILD"], member: ["MANAGE_GUILD"],
}, },
options: [
{
name: "role",
description: "Role to remove from allowed roles",
value: "role",
type: 8,
required: true,
},
],
SlashCommand: { SlashCommand: {
options: [
{
name: "role",
description: "Role to remove from allowed roles",
value: "role",
type: 8,
required: true,
},
],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+1 -1
View File
@@ -8,8 +8,8 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
options: [],
SlashCommand: { SlashCommand: {
options: [],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+9 -9
View File
@@ -8,16 +8,16 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: ["MANAGE_GUILD"], member: ["MANAGE_GUILD"],
}, },
options: [
{
name: "channel",
description: "Channel to add to allowed channles",
value: "channel",
type: 7,
required: true,
},
],
SlashCommand: { SlashCommand: {
options: [
{
name: "channel",
description: "Channel to add to allowed channles",
value: "channel",
type: 7,
required: true,
},
],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+9 -9
View File
@@ -8,16 +8,16 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: ["MANAGE_GUILD"], member: ["MANAGE_GUILD"],
}, },
options: [
{
name: "new-prefix",
description: "Update prefix for the bot",
value: "setprefix",
type: 3,
required: true,
},
],
SlashCommand: { SlashCommand: {
options: [
{
name: "new-prefix",
description: "Update prefix for the bot",
value: "setprefix",
type: 3,
required: true,
},
],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+9 -9
View File
@@ -8,16 +8,16 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: ["MANAGE_GUILD"], member: ["MANAGE_GUILD"],
}, },
options: [
{
name: "role",
description: "Role to add to allowed roles",
value: "role",
type: 8,
required: true,
},
],
SlashCommand: { SlashCommand: {
options: [
{
name: "role",
description: "Role to add to allowed roles",
value: "role",
type: 8,
required: true,
},
],
/** /**
* *
* @param {require("../structures/LinesPoliceCadBot")} client * @param {require("../structures/LinesPoliceCadBot")} client
+1
View File
@@ -9,6 +9,7 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], member: [],
}, },
options: [],
SlashCommand: { SlashCommand: {
/** /**
* *
+16 -16
View File
@@ -8,23 +8,23 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], 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: { 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 * @param {require("../structures/LinesPoliceCadBot")} client
+23 -23
View File
@@ -9,30 +9,30 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], 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: { 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 * @param {require("../structures/LinesPoliceCadBot")} client
+15 -15
View File
@@ -9,22 +9,22 @@ module.exports = {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"], channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [], 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: { 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 * @param {require("../structures/LinesPoliceCadBot")} client