Skip to content
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

Delete RespondEmbed? #17

Open
phantium opened this issue Mar 14, 2023 · 1 comment
Open

Delete RespondEmbed? #17

phantium opened this issue Mar 14, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@phantium
Copy link

Hello,

With a RespondEmbed I don’t see that DeleteAfter is available nor do I see a way to delete it in general. Is it still possible to delete it somehow?

Thank you

@zekroTJA
Copy link
Owner

zekroTJA commented Mar 17, 2023

You could delete interaction responses using the InteractionResponseDelete method of the Discordgo Session passing in the Interaction object.

c.GetSession().InteractionResponseDelete(c.GetEvent().Interaction)

Just keep in mind that - afaik - you can not delete ephemeral messages this way because they are technically never sent into a channel.

But yeah, It would make a lot of sense that Respond and RespondEmbed also return a wrapper like with followup messages. I'll keep that in mind when I am working on ken again. :)

@zekroTJA zekroTJA added the enhancement New feature or request label Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants