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:Jump to solution
Can you try now? Just pushed an attempted fix but i dont have my test env right now
6 Replies
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 OverflowI'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?
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 helpsSolution
Can you try now? Just pushed an attempted fix but i dont have my test env right now
It does work now, thanks!
Awesome