Rapptz
fd9f3e9eff
Update docs with references to text in stage
2023-02-25 03:27:04 -05:00
Rapptz
da4651c97c
Implement Messageable for StageChannel
...
Fix #9248
2023-02-25 03:13:55 -05:00
z03h
e6ef43139f
Don't store finished views/modals
2023-02-13 23:52:40 -05:00
Rapptz
183675be74
Add support for silent messages
2023-02-08 15:40:33 -05:00
Rapptz
887ddbb4b6
Fix implicit permission resolution for Thread
...
Fix #9153
2022-12-29 07:17:41 -05:00
Eta
4122bef8ee
Fix async iterators requesting past their bounds
...
This affects Messageable.history, ScheduledEvent.users,
Client.fetch_guilds, and Guild.audit_logs.
To illustrate the problem, Messageable.history counted returned
messages to tell when to stop iteration, but did so before filtering
away those past the before or after boundaries. When both
oldest_first=False and an after boundary were provided, this led to the
history iterator continuing to retrieve messages older than the after
boundary, which would then all be filtered away, continuing until the
message limit or the beginning of the entire channel was reached.
A similar situation would also occur with oldest_first=True and a
before boundary provided.
This commit changes the logic in these methods to count items after
filtering, so they stop requesting more as soon as the in-bounds items
are exhausted.
2022-11-27 01:43:24 -05:00
Sebastian Law
7b595fb052
Fix docstring for create_invite
2022-09-26 02:14:31 -04:00
Steve C
ce06beeb6c
Fix permissions-based docstrings to be more consistent
2022-09-17 14:07:39 -04:00
Ionite
6981eb69c4
Normalize type formatting in TypeError
...
Normalize most mixed usages of `__class__`, `__class__!r`,
`__class__.__name__!r` to the standard form of
`__class__.__name__`
2022-09-12 15:25:55 -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
5fe54b3ae6
Remove __slots__ from abc protocols
...
Fix #8354
2022-08-19 19:10:19 -04:00
Rapptz
6381b5a8f4
Change abc.GuildChannel.overwrites to have Object keys if cache failed
...
Ultimately despite it not being the prettiest, Object keys ended up
being the sanest solution to this without destroying ergonomics.
2022-08-06 14:46:52 -04:00
Bryan Forbes
d707019348
Bump Pyright to 1.1.265, fix type errors, and remove unnecessary ignores
2022-08-04 22:46:02 -04:00
ow0x
52f3a3496b
Update docs for abc.Messageable.pins()
2022-07-17 01:07:33 -04:00
Rapptz
5de9287902
Change abc.PrivateChannel to be a proper subclass
...
This fixes isinstance(thread, discord.abc.PrivateChannel) from
returning True
2022-07-04 05:48:02 -04:00
Rapptz
96e6261d61
Change default for purge oldest_first to match history
2022-06-13 04:54:08 -04:00
Rapptz
4c74523794
Fix versionadded docstrings in voice connect methods
2022-05-27 04:15:23 -04:00
Rapptz
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
Rapptz
04f5fcf741
Fix Connectable.connect typing having bad inference if cls is missing
2022-05-16 15:34:51 -04:00
NextChai
300fb0411e
Replace trigger_typing with awaiting typing context manager
2022-05-02 04:36:18 -04:00
PythonCoderAS
fedfe5bec2
Add PartialChannel to list of implementing classes for Messageable
2022-05-01 13:05:07 -04:00
Harshal Laheri
89eb86ecdc
Add return type for __init__
2022-04-25 02:00:27 -04:00
Rapptz
69b12b97c0
Sync abc.User protocol with more shared methods
...
This isn't *all* of them but it's a sizeable portion
2022-04-23 03:00:46 -04:00
Rapptz
ab33551553
Fix type hints on GuildChannel.set_permissions
2022-04-22 04:50:10 -04:00
Vaskel
89b9f1616c
Add self_deaf and self_mute params to voice connect methods
2022-04-14 19:06:22 -04:00
Omkaar
1e4908b403
Add ForumChannel to abc.GuildChannel docstring
2022-04-12 04:55:56 -04:00
Omkaar
348764583d
Add jump_url property to channels
2022-04-12 00:23:15 -04:00
Rapptz
c284145f18
Add and remove some versionadded directives
2022-04-10 17:12:56 -04:00
Rapptz
23f6876492
Add initial support for forum channels
...
Closes #7652
2022-04-06 23:02:58 -04:00
UltimateSppy765
3378435bf0
Update abc.Messageable docs to show VoiceChannel
2022-04-03 06:32:40 -04:00
Rapptz
2aca705b95
Add support for sending messages and managing webhooks in VoiceChannel
2022-04-02 11:14:03 -04:00
Rapptz
a5f1c2f592
Take into consideration member timeouts in permission calculations
2022-04-01 09:32:54 -04:00
jack1142
5ffa3e85de
Update comments after # type: ignore
to be compatible with PEP 484
2022-03-27 22:26:34 -04:00
Josh
e01d4a31eb
Replace invariant container types with wider types where applicable
2022-03-17 07:26:01 -04:00
Stocker
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
chromacoat dreamkey
095aaa9ad1
Change wording of InvalidArgument removal in docs
2022-03-11 23:25:43 -05:00
Rapptz
4b2c2b231d
Fix type checker errors in Connectable and Messageable
2022-03-07 18:05:43 -05:00
Alex Nørgaard
7ff6850f17
Fix abc.User protocol requirements
2022-03-07 02:15:46 -05:00
Sebastian Law
1dccd70b05
Fix refs to abc.Connectable.connect
2022-03-06 18:46:10 -05:00
Sebastian Law
4a5057551a
Fix typo in circular comment
2022-03-05 22:59:48 -05:00
Stocker
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
Josh
147948af9b
Use typing.Self throughout library
2022-03-01 07:53:24 -05:00
Josh
2b69b5d545
Remove discord.InvalidArgument
...
This uses TypeError and ValueError instead.
2022-02-26 01:44:49 -05:00
Rapptz
0ed745f5ae
Remove regular context manager support from Typing
2022-02-23 16:05:08 -05:00
Rapptz
d01e73fca5
Document more uses of type ignore
2022-02-21 23:08:26 -05:00
Rapptz
c7c6d74d8d
Fix type errors in the abc module
2022-02-21 22:38:36 -05:00
Kaylynn Morgan
588cda0996
Refactor AsyncIter to use 3.6+ asynchronous generators
2022-02-19 21:58:13 -05:00
jack1142
dc19c6c7d5
Add positional-only arguments in more places
2022-02-19 20:28:01 -05:00
jack1142
de85eacbf5
Remove incorrect note about isinstance check for abc.Connectable
2022-02-18 20:35:54 -05:00
Rapptz
9c066a8cf6
Refactor internal message sending and editing parameter passing
...
This reduces some repetition in many functions and is ripped out of
the webhook code. This also removes the unused HTTP functions for
interaction responses since those belong in the webhook code rather
than the HTTPClient.
2022-02-18 07:47:59 -05:00