Skip to content

Commit

Permalink
fix(Birthday): error on autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesuaheli committed Dec 31, 2024
1 parent c3dab34 commit 9ee2f3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/interaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type InteractionUtil struct {
func (i *InteractionUtil) respond() {
if i.response.Type != discordgo.InteractionResponseDeferredChannelMessageWithSource && // deferred responses dont need contents
i.response.Type != discordgo.InteractionResponseDeferredMessageUpdate &&
i.response.Type != discordgo.InteractionApplicationCommandAutocompleteResult && // autocomplete responses dont need contents
i.response.Data.Content == "" &&
len(i.response.Data.Embeds) == 0 &&
len(i.response.Data.Components) == 0 {
Expand Down

0 comments on commit 9ee2f3c

Please sign in to comment.