Skip to content

Conversation

@HEJOK254
Copy link
Contributor

Description

This PR fixes an issue where AutocompleteResult.Value had no precondition for its length. The Discord API Docs specify a maximum length of 100 for the value. This would cause issues where if the program tried to send an AutocompleteResult with a Value that's longer than 100 characters, it would throw a Discord.Net.HttpException after sending a request to the server, which is not ideal.

Changes

  • Add AtMost Precondition for the AutocompleteResult.Value

Related Issues

@Misha-133 Misha-133 enabled auto-merge (squash) December 23, 2025 19:11
@Misha-133 Misha-133 merged commit 161a91e into discord-net:dev Dec 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: AutocompleteResult Value has no length limit

2 participants