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

Resolved
  1. AelithronOPMar 2, 2025, 4:32 AM

    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.

  2. ShadowMar 2, 2025, 4:36 AMSolution

    I'll push a hotfix for this, it's supposed to create the user entry in the db when you do that

  3. ShadowMar 2, 2025, 4:40 AM

    @Aelithron was this using set, add, or remove?

  4. AelithronMar 2, 2025, 4:41 AM

    Add I believe

  5. AelithronMar 2, 2025, 4:42 AM

    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)

  6. AelithronMar 2, 2025, 4:45 AM

    The server ID is 1327012110059831389 in case that helps

  7. ShadowMar 2, 2025, 4:46 AM

    Can you try now? Just pushed an attempted fix but i dont have my test env right now

  8. AelithronMar 2, 2025, 4:47 AM

    It does work now, thanks!

  9. ShadowMar 2, 2025, 4:47 AM

    Awesome

  10. 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