-
Notifications
You must be signed in to change notification settings - Fork 149
feat: update the message pin endpoints #1306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
9e104db
implement the new pin endpoints
Snipy7374 e162b3f
pass messageable to the async iterator instead of the channel object
Snipy7374 ea2c0a3
fix before behaviour
Snipy7374 55ffca7
fix type check
Snipy7374 a9da445
add changelog entries
Snipy7374 843a07e
update changelog entry
Snipy7374 20b5c06
add doc note for passing Snowflake
Snipy7374 5dffc57
remove debugging print
Snipy7374 99644ad
avoid type ignores where possible
Snipy7374 a40b09c
Merge branch 'master' into ft/pins
Snipy7374 2ee3750
Update changelog/1305.feature.rst
Snipy7374 379f269
fix docs
Snipy7374 6c253d5
convert python3.10+ union to Optional
Snipy7374 95a2e99
remove channel_id member
Snipy7374 9d5918e
move channel initialization for pins iterator
Snipy7374 1a02aca
Update disnake/abc.py
Snipy7374 f6881aa
Update disnake/abc.py
Snipy7374 04fdabb
Update disnake/message.py
Snipy7374 7bcba8a
run lint that vi broke with her suggestion
Snipy7374 d9d2bbd
Merge branch 'master' into ft/pins
Snipy7374 0a856e8
Update changelog/1305.feature.rst
Snipy7374 c836e36
Update disnake/abc.py
Snipy7374 2861c48
Update disnake/abc.py
Snipy7374 ec4c144
Update disnake/abc.py
Snipy7374 f589246
Update disnake/http.py
Snipy7374 a818a43
remove handle pinned at method
Snipy7374 8d91fe6
Merge branch 'master' into ft/pins
Snipy7374 2f79f27
Merge branch 'master' into ft/pins
onerandomusername cd6a610
change deprecation notice wording
Snipy7374 ebdc689
Merge branch 'master' into ft/pins
Snipy7374 6fb35ca
mention that now you need the pin_messages permission to pin a message
Snipy7374 36b9fbd
update docstrings about the new pin messages permission
Snipy7374 39ed638
Merge branch 'master' into ft/pins
Snipy7374 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Deprecate awaiting :meth:`.Messageable.pins` in favour of ``async for msg in channel.pins()``. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Update the :meth:`.Messageable.pins`, :meth:`Message.pin` and :meth:`Message.unpin` methods to use the new API endpoints. :meth:`.Messageable.pins` returns now an asynchronous iterator to yield all pinned messages. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.