mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-03-07 04:38:35 -05:00
Bump discord.py to 2.7.1 (#6664)
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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]:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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__ = (
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user