Nadir Chowdhury
8f9819eb4c
[docs] Fix various unresolved references
4 years ago
pikaninja
ffea48f218
[commands] Remove HelpCommand.clean_prefix ( #6736 )
4 years ago
Rapptz
90d59bb06c
Fix overloads on Webhook.send to not require wait kwarg
4 years ago
Rapptz
0542b129c2
Fix WebhookMessage.edit documentation
4 years ago
Rapptz
1f74b051a8
Fix rate limit handling with retry_after precision change
4 years ago
Rapptz
a6f7213c89
Rewrite webhooks to play better with typings and rate limits
This unfortunately required splitting the types into two. This led to
a lot of unfortunate code duplication that I didn't really enjoy
writing.
The new design allows users to pass an authentication token to make
webhook requests without the webhook token and allows to finally
edit the webhook channel.
The new design also uses a contextvar to store rate limiting
information so multiple instances or recreating instances no longer
clears the ratelimiting state since it's now essentially a "global"
object.
Closes #6525 , closes #6662 , closes #2509 , closes #1761
4 years ago
Nadir Chowdhury
5ea5f32479
[commands] Fix missing `re` import in Context
4 years ago
TheOneMusic
d21e65ce47
Add SystemChannelFlags.guild_reminder_notifications
4 years ago
Steve C
65d48302ad
Fix guild.chunk() not working on evicted guilds
If you're trying to chunk a guild that the bot is not in,
it'll just hang on the chunk coro forever. It's weird, I know.
4 years ago
MrKomodoDragon
ed3c141f5e
[commands] Add `clean_prefix` attribute to commands.Context
4 years ago
numbermaniac
208b16ed1b
Add note to member docs about Spotify limitation
4 years ago
apple502j
9f1a96ea9b
Remove fetch_offline_members param for Client
4 years ago
Maya
930c416ea7
Fix exception for invalid channel types
4 years ago
Rapptz
da6119e04c
Fix fail_if_not_exists not being set when constructed with state
4 years ago
Robin
30310b9ab6
Add NSFW for Guilds
4 years ago
apple502j
dea92a69dc
Remove support for guild subscriptions
4 years ago
pikaninja
23aaa75802
Add StageChannel to abc.GuildChannel docs
4 years ago
Kino
496fcf8005
[docs] Fix reference to `Guild.id`
4 years ago
Rapptz
a8da7d03b9
Remove AutoShardedClient.request_offline_members
4 years ago
Rapptz
ef4394f87d
Add support for role objects in GuildChannel.permissions_for
4 years ago
Rapptz
1209585de5
Remove User.permissions_in
This seemed to only cause confusion.
4 years ago
Rapptz
a8b3cfa592
Remove comment that doesn't apply anymore
4 years ago
Rapptz
9b94fe1ce0
Remove superfluous unused payload parameter
4 years ago
Rapptz
7bdaa793f6
Create temporary DMChannels from message create events
This allows for DMChannels to work without falling back to the
Object error case since there is enough information to build a pseudo
DMChannel object.
This is a breaking change since it changes the type of
DMChannel.recipient to Optional[User] for when this faux object is
created.
4 years ago
Maya
0f3f2cbeea
Fix spelling error in utils.__all__
4 years ago
Rapptz
74b07a3218
[commands] Fix Command.clean_params to return a regular dict
4 years ago
Kreusada
af5964358d
[commands] Strip text to remove spaces before ellipsis
4 years ago
Nadir Chowdhury
7cbe942a64
Use v8 overwrite type when creating a channel
4 years ago
Nadir Chowdhury
f1fac96e33
Remove `private_channel_(delete/create)` events
4 years ago
Rapptz
74d8ad2013
[commands] Add support for Python 3.10 Union typing
4 years ago
Rapptz
1ecadf057e
[commands] Fix errors with cooldown mappings
4 years ago
Rapptz
7d79b4ba55
Remove Member related handling in PRESENCE_UPDATE
4 years ago
Rapptz
217c2a1cc5
Fix stray AttributeError in Guild._from_data with member cache
4 years ago
Rapptz
40cf397ce6
Permission related fixes for v8
4 years ago
NCPlayz
4c565e5299
add reply and application_command types
4 years ago
Rapptz
7afcacc9a1
Remove MemberCacheFlags.online
v8 no longer gives enough data for this to be possible
4 years ago
Rapptz
d85805ab6d
First pass at supporting v8 API
4 years ago
Josh
7f91ae8b67
[commands] use __args__ and __origin__ where applicable
4 years ago
Josh
c54c4cb215
[commands] Fix repr for Greedy
4 years ago
Rapptz
3151672cfe
[commands] Refactor typing evaluation to not use get_type_hints
get_type_hints had a few issues:
1. It would convert = None default parameters to Optional
2. It would not allow values as type annotations
3. It would not implicitly convert some string literals as ForwardRef
In Python 3.9 `list['Foo']` does not convert into
`list[ForwardRef('Foo')]` even though `typing.List` does this
behaviour. In order to streamline it, evaluation had to be rewritten
manually to support our usecases.
This patch also flattens nested typing.Literal which was not done
until Python 3.9.2.
4 years ago
Rapptz
27886e5aa4
[commands] Remove legacy ExtensionNotFound.original attribute
4 years ago
Rapptz
d5ad269b35
Fix Intents resolution in the docs
4 years ago
Rapptz
42c3ee6eed
Bring back discord module in discord.ext.commands documentation
4 years ago
Rapptz
8e299e80f8
Update Sphinx to 3.5.3
4 years ago
Rapptz
296bd069c1
Remove current module reference in commands API docs
4 years ago
Nadir Chowdhury
b20e92efd8
[docs] Fix references to Greedy
4 years ago
Nadir Chowdhury
353737239a
[commands] Minimise code duplication in channel converters
4 years ago
TheOneMusic
ec71eb2fcb
Added discord.StageChannel in documentation
4 years ago
James
bcd3a00eaf
[commands] Make `commands.Greedy` a `typing.Generic`
4 years ago
jack1142
4fee632526
Make the style of external and internal cross-references consistent
4 years ago