adds a delete_message: Optional[float] = None kwarg to interaction.send_message and Webhook.send.
adds a delay: Optional[float] = None parameter to Interaction.delete_original_message.
note: delete_after for Webhook.send will only work if wait kwarg is True.
Checklist
If code changes were made then they have been tested.
I have updated the documentation to reflect the changes.
This PR fixes an issue.
This PR adds something new (e.g. new method or parameters).
This PR is a breaking change (e.g. methods or parameters removed/renamed)
This PR is not a code change (e.g. documentation, README, ...)
<!-- Pull requests that do not fill this information in will likely be closed -->
## Summary
adds a `delete_message: Optional[float] = None` kwarg to `interaction.send_message` and `Webhook.send`.
adds a `delay: Optional[float] = None` parameter to `Interaction.delete_original_message`.
note: `delete_after` for `Webhook.send` will only work if `wait` kwarg is `True`.
## Checklist
- [x] If code changes were made then they have been tested.
- [x] I have updated the documentation to reflect the changes.
- [ ] This PR fixes an issue.
- [x] This PR adds something new (e.g. new method or parameters).
- [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
- [ ] This PR is **not** a code change (e.g. documentation, README, ...)
Gnome-py
(Migrated from github.com)
requested changes 2021-10-01 16:15:58 +00:00
Gnome-py
(Migrated from github.com)
left a comment
Copy Link
Copy Source
Good idea, however needs to be reworked to act more like delete_after in Message.delete
Good idea, however needs to be reworked to act more like delete_after in ``Message.delete``
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
adds a
delete_message: Optional[float] = Nonekwarg tointeraction.send_messageandWebhook.send.adds a
delay: Optional[float] = Noneparameter toInteraction.delete_original_message.note:
delete_afterforWebhook.sendwill only work ifwaitkwarg isTrue.Checklist
Good idea, however needs to be reworked to act more like delete_after in
Message.delete@@ -354,2 +362,4 @@"""if delay is not None:await asyncio.sleep(delay)adapter = async_context.get()This is not done in the background as the docs say, please make it do.
Needs
awaitIf you are modifying this to use delay in
delete_original_messagethis shouldn't be in a task.If you are modifying this to use delay in
delete_messagethis shouldn't be in a task.This is not done in the background as the docs say, please make it do.
@ethanolchik Please do the requested changes above.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.