debug inventory menu interactions
This commit is contained in:
1 file changed
+2
-2
@@ -63,7 +63,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;
|
||||
|
||||
if (interaction.values[0] == 'all') {
|
||||
let inventoryEmbed = new EmbedBuilder()
|
||||
@@ -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