diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-16 16:05:55 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-04-16 16:05:55 +0200 |
| commit | ac73839583271aa2f262912e062dae1d73a1f180 (patch) | |
| tree | 1c9139f47fd2cc316fc37faede3180db4297ab59 /commands/top.go | |
| parent | 3bd8d28a97c144df2d6c56f6cff55c1629b93ede (diff) | |
fix(command): nil pointer reference on /top
Diffstat (limited to 'commands/top.go')
| -rw-r--r-- | commands/top.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/top.go b/commands/top.go index c0f4dae..8320fe9 100644 --- a/commands/top.go +++ b/commands/top.go @@ -9,7 +9,7 @@ import ( ) func Top(s *discordgo.Session, i *discordgo.InteractionCreate) { - xp.LastEventUpdate(s, xp.GetCopaing(i.User.ID, i.GuildID)) + xp.LastEventUpdate(s, xp.GetCopaing(i.Member.User.ID, i.GuildID)) resp := utils.ResponseBuilder{C: s, I: i} err := resp.IsDeferred().Send() if err != nil { |
