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