debug inventory menu interactions
This commit is contained in:
1 file changed
+3
-3
@@ -63,8 +63,8 @@ module.exports = async (client, interaction) => {
|
||||
}
|
||||
|
||||
let inventory = await client.dbo.collection("inventories").findOne({"inventory.userID": interaction.member.user.id}).then(inventory => inventory);
|
||||
inventory.inventory;
|
||||
|
||||
inventory = inventory.inventory;
|
||||
|
||||
if (interaction.values[0] == 'all') {
|
||||
let inventoryEmbed = new EmbedBuilder()
|
||||
.setColor(client.config.Colors.Default)
|
||||
@@ -125,7 +125,7 @@ module.exports = async (client, interaction) => {
|
||||
}
|
||||
|
||||
let inventory = await client.dbo.collection("inventories").findOne({"inventory.userID": interaction.member.user.id}).then(inventory => inventory);
|
||||
inventory.inventory;
|
||||
inventory = inventory.inventory;
|
||||
|
||||
let item = inventory.guilds[GuildDB.serverID].items[args[0].options[0].value-1];
|
||||
|
||||
|
||||
Reference in new issue
Block a user