Commit Graph
100 Commits
Author SHA1 Message Date
Rapptz cbc46e0973 Add support for ForumChannel.default_layout 2023-01-10 16:43:18 -05:00
Rapptz 9930c672bb Add AppInfo.role_connections_verification_url 2023-01-10 16:31:02 -05:00
Rapptz d8da6a8da1 Update AutoModTrigger.regex_pattern documentation 2023-01-10 16:27:06 -05:00
Rapptz d3249445f3 Revert "Allow empty strings to be in Embed.to_dict"
This reverts commit a72fc7416c.

Discord no longer allows this and the original rationale for allowing
this was weak to begin with.
2023-01-10 15:58:37 -05:00
Rapptz d609c78a9e Clarify Template.source_guild documentation 2023-01-07 02:46:21 -05:00
Rapptz 3f81984ebb Document permissions required for automod events 2023-01-07 02:46:21 -05:00
Rapptz d257b0c07b Fix Webhook.send returning ForumChannel for WebhookMessage.channel 2023-01-05 18:27:50 -05:00
Rapptz 1700086f1a Enable colour logging for docker even if tty is not set 2023-01-01 06:13:44 -05:00
Rapptz 7863418ddb Fix AutoModRule.edit to work with actual snowflake types
Fixes #9159
2022-12-30 01:58:33 -05:00
Rapptz 887ddbb4b6 Fix implicit permission resolution for Thread
Fix #9153
2022-12-29 07:17:41 -05:00
Rapptz 50e66d4072 Add delete_after to Interaction.edit_message
Closes #9415
2022-12-29 06:56:15 -05:00
Rapptz bdeccaf106 Add Locale.indonesian 2022-12-14 19:22:49 -05:00
Rapptz da317ad84b [commands] Respect ignore_extra for FlagConverter kw-only parameters 2022-11-29 18:09:53 -05:00
Rapptz a098867a4d Fix certain parameters not being respected in Guild.create_forum 2022-11-27 23:51:52 -05:00
Rapptz 24bdb44d54 Version bump for development 2022-11-12 14:48:26 -05:00
Rapptz 24b61a71c1 Version bump to v2.1.0 2022-11-12 14:47:24 -05:00
Rapptz 6c4b6dc999 Update changelog 2022-11-12 14:45:16 -05:00
Rapptz 55f272f6e7 Document UserFlags.active_developer 2022-11-10 23:47:52 -05:00
Rapptz dad666651f Add ApplicationFlags.active 2022-11-10 23:46:43 -05:00
Rapptz 3d39f70d30 Add active developer flag 2022-11-10 13:58:31 -05:00
Rapptz cd6fd13a8f Add AutoModTrigger.__repr__ 2022-11-06 07:21:41 -05:00
Rapptz 84767ef840 Add AutoModTrigger.regex_patterns support 2022-11-06 07:17:38 -05:00
Rapptz 217662ca44 Fix detection of overridden binding error handler
Closes #8963
2022-09-27 23:50:06 -04:00
Rapptz cd04f6ca41 Revert Group.on_error copy due to failing tests 2022-09-24 01:43:28 -04:00
Rapptz 6e5392c6e2 Fix Tree.on_error still being called when a bound error handler is set
Closes #8455
2022-09-24 01:22:03 -04:00
Rapptz 6bec7e9d97 Fix detection of overriden Group.on_error and ensure they're copied 2022-09-24 01:18:52 -04:00
Rapptz c35ff4cfc6 [commands] Allow Greedy to potentially maintain state between calls 2022-09-20 23:53:48 -04:00
Rapptz 8aaeb6acfa Parse gateway URL as an actual URL using yarl
Discord has changed the URL format to make it infeasible to edit it
using basic string interpolation.
2022-09-17 22:51:23 -04:00
Rapptz a53b609e37 Fix ForumChannel annotation not working for app_commands
Closes #8472
2022-09-17 00:12:06 -04:00
Rapptz 9971c2e09a [commands] Add __repr__ to Range 2022-09-08 02:06:36 -04:00
Rapptz 1c163b66cd Fix stage_instances and guild_schedule_events clearing on GUILD_UPDATE 2022-09-06 17:45:01 -04:00
Rapptz 771476a8d8 Fix _errors key being visible in CommandSyncError in some cases 2022-09-06 02:56:48 -04:00
Rapptz 5cc6af5917 Fix CommandSyncFailure raising for other 400 error types 2022-09-06 02:56:48 -04:00
Rapptz 9ed5fbecea [commands] Add support for NumPy style docstrings for commands 2022-09-04 00:34:17 -04:00
Rapptz 27b19ed582 Change error message for unbound callbacks in ContextMenu 2022-09-04 00:34:17 -04:00
Rapptz fdebe069a6 Change ForumTag.emoji to be optional 2022-09-03 00:23:07 -04:00
Rapptz aa0acf1d56 Add more options to Guild.create_forum 2022-09-01 05:10:41 -04:00
Rapptz 40b91f0e2a Remove TextChannel.default_thread_slowmode_delay
This doesn't have meaning on text channels apparently
2022-09-01 04:52:44 -04:00
Rapptz ab265dcb7c Add support for newest ForumChannel changes
This adds the following:

- Forum tag support
- Default reaction support
- Default slowmode for newly created threads
2022-08-31 11:09:56 -04:00
Rapptz 9ea6ee8887 Add support for ForumChannel annotations in app commands 2022-08-30 05:09:50 -04:00
Rapptz 6ab6b2cb96 [commands] Fix Context.from_interaction ignoring command_failed 2022-08-30 05:08:11 -04:00
Rapptz 7d1cb08c6d Remove buckets from webhook ratelimit warnings 2022-08-30 00:53:47 -04:00
Rapptz 2e37e47e38 Fix autocomplete documentation to mention it only passes strings 2022-08-28 02:01:29 -04:00
Rapptz 8ab4d25d40 Version bump for development 2022-08-27 19:52:46 -04:00
Rapptz cb587f67ba Version bump to v2.0.1 2022-08-27 19:47:48 -04:00
Rapptz 58193d18c5 Add changelogs for v2.0.1 2022-08-27 19:47:06 -04:00
Rapptz 7c1dffbf9d Use importlib.metadata instead of pkg_resources 2022-08-26 12:00:46 -04:00
Rapptz b92fd65707 Document app_commands.Choice limits 2022-08-26 11:59:12 -04:00
Rapptz 9237106ee3 Add v2 changelog entry to point to migrating page 2022-08-23 02:34:24 -04:00
Rapptz f5e3074886 Update version guarantees 2022-08-22 15:23:23 -04:00
Rapptz 5fe54b3ae6 Remove __slots__ from abc protocols
Fix #8354
2022-08-19 19:10:19 -04:00
Rapptz 59677c6738 Fix CommandTree.on_error not triggering if interaction_check raises 2022-08-18 21:10:10 -04:00
Rapptz 6327402730 Update View timeout only if interaction_check passes 2022-08-18 18:55:50 -04:00
Rapptz 5c7f6dd37e Clarify when None is returned from Member.edit 2022-08-18 09:52:28 -04:00
Rapptz bc00bc495e Document attachment:// URI more prominently in Embed docs 2022-08-18 09:50:16 -04:00
Rapptz 38ec8cfb0e Add FUNDING.yml 2022-08-18 09:40:28 -04:00
Rapptz 03dbd7a01d Fix cchardet being installed on Python >=3.10
This project is unmaintained now
2022-08-18 09:39:25 -04:00
Rapptz 4abea7bafa Version bump for development 2022-08-17 23:30:19 -04:00
Rapptz 575af0ff51 Version bump to v2.0.0 2022-08-17 23:28:51 -04:00
Rapptz 2bf2bfc9b4 Add utils.setup_logging to help set up logging outside of Client.run 2022-08-17 22:53:03 -04:00
Rapptz 1c7747fe9d Fix nested Annotated calls not resolving 2022-08-17 10:41:57 -04:00
Rapptz 8dd186cf1e Fix cache eviction for ratelimit objects 2022-08-17 08:39:39 -04:00
Rapptz 54ee383585 [commands] Add warning if Intent.message_content is not enabled 2022-08-17 03:52:29 -04:00
Rapptz cdce8fae5b Change ui.TextInput.value to not be Optional 2022-08-17 02:26:17 -04:00
Rapptz f52a02359d Use built-in isascii instead of regex 2022-08-17 01:52:29 -04:00
Rapptz d78be1f591 Fix Exception Hierarchy to have the proper heading 2022-08-16 22:38:57 -04:00
Rapptz bd19ad05e7 Fix app_command_completion triggering on certain errors 2022-08-16 20:03:02 -04:00
Rapptz 7be0779b65 Add root_logger setting to Client.run
This allows people one way to use the colour logger globally
2022-08-16 20:03:02 -04:00
Rapptz 3aa3c36c4f Marginally speed up CI doc builds by using multiple jobs 2022-08-16 18:57:03 -04:00
Rapptz 1a11c9eeee [commands] Properly set module information for hybrid commands 2022-08-16 01:28:27 -04:00
Rapptz de5fa8bc9c Improve sync error format for children options 2022-08-16 01:18:12 -04:00
Rapptz 596f2ca222 Fix time_snowflake not being documented 2022-08-15 14:01:54 -04:00
Rapptz 6b50fcd5e4 Add Command.parameters to get all parameters of a command 2022-08-15 13:42:47 -04:00
Rapptz 5b56899676 Change snowflake_time and time_snowflake parameters to pos/kw-only 2022-08-15 13:39:03 -04:00
Rapptz c92422d185 Add app commands transformer example
Closes #7984
2022-08-15 11:32:49 -04:00
Rapptz 6886f1d01a Move modal example to its own folder 2022-08-15 10:54:52 -04:00
Rapptz 54541ba6f0 Ensure FFmpeg players have a _process attribute set even during errors 2022-08-15 10:32:07 -04:00
Rapptz 3802780f77 Change a lot of logging INFO calls to be less verbose
Some of the logs were only useful for debug scenarios, so they have
been downgraded to DEBUG. Others were in INFO but supposed to be in
WARNING so those were upgraded.
2022-08-15 10:21:36 -04:00
Rapptz 0ec06f0ac5 Add on_app_command_completion event
Fix #8126
2022-08-15 09:19:01 -04:00
Rapptz 0b69148c84 Fix float focused autocomplete options being parsed
According to the Discord docs these aren't validated
2022-08-15 08:59:29 -04:00
Rapptz 49e6fe9a0c Fix autocomplete translations calling unnecessary locales 2022-08-14 17:35:43 -04:00
Rapptz 32c5a0cec1 Change default Choice.name_localizations to an empty dict 2022-08-14 17:35:43 -04:00
Rapptz f69d4ee5cb Add Choice.name_localizations data from Discord
Fix #8337
2022-08-14 16:29:16 -04:00
Rapptz ff1dd586d3 Always use last value as a fallback for Select.values 2022-08-14 15:50:16 -04:00
Rapptz c8db766be4 Fix empty strings crashing Namespace for float options
This feels like a Discord bug to me but it's causing issues
2022-08-14 05:38:11 -04:00
Rapptz 1fa7d7e402 Raise special CommandSyncFailure during sync for better errors
This is parsed from the error to allow for users to better debug
what exactly is causing the issue in sync.
2022-08-12 22:36:13 -04:00
Rapptz a9025ca3d1 Remove public CommandTree.call method and make it private 2022-08-12 10:57:54 -04:00
Rapptz 0744737e86 Fix default_permissions serialisation error from __bool__ change 2022-08-11 18:24:23 -04:00
Rapptz f1ec0919f6 Remove stack info from ratelimit logs 2022-08-10 22:55:27 -04:00
Rapptz 747091d4a2 Add __bool__ for flags 2022-08-10 22:49:49 -04:00
Rapptz 7da2048d1a Add support for resume_gateway_url 2022-08-10 22:47:27 -04:00
Rapptz a36d6daec7 Fix formatting issue in app_commands 2022-08-10 22:39:53 -04:00
Rapptz 11278d55e8 Add command information to Parameter class 2022-08-09 23:11:40 -04:00
Rapptz 4fbafcd718 Fix attribute error in TranslationError 2022-08-09 10:45:12 -04:00
Rapptz df54da8bc9 Fix secret example requiring more intents than necessary 2022-08-09 10:42:15 -04:00
Rapptz c32567ea81 Refactor TranslationContext to be more useful
The previous enum was good at accomplishing dynamic key generation for
a few cases, but it fell short in others:

1. It could not discern group names and command names
2. It could not give you more contextual data such as the full object
   currently being translated.

On top of that, the context being a required parameter for
Translator.translate meant that it wouldn't be possible to re-use the
translator for other use cases outside of the rigid ones defined in the
library.

To alleviate these concerns, new enum attributes were added along with
a richer type for obtaining even more context.
2022-08-09 10:41:45 -04:00
Rapptz 57efb5a5a0 Fix failing tests to use new get_parameter function 2022-08-09 08:02:41 -04:00
Rapptz 1727eca106 Add app_commands.Parameter for parameter introspection 2022-08-09 07:43:40 -04:00
Rapptz 0e386ec2cc Fix parameter descriptions being serialised as locale_str 2022-08-08 21:15:08 -04:00
Rapptz cc0c261925 Change auto_locale_strings default to True 2022-08-08 20:17:47 -04:00