Merge pull request #333 from VermiumSifell/main
🩹 /credits gift is now working
This commit is contained in:
commit
c729cb56fe
1 changed files with 6 additions and 0 deletions
|
@ -184,6 +184,12 @@ export default {
|
|||
});
|
||||
}
|
||||
|
||||
// Withdraw amount from fromUserDB
|
||||
fromUserDB.credits -= optionAmount;
|
||||
|
||||
// Deposit amount to toUserDB
|
||||
toUserDB.credits += optionAmount;
|
||||
|
||||
// Save users
|
||||
await saveUser(fromUserDB, toUserDB).then(async () => {
|
||||
// Get DM user object
|
||||
|
|
Loading…
Add table
Reference in a new issue