debug button/menu interactions
This commit is contained in:
12 files changed
+844
-834
No files matched your search
+2
-2
@@ -87,7 +87,7 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
|
||||
let banking = await client.dbo.collection("banks").findOne({"account.userID": interaction.member.user.id}).then(banking => banking);
|
||||
let banking = await client.dbo.collection("banks").findOne({"banking.userID": interaction.member.user.id}).then(banking => banking);
|
||||
|
||||
if (!banking) {
|
||||
banking = {
|
||||
@@ -140,7 +140,7 @@ module.exports = {
|
||||
earned = workPays[highestPayIndex]
|
||||
newBalance = banking.guilds[GuildDB.serverID].account.balance + earned
|
||||
|
||||
client.dbo.collection("banks").updateOne({"account.userID":interaction.member.user.id},{$set:{[`banking.guilds.${GuildDB.serverID}.account.balance`]:newBalance}}, function(err, res) {
|
||||
client.dbo.collection("banks").updateOne({"banking.userID":interaction.member.user.id},{$set:{[`banking.guilds.${GuildDB.serverID}.account.balance`]:newBalance}}, function(err, res) {
|
||||
if (err) {
|
||||
client.error(err);
|
||||
const embed = new EmbedBuilder()
|
||||
|
||||
Reference in new issue
Block a user