diff --git a/redbot/cogs/audio/core/events/dpy.py b/redbot/cogs/audio/core/events/dpy.py index 405104bb0..a00f6b780 100644 --- a/redbot/cogs/audio/core/events/dpy.py +++ b/redbot/cogs/audio/core/events/dpy.py @@ -79,8 +79,11 @@ HUMANIZED_PERM = { "create_events": _("Create Events"), "use_external_sounds": _("Use External Sounds"), "send_voice_messages": _("Send Voice Messages"), + "set_voice_channel_status": _("Set Voice Channel Status"), "send_polls": _("Create Polls"), "use_external_apps": _("Use External Apps"), + "pin_messages": _("Pin Messages"), + "bypass_slowmode": _("Bypass Slowmode"), } DANGEROUS_COMMANDS = { diff --git a/redbot/cogs/filter/filter.py b/redbot/cogs/filter/filter.py index fc0d270cc..462940324 100644 --- a/redbot/cogs/filter/filter.py +++ b/redbot/cogs/filter/filter.py @@ -644,10 +644,15 @@ class Filter(commands.Cog): _ChildComponent = Union[ discord.Button, + discord.CheckboxComponent, + discord.CheckboxGroupComponent, discord.FileComponent, + discord.FileUploadComponent, discord.LabelComponent, discord.MediaGalleryComponent, + discord.RadioGroupComponent, discord.SelectMenu, + discord.SeparatorComponent, discord.TextDisplay, discord.TextInput, discord.ThumbnailComponent, @@ -673,8 +678,15 @@ def _extract_values_from_component(component: _ChildComponent) -> Iterable[Optio yield component.content elif isinstance(component, discord.ThumbnailComponent): yield component.description - # FileComponent does not have any user-provided text fields - # LabelComponent and TextInput are modal-only components + # The following do not have any user-provided text fields + # - FileComponent + # - SeparatorComponent + # The following are modal-only components: + # - CheckboxComponent + # - CheckboxGroupComponent + # - FileUploadComponent + # - LabelComponent + # - TextInput def _walk_all_components(components: Iterable[discord.Component]) -> Iterable[_ChildComponent]: diff --git a/redbot/core/__init__.py b/redbot/core/__init__.py index a755816f7..0f7a89b40 100644 --- a/redbot/core/__init__.py +++ b/redbot/core/__init__.py @@ -5,5 +5,6 @@ from .config import Config __all__ = ["Config", "__version__", "version_info", "VersionInfo"] -# Prevent discord PyNaCl missing warning +# Prevent discord PyNaCl and davey missing warning _discord.voice_client.VoiceClient.warn_nacl = False +_discord.voice_client.VoiceClient.warn_dave = False diff --git a/redbot/core/app_commands/__init__.py b/redbot/core/app_commands/__init__.py index 45b1888fd..9d5bd8275 100644 --- a/redbot/core/app_commands/__init__.py +++ b/redbot/core/app_commands/__init__.py @@ -39,6 +39,7 @@ from discord.app_commands import ( NoPrivateMessage as NoPrivateMessage, Parameter as Parameter, Range as Range, + Timestamp as Timestamp, Transform as Transform, Transformer as Transformer, TransformerError as TransformerError, diff --git a/redbot/core/commands/__init__.py b/redbot/core/commands/__init__.py index 6873bdf0a..34b612276 100644 --- a/redbot/core/commands/__init__.py +++ b/redbot/core/commands/__init__.py @@ -208,6 +208,8 @@ from discord.ext.commands import ( HybridCommandError as HybridCommandError, SoundboardSoundConverter as SoundboardSoundConverter, SoundboardSoundNotFound as SoundboardSoundNotFound, + BadTimestampArgument as BadTimestampArgument, + Timestamp as Timestamp, ) __all__ = ( diff --git a/requirements/base.txt b/requirements/base.txt index da2cb62b1..21214a332 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -18,7 +18,7 @@ brotli==1.1.0 # via -r base.in click==8.1.8 # via -r base.in -discord-py==2.6.3 +discord-py==2.7.1 # via # -r base.in # red-lavalink