feat(xp): implements xp reducer

This commit is contained in:
Anhgelus Morhtuuzh 2024-04-15 19:06:33 +02:00
parent 9de1f3f90b
commit 0a6ecf6af7
No known key found for this signature in database
GPG key ID: CF4550297832A29F
4 changed files with 18 additions and 8 deletions

View file

@ -9,6 +9,7 @@ import (
)
func Top(s *discordgo.Session, i *discordgo.InteractionCreate) {
xp.LastEventUpdate(xp.GetCopaing(i.User.ID, i.GuildID))
resp := utils.ResponseBuilder{C: s, I: i}
err := resp.IsDeferred().Send()
if err != nil {