The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(discord): use _DISCORD_SELECT_MAX_OPTIONS in ChoicePickerView
kshitijk4poor9154421b11ed
diff --git a/plugins/platforms/discord/adapter.py b/plugins/platforms/discord/adapter.pyindex 0ebc2e3cf84..2ea115b1fb0 100644--- a/plugins/platforms/discord/adapter.py+++ b/plugins/platforms/discord/adapter.py@@ -9537,7 +9537,7 @@ def _define_discord_view_classes() -> None:allowed_role_ids: Optional[set] = None,):super().__init__(timeout=120)- self.choices = list(choices)[:25] # Discord select cap+ self.choices = list(choices)[:_DISCORD_SELECT_MAX_OPTIONS]self.on_choice_selected = on_choice_selectedself.allowed_user_ids = allowed_user_idsself.allowed_role_ids = allowed_role_ids or set()