Bug, cannot give XP to people who haven't spoken yet
Resolved
AelithronOPMar 2, 2025, 4:32 AMKiai 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.
ShadowMar 2, 2025, 4:36 AMSolutionI'll push a hotfix for this, it's supposed to create the user entry in the db when you do that
ShadowMar 2, 2025, 4:40 AM@Aelithron was this using set, add, or remove?
AelithronMar 2, 2025, 4:41 AMAdd I believe
AelithronMar 2, 2025, 4:42 AMI just confirmed, my exact command is
/xp add xp: 1 user: <@817099218703482890>(edit: put the wrong user id when typing it here, fixed now)
AelithronMar 2, 2025, 4:45 AMThe server ID is 1327012110059831389 in case that helps
ShadowMar 2, 2025, 4:46 AMCan you try now? Just pushed an attempted fix but i dont have my test env right now
AelithronMar 2, 2025, 4:47 AMIt does work now, thanks!
ShadowMar 2, 2025, 4:47 AMAwesome
- ShadowCan you try now? Just pushed an attempted fix but i dont have my test env right now
Answer OverflowMar 2, 2025, 4:48 AM