diff --git a/commands/checkStatus.js b/commands/checkStatus.js index 20b276c..56b2666 100644 --- a/commands/checkStatus.js +++ b/commands/checkStatus.js @@ -9,14 +9,14 @@ module.exports = { member: [], }, options: [ - { - name: "user", - description: "Discord Username", - value: "user", - type: 6, - required: false, - }, - ], + { + name: "user", + description: "Discord Username", + value: "user", + type: 6, + required: false, + }, + ], SlashCommand: { /** * diff --git a/commands/firearmSearch.js b/commands/firearmSearch.js index d37afb5..d3053f9 100644 --- a/commands/firearmSearch.js +++ b/commands/firearmSearch.js @@ -56,7 +56,7 @@ module.exports = { .setColor('#0099ff') .setTitle(`**${results.firearms[i].firearm.serialNumber} | ${results.firearms[i]._id}**`) .setURL('https://discord.gg/jgUW656v2t') - .setAuthor('LPS Website Support', client.config.IconURL, 'https://discord.gg/jgUW656v2t') + .setAuthor({ name: 'LPS Website Support', iconURL: client.config.IconURL, url: 'https://discord.gg/jgUW656v2t' }) .setDescription('Firearm Search Results') .addFields( { name: `**Serial Number**`, value: `\`${results.firearms[i].firearm.serialNumber}\``, inline: true }, diff --git a/commands/help.js b/commands/help.js index d6396f1..8c8d247 100644 --- a/commands/help.js +++ b/commands/help.js @@ -27,6 +27,7 @@ module.exports = { */ run: async (client, interaction, args, { GuildDB }) => { + console.log(args) if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) { return interaction.send({ content: `You are not allowed to use the bot in this channel.` }); } @@ -56,7 +57,7 @@ module.exports = { ); let embed = new EmbedBuilder() - .setAuthor(`Command: ${cmd.name}`, client.config.IconURL) + .setAuthor({ name: `Command: ${cmd.name}`, iconURL: client.config.IconURL }) .setDescription(cmd.description) .setColor("GREEN") .addFields({ diff --git a/commands/nameSearch.js b/commands/nameSearch.js index 35cfdb1..89cd712 100644 --- a/commands/nameSearch.js +++ b/commands/nameSearch.js @@ -86,7 +86,7 @@ module.exports = { .setColor('#0099ff') .setTitle(`**${results.civilians[i].civilian.firstName} ${results.civilians[i].civilian.lastName} | ${results.civilians[i]._id}**`) .setURL('https://discord.gg/jgUW656v2t') - .setAuthor('LPS Website Support', client.config.IconURL, 'https://discord.gg/jgUW656v2t') + .setAuthor({ name: 'LPS Website Support', iconURL: client.config.IconURL, url: 'https://discord.gg/jgUW656v2t' }) .setDescription('Name Search Results') .addFields( { name: `**First Name**`, value: `\`${results.civilians[i].civilian.firstName}\``, inline: true }, diff --git a/commands/plateSearch.js b/commands/plateSearch.js index e46f344..c24a17d 100644 --- a/commands/plateSearch.js +++ b/commands/plateSearch.js @@ -57,7 +57,7 @@ module.exports = { .setColor('#0099ff') .setTitle(`**${results.vehicles[i].vehicle.plate} | ${results.vehicles[i]._id}**`) .setURL('https://discord.gg/jgUW656v2t') - .setAuthor('LPS Website Support', client.config.IconURL, 'https://discord.gg/jgUW656v2t') + .setAuthor({ name: 'LPS Website Support', iconURL: client.config.IconURL, url: 'https://discord.gg/jgUW656v2t' }) .setDescription('Plate Search Results') .addFields( { name: `**Plate #**`, value: `\`${results.vehicles[i].vehicle.plate}\``, inline: true }, diff --git a/commands/updateLicense.js b/commands/updateLicense.js index da4ece8..432bff6 100644 --- a/commands/updateLicense.js +++ b/commands/updateLicense.js @@ -82,7 +82,7 @@ module.exports = { .setColor('#0099ff') .setTitle(`**${results.civilians[i].civilian.firstName} ${results.civilians[i].civilian.lastName} | ${results.civilians[i]._id}**`) .setURL('https://discord.gg/jgUW656v2t') - .setAuthor('LPS Website Support', client.config.IconURL, 'https://discord.gg/jgUW656v2t') + .setAuthor({ name: 'LPS Website Support', iconURL: client.config.IconURL, url: 'https://discord.gg/jgUW656v2t' }) .setDescription('Name Search Results') .addFields( { name: `**First Name**`, value: `\`${results.civilians[i].civilian.firstName}\``, inline: true },