fix(command): nil pointer reference on /top
This commit is contained in:
parent
3bd8d28a97
commit
ac73839583
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue