handled errors
This commit is contained in:
parent
6cea2789ef
commit
54cd7a4f52
@ -106,6 +106,7 @@ func Run(BotToken string) {
|
|||||||
responseData = err.Error()
|
responseData = err.Error()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if responseData != "" {
|
if responseData != "" {
|
||||||
err = s.InteractionRespond(
|
err = s.InteractionRespond(
|
||||||
i.Interaction,
|
i.Interaction,
|
||||||
@ -119,7 +120,7 @@ func Run(BotToken string) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}})
|
})
|
||||||
|
|
||||||
discord.AddHandler(func (
|
discord.AddHandler(func (
|
||||||
s *discordgo.Session,
|
s *discordgo.Session,
|
||||||
|
Loading…
Reference in New Issue
Block a user