Bug, cannot give XP to people who haven't spoken yet

Kiai has encountered an error while running the xp command Unknown error: Invalid prisma.userGuildData.createMany() invocation: Foreign key constraint violated: UserGuildData_userId_fkey (index)` Error ID: zGZWxdUZ95j5 While it may not be intended behavior to allow this, there should at least be a custom error message. I want to grant XP to the few users who joined before I added the bot, to compensate for the messages they sent. However, many of them aren't available at the moment (yay, working at late times!), so I tried this and it failed.
Solution:
Can you try now? Just pushed an attempted fix but i dont have my test env right now
Jump to solution
6 Replies
EasyThreads
EasyThreads2d ago
Hey @Aelithron! Our team will answer your post soon. If this is an issue in your server, make sure you've included your server's ID (This can be found on the /ping command), as well as which users are having this issue. Once your question has been answered, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution to help others find the solution via Answer Overflow
Shadow
Shadow2d ago
I'll push a hotfix for this, it's supposed to create the user entry in the db when you do that @Aelithron was this using set, add, or remove?
Aelithron
AelithronOP2d ago
Add I believe I just confirmed, my exact command is /xp add xp: 1 user: <@817099218703482890> (edit: put the wrong user id when typing it here, fixed now) The server ID is 1327012110059831389 in case that helps
Solution
Shadow
Shadow2d ago
Can you try now? Just pushed an attempted fix but i dont have my test env right now
Aelithron
AelithronOP2d ago
It does work now, thanks!
Shadow
Shadow2d ago
Awesome

Did you find this page helpful?