Commit Graph

4304 Commits

Author SHA1 Message Date
74f3496a74 Add a bandaid fix for Sphinx bug involving admonitions in .pot files
Ref: https://github.com/sphinx-doc/sphinx/issues/10334
2022-05-27 04:30:38 -04:00
4c74523794 Fix versionadded docstrings in voice connect methods 2022-05-27 04:15:23 -04:00
cf031f71b9 Add a new extlink for discord documentation 2022-05-27 04:05:01 -04:00
081f483a0d Fix tree not properly accounting for override when checking limits 2022-05-25 23:40:20 -04:00
f19f51f771 Use positional args for internal thread methods 2022-05-25 05:17:21 -04:00
69b4d9a4fa Fix exception description of WelcomeScreen.edit 2022-05-24 12:07:23 -04:00
4cbe8f58e1 Fix parameter docs of WelcomeScreen.edit 2022-05-24 11:27:52 -04:00
af311bff09 Change .pot files to only contain at most 5 context lines
Crowdin did not like having many comments which caused the upload to
fail.
2022-05-24 10:45:28 -04:00
78a026aae2 Add remaining bitwise operators to Flags 2022-05-23 21:58:46 -04:00
2ef7ae0778 Update intersphinx url for request library 2022-05-23 21:51:36 -04:00
77baa06a99 Fix bug in permission resolution when dealing with timed out members
This would lead to timed out members having the read_messages
permission set to True instead of False
2022-05-23 11:56:05 -04:00
3dddddc8f9 [commands] Change Context.typing to defer for interaction contexts 2022-05-22 21:49:27 -04:00
ee71366f72 Fetch application_info on login
This allows users to no longer pass application_id when calling sync
inside setup_hook
2022-05-22 19:52:50 -04:00
06c43d6772 [commands] Add support for NSFW commands for hybrid commands 2022-05-22 19:31:28 -04:00
573b2121b7 Add support for NSFW application commands
Of course, this somehow doesn't work with subcommands
2022-05-22 19:20:37 -04:00
a47396b21e [commands] Change guild_only check to set guild_only in hybrid commands 2022-05-22 18:48:01 -04:00
e2d0193531 Implement WelcomeScreen 2022-05-21 21:26:06 -04:00
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