35 Commits
Author SHA1 Message Date
89ee05c03f Add tests by bryanforbes for app commands within cogs
Co-authored-by: Bryan Forbes <bryan@reigndropsfall.net>
2022-07-27 22:27:37 -04:00
StockerMCandDanny 1fbcfbd1fb Fix cog_app_command_error for group edge case 2022-07-27 22:27:37 -04:00
StockerandGitHub 6d1069e789 Fix cog_app_command_error for groups 2022-07-27 00:29:53 -04:00
StockerandGitHub 3ee18e4c5d Use a TypeVar for flatten_user to workaround Pyright bug 2022-07-25 21:18:52 -04:00
StockerandGitHub 0546343bcb [commands] Add cog-level app command error special method 2022-07-17 23:45:19 -04:00
StockerandGitHub eca4727593 [commands] Add missing and fix existing type annotations 2022-03-22 06:04:46 -04:00
StockerandGitHub 5fa32540a4 Change Message to subclass PartialMessage 2022-03-20 15:18:24 -04:00
StockerandGitHub caf2000fe8 Add missing annotation for ThreadMember.id 2022-03-17 07:27:13 -04:00
StockerandGitHub fd5dea4e34 Update Permissions.stage_moderator 2022-03-15 23:33:11 -04:00
5aa696ccfa Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
Co-authored-by: Josh <josh.ja.butt@gmail.com>
2022-03-13 23:52:10 -04:00
StockerandGitHub acbd8ca5f6 Fix typo causing a TypeError in Interaction.guild_locale 2022-03-07 19:54:13 -05:00
StockerandGitHub e63c9bad85 Use display_avatar instead of avatar in converters example 2022-03-06 23:05:06 -05:00
StockerandGitHub 2eec900e98 Add the Command.callback and ContextMenu.callback properties 2022-03-06 23:02:44 -05:00
StockerandGitHub 13355f3712 Fix HelpCommand.invoked_with raising an error
This would happen if the context hasn't been set yet.
2022-03-06 23:02:01 -05:00
StockerandGitHub e15415413b Add missing parameters to certain methods
- slowmode_delay and reason in Message.create_thread
- slowmode_delay in TextChannel.create_thread
- reason in Guild.edit_widget
2022-03-06 23:00:50 -05:00
StockerandGitHub 12d4de52a8 Add Attachment.ephemeral 2022-03-06 22:59:15 -05:00
StockerandGitHub 07a1311bf4 Change Guild.preferred_locale to use the Locale enum 2022-03-05 23:30:51 -05:00
StockerandGitHub e491aa84e5 Fix typo in Thread.remove_user 2022-03-05 23:17:37 -05:00
StockerandGitHub 554d2d7c99 Add the suppress_embeds parameter to send methods
Modified the following methods:

- abc.Messageable.send
- Webhook.send
- SyncWebhook.send
- InteractionResponse.send_message
2022-03-05 22:19:33 -05:00
StockerandGitHub d8b06ca7f2 Fix message.py typehints 2021-08-23 23:43:57 -04:00
StockerandGitHub ae01a96bef Add missing type: ignore and missing typehint to channel.py 2021-08-23 21:03:56 -04:00
StockerandGitHub 400936df69 Fix type for content param in HTTPClient.send_message 2021-08-23 05:24:43 -04:00
StockerandGitHub cdf46127ae Added type: ignores where needed to activity.py 2021-08-23 05:22:36 -04:00
StockerandGitHub 4065014794 Add type: ignore for StageInstance.channel 2021-08-21 16:28:15 -04:00
StockerandGitHub 7592300535 Typehint state.py 2021-08-21 14:39:02 -04:00
StockerandGitHub 5390caa67d Typehint shard.py 2021-08-20 20:05:02 -04:00
StockerandGitHub ef32f6d882 Typehint context_managers.py 2021-08-20 19:50:39 -04:00
StockerandGitHub b6590d7f56 Add a few typehints to opus.py 2021-08-19 20:23:35 -04:00
StockerandGitHub b5a717fb80 Fix missing typehint that causes an error for a type checker 2021-08-19 20:19:24 -04:00
StockerandGitHub f4d5fcc8f9 Add Thread to the return type of Client.get_channel
Also explains some type ignores.
2021-08-19 20:18:27 -04:00
StockerandGitHub e79a648987 Add missing typehints to template.py 2021-08-18 01:17:20 -04:00
StockerandGitHub 8fdd1f0d8f [commands] Typehinted errors.py 2021-08-18 01:03:44 -04:00
StockerandGitHub 6587b5c7ea Typehint raw_models.py 2021-08-18 00:23:16 -04:00
StockerandGitHub 1472e9ed7c Fixes minor grammatical error in Command.update 2021-07-28 19:56:36 -04:00
TheLeadingLlamaandRapptz 2ea2693bd7 Add the Guild.delete_custom_emoji method 2021-06-07 03:25:09 -04:00