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

fix: address error logging regression #204

Merged
merged 4 commits into from
Oct 25, 2022

Conversation

StaticRocket
Copy link
Contributor

@StaticRocket StaticRocket commented Oct 17, 2022

Potential solution to #203

This makes create_embed_response clobber previous responses by default. I believe this approach is closer to intended behavior, but an alternative that some might like better is if instead of clobbering the original response it posts as a followup. Looking for feedback here.

I almost wish serenity bit the bullet here and tracked whether an interaction received a response locally. Unfortunately this was the nicest way to do this without adding another call to the discord api.

@StaticRocket
Copy link
Contributor Author

@aquelemiguel any input on this since it is more of ideological dilemma?

@aquelemiguel
Copy link
Owner

Hi @StaticRocket, as always thank you for your love for the project. I haven't been active on here for a while, I need a bit to recontextualize myself. I'll get back to you this week still. 🙂

src/utils.rs Outdated Show resolved Hide resolved
@aquelemiguel
Copy link
Owner

@StaticRocket Your idea looks good. While we discuss how to handle the errors in @joao-conde's review, personally you can undraft this. 🙂

@StaticRocket StaticRocket marked this pull request as ready for review October 25, 2022 02:21
src/utils.rs Outdated Show resolved Hide resolved
Copy link
Owner

@aquelemiguel aquelemiguel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers @StaticRocket, great work as always. 👏

@aquelemiguel aquelemiguel merged commit 9e738c9 into aquelemiguel:main Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working hacktoberfest-accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants