Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace parentId #8

Closed
wioniqle-q opened this issue Feb 17, 2022 · 0 comments
Closed

Replace parentId #8

wioniqle-q opened this issue Feb 17, 2022 · 0 comments

Comments

@wioniqle-q
Copy link

if (channel.parent) await userParent.findOneAndUpdate({ guildID: user.guild.id, userID: user.id, parentId: channel.parentID }, { $inc: { parentData: data } }, { upsert: true });

 if (channel.parent) await userParent.findOneAndUpdate({ guildID: user.guild.id, userID: user.id, parentID: channel.parentId }, { $inc: { parentData: data } }, { upsert: true });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants