From ac73839583271aa2f262912e062dae1d73a1f180 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Tue, 16 Apr 2024 16:05:55 +0200 Subject: fix(command): nil pointer reference on /top --- commands/top.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/top.go') 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 { -- cgit v1.2.3