Commit Graph

3725 Commits

Author SHA1 Message Date
ae51d5849a Fix typos in AppCommandPermissions attributes doc 2022-06-07 04:23:22 -04:00
377dde4e4e Change app command permission models guild to not be None 2022-06-07 01:56:44 -04:00
98ca16ef67 Tweak wording for "less than" Range error
Keeping it consistent!
2022-06-07 01:36:21 -04:00
3aa55ba1ed Implement Application Command Permissions models 2022-06-07 01:35:33 -04:00
4e7529138c [commands] Properly use Optional's default value on parsing error 2022-06-06 20:18:25 -04:00
75d57ab3ce Fix warning in entity_type reassignment 2022-06-06 12:26:05 -04:00
3fe9fc92eb Automatically infer entity_type when passing concrete channels
This affects Guild.create_scheduled_event and ScheduledEvent.edit

Previously, you would always be required to pass it in. However, it
makes sense to not repeat yourself if you already know it's a stage
channel or a voice channel due to the type information.
2022-06-06 08:56:04 -04:00
9df6aa86c8 Fix state modification endpoints on ScheduledEvent not working
Closes #8114
2022-06-06 08:34:19 -04:00
d1039e209e Skip default parameter validation when using a transformer
Fixes #8110
2022-06-05 01:18:16 -04:00
f6a74f74a7 Fix typo in CommandTree.fetch_command's NotFound doc 2022-06-04 03:25:06 -04:00
06c1f44d74 Add on_raw_thread_update event 2022-06-03 04:49:32 -04:00
af265dba06 Add CommandTree.fetch_command 2022-06-03 04:46:20 -04:00
823d650e97 Update comments in CommandTree to reflect commands v2 2022-06-01 02:38:20 -04:00
6a4d5eef52 Fix documentation errors in discord.Invite and on_integration_update 2022-06-01 02:36:51 -04:00
59ebfefbf4 Use __getitem__ to access channel_id in MessageReference payloads 2022-06-01 02:32:42 -04:00
e543abd950 Add support for new thread_name parameter in Webhook.send 2022-05-31 18:25:26 -04:00
259c6733a3 Add webhook creation methods to ForumChannel 2022-05-31 18:15:54 -04:00
0b026b1283 Elaborate on rename decorator behaviour 2022-05-31 18:14:31 -04:00
36f039a1bf [commands] Fix interaction baton not being set during Context creation 2022-05-30 08:50:19 -04:00
67066937c5 Add return type for __init__ and _from_data 2022-05-30 08:48:56 -04:00
f82ec46acf Use json_or_text helper for parsing webhook responses 2022-05-30 08:48:36 -04:00
f24f34e3f1 Remove unused internal bot_token attribute 2022-05-28 23:48:02 -04:00
53694724c1 Add emoji property to SelectOption 2022-05-28 23:47:19 -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
78a026aae2 Add remaining bitwise operators to Flags 2022-05-23 21:58:46 -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
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
04f5fcf741 Fix Connectable.connect typing having bad inference if cls is missing 2022-05-16 15:34:51 -04:00
cdf787186e Add VoiceChannel and Thread to isinstance checks 2022-05-16 15:32:13 -04:00