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) {
|
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}
|
resp := utils.ResponseBuilder{C: s, I: i}
|
||||||
err := resp.IsDeferred().Send()
|
err := resp.IsDeferred().Send()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
2
main.go
2
main.go
|
@ -125,7 +125,7 @@ func main() {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Type: gokord.GameStatus,
|
Type: gokord.GameStatus,
|
||||||
Content: "Dev par @anhgelus",
|
Content: "dev par @anhgelus",
|
||||||
Url: "",
|
Url: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue