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

Specialize InteractionCreateEvent #1777

Open
1 task done
davfsa opened this issue Dec 7, 2023 · 0 comments
Open
1 task done

Specialize InteractionCreateEvent #1777

davfsa opened this issue Dec 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@davfsa
Copy link
Member

davfsa commented Dec 7, 2023

Summary

Specialize InteractionCreateEvent into the different interaction types, similar how MessageCreateEvent is specialized for guilds and dms

Why is this needed?

Nicer DX

Ideal implementation

Provide more concrete subclasses with correct typing for interaction.

Checklist

  • I have searched the issue tracker and have made sure it's not a duplicate. If it is a follow up of another issue, I have specified it.
@davfsa davfsa added the enhancement New feature or request label Dec 7, 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

1 participant