Commit Graph

4287 Commits

Author SHA1 Message Date
2bb7ed2092 Retry on 524 status code 2022-05-21 21:22:20 -04:00
7905d63f7c Reword missing annotation error to be a bit clearer 2022-05-20 17:21:31 -04:00
e813e5efe7 Remove undocumented methods from function signature changes 2022-05-20 16:52:55 -04:00
93e1ff5f07 Change aiohttp object construction to no longer take loop objects 2022-05-20 15:08:38 -04:00
37076a04de Fix autocomplete example to not be as confusing 2022-05-18 20:53:33 -04:00
bd637e2462 Specify required argument types for FFI functions
On arm64 macOS, variadic arguments have special calling convention rules.
Therefore, we must specify the required argument types for ctypes to 
pass the arguments correctly.

Apple documentation: https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms#Update-Code-that-Passes-Arguments-to-Variadic-Functions

Fix issue #8046
2022-05-18 06:32:03 -04:00
30c7a2179f Fix typo in context menu error message 2022-05-17 16:41:29 -04:00
38ba3b8d23 [commands] fix case_insensitive bug in parse_flags
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-05-17 16:41:02 -04:00
46e6a2708f Add dunder or support to Flag types 2022-05-17 14:12:45 -04:00
2be65e5874 [commands] Fix errors when DynamicCooldown returns None 2022-05-17 03:37:31 -04:00
dbb00bd361 Add Reaction into typehint of add_reaction() 2022-05-17 03:36:35 -04:00
d16e0cbe61 Add PartialIntegration to TargetType 2022-05-17 03:32:52 -04:00
544bb1e237 Fix typo in FlagConverter example 2022-05-16 17:05:21 -04:00
04f5fcf741 Fix Connectable.connect typing having bad inference if cls is missing 2022-05-16 15:34:51 -04:00
9d17c3acde Fix scope typo in FAQ 2022-05-16 15:34:48 -04:00
cdf787186e Add VoiceChannel and Thread to isinstance checks 2022-05-16 15:32:13 -04:00
9450a8e972 [commands] Change FlagConverter to always raise BadFlagArgument 2022-05-16 15:31:18 -04:00
7267d18d9e Improve component typing 2022-05-16 15:30:03 -04:00
b7e25645dc Fix audit log bulk message delete not exposing count 2022-05-14 09:36:28 -04:00
573bb32a1e Fallback to an unavailable guild instead of an Object in interactions 2022-05-14 06:50:27 -04:00
781b297ac9 Add intents to python -m discord newbot 2022-05-12 22:10:50 -04:00
8eb2e19c41 Add more detailed description to accent_colour 2022-05-12 22:06:28 -04:00
f780b0a283 Add setting to fallback to global command if guild command isn't found 2022-05-12 06:36:19 -04:00
6e2fcd4762 [commands] Assign current parameter and argument in hybrid commands 2022-05-12 06:36:19 -04:00
863df7d049 Add support for discord.Thread annotation in app commands 2022-05-11 23:45:02 -04:00
6d55b96fa7 [commands] Fix unsupported discord converters in hybrid commands
These are things that are supported in regular commands but not in
application commands, such as discord.Colour, discord.Game, or
discord.Emoji.
2022-05-11 20:14:39 -04:00
63e50bc369 Don't hotlink typing.List, typing.Dict, or typing.Tuple 2022-05-11 03:54:25 -04:00
06e8683d01 [commands] Fix flag_converter attribute not being properly copied 2022-05-11 03:30:20 -04:00
cc3e714338 Fix typo in documentation and mention name kwarg interaction 2022-05-11 03:20:57 -04:00
15ceca1e63 [commands] Add support for FlagConverter in hybrid commands
This works by unpacking and repacking the flag arguments in a flag.
If an unsupported type annotation is found then it will error at
definition time.
2022-05-11 03:15:57 -04:00
1607b6978b Add widget_enabled attribute to Guild 2022-05-10 22:59:22 -04:00
23065db804 Update minimum aiohttp dependency 2022-05-10 22:52:15 -04:00
d319539edb [commands] Fix broken examples in commands.param documentation 2022-05-09 18:15:31 -04:00
40176bb71b Fix bound method autocomplete callbacks not working
This also adds some regression tests
2022-05-09 17:24:48 -04:00
b2929513cc Update modal example for latest changes 2022-05-08 04:46:40 -04:00
96bada03f4 Add support for application tags and install params 2022-05-08 02:16:16 -04:00
c779e34fa0 Use explicit UTF-8 encoding in SyncWebhook 2022-05-08 00:13:06 -04:00
902aa245a4 Swap order of arguments in Modal.on_error 2022-05-06 20:16:42 -04:00
bd3ce597e1 [commands] Fix app command children not being copied in HybridGroup
This degenerate case is only triggered inside cogs when using the
app_command property to define commands, such as this:

    class X(commands.Cog):
        @commands.hybrid_group()
        async def foo(self, ctx):
            ...

        @foo.app_command.command()
        async def bar(self, interaction):
            ...
2022-05-06 09:02:49 -04:00
85ad33eb35 Fix formatting issue in webhook 2022-05-06 09:02:49 -04:00
4dd5cc2bc9 Pass proxy information to interactions and webhooks
Fix #7918
2022-05-05 12:07:09 -04:00
1df3ed861c Fix broken HTTPClient.recreate code to actually clear session 2022-05-05 11:42:50 -04:00
0502c6a0d2 Fix two styling nits with fmt: off 2022-05-05 11:35:26 -04:00
fbd57ffa58 Add FAQ entry for disabling all items in a View on timeout 2022-05-05 08:52:24 -04:00
2bfbd1a979 Prefer code-block directive over :: in faq.rst 2022-05-05 08:52:24 -04:00
6901907b69 [commands] Add seealso directive in functions referencing checks 2022-05-05 06:21:52 -04:00
bd727d2b0c Add edit and delete methods to AppCommand 2022-05-05 06:20:55 -04:00
9793fba338 [commands] Add support for discord.Attachment converters 2022-05-05 01:54:59 -04:00
d8846570ae Remove unnecessary type ignore
Despite this except branch is no longer guarded, the exceptional
case could still happen if an Object is passed or if a future channel
type leads to breakage
2022-05-05 01:46:19 -04:00
ccc737eb07 [commands] Add support for with_app_command in hybrid commands
This allows the user to make a text-only command without it registering
as an application command
2022-05-05 01:46:19 -04:00