Commit Graph
3745 Commits
Author SHA1 Message Date
Sarthak UpadhyayandGitHub 1ba290d8c6 Update sticker limit in _PREMIUM_GUILD_LIMITS 2022-06-14 00:37:58 -04:00
2b9e43dbf9 Change Message.application type to MessageApplication
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2022-06-13 16:34:41 -04:00
Rapptz 96e6261d61 Change default for purge oldest_first to match history 2022-06-13 04:54:08 -04:00
Rapptz c232631504 Refactor utils.oauth_url slightly 2022-06-13 04:49:32 -04:00
40f12c8a00 Add state parameter to utils.oauth_url
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-06-13 03:17:43 -04:00
Rapptz 66881ba458 Remove gateway trace information
This was unused anyway
2022-06-13 01:06:15 -04:00
Rapptz 53685b9b86 Change stderr prints to use the logging module instead 2022-06-13 01:06:15 -04:00
Rapptz 49e683541b Add default logging configuration when using Client.run
While it is possible to do this type of your set up yourself, it's
better for beginners to have logging automatically set up for them.
This has come up often in the help channel over the years. This also
provides an escape hatch to disable it.
2022-06-13 00:30:13 -04:00
Rapptz 768242b00e Fix typo in async with documentation 2022-06-12 16:49:33 -04:00
5d1b63bfee [docs] Add async with documentation for Client
Co-authored-by: Rapptz <1695103+Rapptz@users.noreply.github.com>
2022-06-12 16:06:44 -04:00
Daniel DiazandGitHub 1f053e0a32 [commands] Document argument attribute in BadInviteArgument 2022-06-12 15:36:21 -04:00
SoheabandGitHub e73a805bd7 Add missing data to Argument model 2022-06-12 15:33:08 -04:00
JoshandGitHub c9f777c873 Fix type annotations to adhere to latest pyright release 2022-06-12 15:30:45 -04:00
Rapptz 334ef1d7fa Add support for discord.abc.GuildChannel annotations in app commands 2022-06-11 20:36:15 -04:00
Rapptz d19faa5f32 Raise an exception when wait_until_ready is called without a loop 2022-06-11 20:29:55 -04:00
SoheabandGitHub 3cb90199c9 Remove private legacy cruft from AppCommand models
- Document `options` for AppCommand
- Remove `choices` and `required` from AppCommandGroup
- Rename `arguments` to `options` since it can include `AppCommand` and `AppCommandGroup`.
2022-06-11 13:46:18 -04:00
SoheabandGitHub dd52f856f3 Use static_format over format if present in Asset.replace 2022-06-10 01:50:19 -04:00
KileandGitHub 66a97c6655 Fix typings of deaf and mute in PartialMember 2022-06-10 01:40:33 -04:00
Enes KurbetoğluandGitHub be6db20255 Add on_raw_thread_member_remove event 2022-06-09 01:58:50 -04:00
Alex NørgaardandGitHub 6a58cabf5c Add Guild.create_forum and CategoryChannel.create_forum 2022-06-09 00:56:31 -04:00
willandGitHub ae51d5849a Fix typos in AppCommandPermissions attributes doc 2022-06-07 04:23:22 -04:00
Rapptz 377dde4e4e Change app command permission models guild to not be None 2022-06-07 01:56:44 -04:00
Steve CandGitHub 98ca16ef67 Tweak wording for "less than" Range error
Keeping it consistent!
2022-06-07 01:36:21 -04:00
SoheabandGitHub 3aa55ba1ed Implement Application Command Permissions models 2022-06-07 01:35:33 -04:00
Jakub KuczysandGitHub 4e7529138c [commands] Properly use Optional's default value on parsing error 2022-06-06 20:18:25 -04:00
Rapptz 75d57ab3ce Fix warning in entity_type reassignment 2022-06-06 12:26:05 -04:00
Rapptz 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
Rapptz 9df6aa86c8 Fix state modification endpoints on ScheduledEvent not working
Closes #8114
2022-06-06 08:34:19 -04:00
Rapptz d1039e209e Skip default parameter validation when using a transformer
Fixes #8110
2022-06-05 01:18:16 -04:00
willandGitHub f6a74f74a7 Fix typo in CommandTree.fetch_command's NotFound doc 2022-06-04 03:25:06 -04:00
Enes KurbetoğluandGitHub 06c1f44d74 Add on_raw_thread_update event 2022-06-03 04:49:32 -04:00
SoheabandGitHub af265dba06 Add CommandTree.fetch_command 2022-06-03 04:46:20 -04:00
NickyuxandGitHub 823d650e97 Update comments in CommandTree to reflect commands v2 2022-06-01 02:38:20 -04:00
AndyandGitHub 6a4d5eef52 Fix documentation errors in discord.Invite and on_integration_update 2022-06-01 02:36:51 -04:00
nickofolasandGitHub 59ebfefbf4 Use __getitem__ to access channel_id in MessageReference payloads 2022-06-01 02:32:42 -04:00
Rapptz e543abd950 Add support for new thread_name parameter in Webhook.send 2022-05-31 18:25:26 -04:00
Rapptz 259c6733a3 Add webhook creation methods to ForumChannel 2022-05-31 18:15:54 -04:00
Rapptz 0b026b1283 Elaborate on rename decorator behaviour 2022-05-31 18:14:31 -04:00
Rapptz 36f039a1bf [commands] Fix interaction baton not being set during Context creation 2022-05-30 08:50:19 -04:00
Harshal LaheriandGitHub 67066937c5 Add return type for __init__ and _from_data 2022-05-30 08:48:56 -04:00
I. AhmadandGitHub f82ec46acf Use json_or_text helper for parsing webhook responses 2022-05-30 08:48:36 -04:00
Sebastian LawandGitHub f24f34e3f1 Remove unused internal bot_token attribute 2022-05-28 23:48:02 -04:00
z03handGitHub 53694724c1 Add emoji property to SelectOption 2022-05-28 23:47:19 -04:00
Rapptz 4c74523794 Fix versionadded docstrings in voice connect methods 2022-05-27 04:15:23 -04:00
Rapptz cf031f71b9 Add a new extlink for discord documentation 2022-05-27 04:05:01 -04:00
Rapptz 081f483a0d Fix tree not properly accounting for override when checking limits 2022-05-25 23:40:20 -04:00
Sebastian LawandGitHub f19f51f771 Use positional args for internal thread methods 2022-05-25 05:17:21 -04:00
apple502jandGitHub 69b4d9a4fa Fix exception description of WelcomeScreen.edit 2022-05-24 12:07:23 -04:00
apple502jandGitHub 4cbe8f58e1 Fix parameter docs of WelcomeScreen.edit 2022-05-24 11:27:52 -04:00
zephyrkulandGitHub 78a026aae2 Add remaining bitwise operators to Flags 2022-05-23 21:58:46 -04:00