From 51480bc67930808e97cfbab3f640c5a5a7ff2f8a Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Thu, 4 Aug 2022 13:49:45 -0700 Subject: [PATCH] debug/hide inventory list --- commands/inventory.js | 6 +++--- commands/settings.js | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/commands/inventory.js b/commands/inventory.js index 14cc4ec..662a0c6 100644 --- a/commands/inventory.js +++ b/commands/inventory.js @@ -213,8 +213,8 @@ module.exports = { // Display Inventory let inventoryEmbed = new MessageEmbed() - .setColor(client.config.EmbedColor) - .setTitle('Your Inventory') + .setColor(client.config.EmbedColor) + .setTitle('Your Inventory') let description = `To see detials on an Item use \`/inventory item [item number]\`\n\n\`\`\`` for (let i = 0; i < inventory.items.length; i++) { @@ -225,7 +225,7 @@ module.exports = { inventoryEmbed.setDescription(description); - return interaction.send({ embeds: [inventoryEmbed] }); + return interaction.send({ embeds: [inventoryEmbed], ephemeral: true }); } else if (args[0].name == 'wallet') { // Display wallet diff --git a/commands/settings.js b/commands/settings.js index 2b77c3d..6c0a9cd 100644 --- a/commands/settings.js +++ b/commands/settings.js @@ -47,7 +47,7 @@ module.exports = { name: "action_channel", description: "Set the channel to be used for /me commands", value: "action_channel", - type: 1, + type: 2, options: [ { name: "set", @@ -79,7 +79,7 @@ module.exports = { name: "tweet_channel", description: "Set the channel to be used for /tweet commands", value: "tweet_channel", - type: 1, + type: 2, options: [ { name: "set", @@ -111,7 +111,7 @@ module.exports = { name: "adverts_channel", description: "Set the channel for users to send commercial adverts", value: "adverts_channel", - type: 1, + type: 2, options: [ { name: "set", @@ -156,7 +156,7 @@ module.exports = { name: "income_role", description: "Add/update a role to earn income on /work command", value: "set_income_role", - type: 1, + type: 2, options: [ { name: "set", @@ -199,7 +199,7 @@ module.exports = { name: "commercial_role", description: "Set/remove commercial role", value: "commercial_role", - type: 1, + type: 2, options: [ { name: "set", @@ -233,7 +233,7 @@ module.exports = { name: "officer_role", description: "Set/remove officer role", value: "officer_role", - type: 1, + type: 2, options: [ { name: "set",