Racooder
DIAdiscord.js - Imagine an app
•Created by Racooder on 12/8/2023 in #djs-questions
Extending a interface and changing the property type to a extending type
I have a interface
Component
with a property interaction
with the type MessageComponentInteraction
.
In my second interface ButtonComponent
I want to override the type of interaction
to the extending type ButtonInteraction
.
Is that possible?2 replies