add support for delete_after kwarg for interaction and webhook messages #79
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] = 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.