Skip to content

Commit

Permalink
Fixed max length
Browse files Browse the repository at this point in the history
  • Loading branch information
warmans committed Sep 28, 2024
1 parent 70fa6ff commit 9e1f57b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/pkg/discord/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func (b *Bot) buttons(customID CustomID, maxDialogOffset int32) []discordgo.Mess
),
})
}
if customID.EndLine-customID.EndLine < 25 {
if customID.EndLine-customID.StartLine < 25 {
if customID.StartLine > 0 {
editRow1 = append(editRow1, discordgo.Button{
// Label is what the user will see on the button.
Expand Down Expand Up @@ -537,7 +537,6 @@ func (b *Bot) queryComplete(s *discordgo.Session, i *discordgo.InteractionCreate
if err = s.InteractionRespond(i.Interaction, interactionResponse); err != nil {
b.respondError(s, i, err)
}
return
}

func (b *Bot) audioFileResponse(customID CustomID, username string) (*discordgo.InteractionResponse, int32, error, func()) {
Expand Down

0 comments on commit 9e1f57b

Please sign in to comment.