add support for delete_after kwarg for interaction and webhook messages #79
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "ethanolchik/2.0"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
adds a
delete_message: Optional[float] = None
kwarg tointeraction.send_message
andWebhook.send
.adds a
delay: Optional[float] = None
parameter toInteraction.delete_original_message
.note:
delete_after
forWebhook.send
will only work ifwait
kwarg 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
await
If you are modifying this to use delay in
delete_original_message
this shouldn't be in a task.If you are modifying this to use delay in
delete_message
this 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.
Checkout
From your project repository, check out a new branch and test the changes.