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"),
|
"create_events": _("Create Events"),
|
||||||
"use_external_sounds": _("Use External Sounds"),
|
"use_external_sounds": _("Use External Sounds"),
|
||||||
"send_voice_messages": _("Send Voice Messages"),
|
"send_voice_messages": _("Send Voice Messages"),
|
||||||
|
"set_voice_channel_status": _("Set Voice Channel Status"),
|
||||||
"send_polls": _("Create Polls"),
|
"send_polls": _("Create Polls"),
|
||||||
"use_external_apps": _("Use External Apps"),
|
"use_external_apps": _("Use External Apps"),
|
||||||
|
"pin_messages": _("Pin Messages"),
|
||||||
|
"bypass_slowmode": _("Bypass Slowmode"),
|
||||||
}
|
}
|
||||||
|
|
||||||
DANGEROUS_COMMANDS = {
|
DANGEROUS_COMMANDS = {
|
||||||
|
|||||||
@@ -644,10 +644,15 @@ class Filter(commands.Cog):
|
|||||||
|
|
||||||
_ChildComponent = Union[
|
_ChildComponent = Union[
|
||||||
discord.Button,
|
discord.Button,
|
||||||
|
discord.CheckboxComponent,
|
||||||
|
discord.CheckboxGroupComponent,
|
||||||
discord.FileComponent,
|
discord.FileComponent,
|
||||||
|
discord.FileUploadComponent,
|
||||||
discord.LabelComponent,
|
discord.LabelComponent,
|
||||||
discord.MediaGalleryComponent,
|
discord.MediaGalleryComponent,
|
||||||
|
discord.RadioGroupComponent,
|
||||||
discord.SelectMenu,
|
discord.SelectMenu,
|
||||||
|
discord.SeparatorComponent,
|
||||||
discord.TextDisplay,
|
discord.TextDisplay,
|
||||||
discord.TextInput,
|
discord.TextInput,
|
||||||
discord.ThumbnailComponent,
|
discord.ThumbnailComponent,
|
||||||
@@ -673,8 +678,15 @@ def _extract_values_from_component(component: _ChildComponent) -> Iterable[Optio
|
|||||||
yield component.content
|
yield component.content
|
||||||
elif isinstance(component, discord.ThumbnailComponent):
|
elif isinstance(component, discord.ThumbnailComponent):
|
||||||
yield component.description
|
yield component.description
|
||||||
# FileComponent does not have any user-provided text fields
|
# The following do not have any user-provided text fields
|
||||||
# LabelComponent and TextInput are modal-only components
|
# - FileComponent
|
||||||
|
# - SeparatorComponent
|
||||||
|
# The following are modal-only components:
|
||||||
|
# - CheckboxComponent
|
||||||
|
# - CheckboxGroupComponent
|
||||||
|
# - FileUploadComponent
|
||||||
|
# - LabelComponent
|
||||||
|
# - TextInput
|
||||||
|
|
||||||
|
|
||||||
def _walk_all_components(components: Iterable[discord.Component]) -> Iterable[_ChildComponent]:
|
def _walk_all_components(components: Iterable[discord.Component]) -> Iterable[_ChildComponent]:
|
||||||
|
|||||||
@@ -5,5 +5,6 @@ from .config import Config
|
|||||||
|
|
||||||
__all__ = ["Config", "__version__", "version_info", "VersionInfo"]
|
__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_nacl = False
|
||||||
|
_discord.voice_client.VoiceClient.warn_dave = False
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ from discord.app_commands import (
|
|||||||
NoPrivateMessage as NoPrivateMessage,
|
NoPrivateMessage as NoPrivateMessage,
|
||||||
Parameter as Parameter,
|
Parameter as Parameter,
|
||||||
Range as Range,
|
Range as Range,
|
||||||
|
Timestamp as Timestamp,
|
||||||
Transform as Transform,
|
Transform as Transform,
|
||||||
Transformer as Transformer,
|
Transformer as Transformer,
|
||||||
TransformerError as TransformerError,
|
TransformerError as TransformerError,
|
||||||
|
|||||||
@@ -208,6 +208,8 @@ from discord.ext.commands import (
|
|||||||
HybridCommandError as HybridCommandError,
|
HybridCommandError as HybridCommandError,
|
||||||
SoundboardSoundConverter as SoundboardSoundConverter,
|
SoundboardSoundConverter as SoundboardSoundConverter,
|
||||||
SoundboardSoundNotFound as SoundboardSoundNotFound,
|
SoundboardSoundNotFound as SoundboardSoundNotFound,
|
||||||
|
BadTimestampArgument as BadTimestampArgument,
|
||||||
|
Timestamp as Timestamp,
|
||||||
)
|
)
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ brotli==1.1.0
|
|||||||
# via -r base.in
|
# via -r base.in
|
||||||
click==8.1.8
|
click==8.1.8
|
||||||
# via -r base.in
|
# via -r base.in
|
||||||
discord-py==2.6.3
|
discord-py==2.7.1
|
||||||
# via
|
# via
|
||||||
# -r base.in
|
# -r base.in
|
||||||
# red-lavalink
|
# red-lavalink
|
||||||
|
|||||||
Reference in New Issue
Block a user