fixed error message
This commit is contained in:
@@ -79,12 +79,16 @@ func interactionCreate(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
|||||||
if !command.AllowDM && i.Interaction.GuildID == "" {
|
if !command.AllowDM && i.Interaction.GuildID == "" {
|
||||||
err := bot.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
|
err := bot.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
|
||||||
Type: discordgo.InteractionApplicationCommandAutocompleteResult,
|
Type: discordgo.InteractionApplicationCommandAutocompleteResult,
|
||||||
|
Data: &discordgo.InteractionResponseData{
|
||||||
|
Choices: nil,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Error(err)
|
logrus.Error(err)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
command.Autocomplete(s, i)
|
||||||
}
|
}
|
||||||
command.Autocomplete(s, i)
|
|
||||||
}
|
}
|
||||||
case discordgo.InteractionModalSubmit:
|
case discordgo.InteractionModalSubmit:
|
||||||
if !command.AllowDM && i.Interaction.GuildID == "" {
|
if !command.AllowDM && i.Interaction.GuildID == "" {
|
||||||
|
Reference in New Issue
Block a user