fixes/search command
This commit is contained in:
3 files changed
+98
-8
No files matched your search
@@ -79,7 +79,7 @@ module.exports = {
|
||||
return interaction.send(`You are not allowed to use the bot in this channel.`);
|
||||
}
|
||||
|
||||
let inventory = await client.dbo.collection("inventories").findOne({"inventory.userID":interaction.member.user.id}).then(inventory => inventory.inventory);
|
||||
let inventory = await client.dbo.collection("inventories").findOne({"inventory.userID":interaction.member.user.id}).then(inventory => inventory);
|
||||
|
||||
if (!inventory) {
|
||||
inventory = {
|
||||
@@ -108,7 +108,7 @@ module.exports = {
|
||||
return client.sendError(channel, err);
|
||||
}
|
||||
});
|
||||
}
|
||||
} else inventory = inventory.inventory;
|
||||
|
||||
if (args[0].name == 'firearm') {
|
||||
// Add firearm to inventory
|
||||
|
||||
Reference in new issue
Block a user