mirror of
https://github.com/ApfelTeeSaft/LawinServerV2.git
synced 2026-08-26 19:23:39 +00:00
Instant update profile when items cleared
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const User = require("../../model/user.js");
|
||||
const Profile = require("../../model/profiles.js");
|
||||
const functions = require("../../structs/functions.js");
|
||||
const fs = require("fs");
|
||||
|
||||
module.exports = {
|
||||
@@ -47,6 +48,12 @@ module.exports = {
|
||||
|
||||
await profiles.updateOne({ $set: { [`profiles.athena`]: athena } });
|
||||
|
||||
functions.sendXmppMessageToId({
|
||||
type: "com.epicgames.gift.received",
|
||||
payload: {},
|
||||
timestamp: new Date().toISOString()
|
||||
}, targetUser.accountId);
|
||||
|
||||
return interaction.editReply({ content: "Successfully cleared items in your profile that are from the item shop."});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user