Compare commits

..

3 Commits

Author SHA1 Message Date
Ryan
dd3b9a01d3
Fix set api modal not submitting (#6626) 2025-10-12 09:09:35 +02:00
Kowlin
a809c3604a
Explicitly comment some speed up dependencies not directly used by Red (#6621) 2025-09-26 19:45:08 +02:00
github-actions[bot]
982f082cb0
Version bump to 3.5.23.dev1 (#6617)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-05 01:50:31 +02:00
3 changed files with 8 additions and 6 deletions

View File

@ -339,7 +339,7 @@ def _early_init():
# This is bumped automatically by release workflow (`.github/workflows/scripts/bump_version.py`) # This is bumped automatically by release workflow (`.github/workflows/scripts/bump_version.py`)
_VERSION = "3.5.22" _VERSION = "3.5.23.dev1"
__version__, version_info = VersionInfo._get_version() __version__, version_info = VersionInfo._get_version()

View File

@ -442,7 +442,7 @@ class SetApiModal(discord.ui.Modal):
converter = get_dict_converter(*self.default_keys, delims=[";", ",", " "]) converter = get_dict_converter(*self.default_keys, delims=[";", ",", " "])
else: else:
converter = get_dict_converter(delims=[";", ",", " "]) converter = get_dict_converter(delims=[";", ",", " "])
tokens = " ".join(self.token_input.value.split("\n")).rstrip() tokens = " ".join(self.token_input.component.value.split("\n")).rstrip()
try: try:
tokens = await converter().convert(None, tokens) tokens = await converter().convert(None, tokens)
@ -459,7 +459,7 @@ class SetApiModal(discord.ui.Modal):
ephemeral=True, ephemeral=True,
) )
else: else:
service = self.service_input.value.lower() service = self.service_input.component.value.lower()
await interaction.client.set_shared_api_tokens(service, **tokens) await interaction.client.set_shared_api_tokens(service, **tokens)
return await interaction.response.send_message( return await interaction.response.send_message(
_("`{service}` API tokens have been set.").format(service=service), _("`{service}` API tokens have been set.").format(service=service),

View File

@ -2,11 +2,9 @@ aiohttp<3.10
aiohttp-json-rpc aiohttp-json-rpc
apsw apsw
babel babel
Brotli
click click
discord.py discord.py
markdown markdown
orjson
packaging packaging
platformdirs platformdirs
psutil psutil
@ -19,6 +17,10 @@ rich
schema schema
typing_extensions typing_extensions
yarl yarl
zstandard
distro; sys_platform == "linux" distro; sys_platform == "linux"
uvloop; sys_platform != "win32" and platform_python_implementation == "CPython" uvloop; sys_platform != "win32" and platform_python_implementation == "CPython"
# Used by discord.py[speedup]. See Pull request #6587 for more info.
Brotli
orjson
zstandard