aboutsummaryrefslogtreecommitdiff
path: root/xp/events.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-16 15:23:15 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-04-16 15:23:15 +0200
commitef39c156f94b854796bb1c2adddfd40a5acaeca8 (patch)
treeac24922c2b02f4d17c66bfaabc16aee1f13fd7c9 /xp/events.go
parentc3dc81bd29318a4916bf8fc383a0d1a5ca90fa64 (diff)
feat(reducer): role update on new level
Diffstat (limited to 'xp/events.go')
-rw-r--r--xp/events.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xp/events.go b/xp/events.go
index 655e9fd..ebb7f40 100644
--- a/xp/events.go
+++ b/xp/events.go
@@ -30,7 +30,7 @@ func OnMessage(s *discordgo.Session, m *discordgo.MessageCreate) {
return
}
c := GetCopaing(m.Author.ID, m.GuildID)
- LastEventUpdate(c)
+ LastEventUpdate(s, c)
// add xp
trimmed := utils.TrimMessage(strings.ToLower(m.Content))
m.Member.User = m.Author
@@ -63,7 +63,7 @@ func OnVoiceUpdate(s *discordgo.Session, e *discordgo.VoiceStateUpdate) {
if e.Member.User.Bot {
return
}
- LastEventUpdate(GetCopaing(e.UserID, e.GuildID))
+ LastEventUpdate(s, GetCopaing(e.UserID, e.GuildID))
cfg := config.GetGuildConfig(e.GuildID)
if cfg.IsDisabled(e.ChannelID) {
return