File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export function isLinkButton(component: APIButtonComponent): component is APIBut
111111 * @returns A boolean that indicates if the button has a `custom_id` attached to it
112112 */
113113export function isInteractionButton ( component : APIButtonComponent ) : component is APIButtonComponentWithCustomId {
114- return component . style !== ButtonStyle . Link ;
114+ return ! [ ButtonStyle . Link , ButtonStyle . Premium ] . includes ( component . style ) ;
115115}
116116
117117// Message Components
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export function isLinkButton(component: APIButtonComponent): component is APIBut
111111 * @returns A boolean that indicates if the button has a `custom_id` attached to it
112112 */
113113export function isInteractionButton ( component : APIButtonComponent ) : component is APIButtonComponentWithCustomId {
114- return component . style !== ButtonStyle . Link ;
114+ return ! [ ButtonStyle . Link , ButtonStyle . Premium ] . includes ( component . style ) ;
115115}
116116
117117// Message Components
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export function isLinkButton(component: APIButtonComponent): component is APIBut
111111 * @returns A boolean that indicates if the button has a `custom_id` attached to it
112112 */
113113export function isInteractionButton ( component : APIButtonComponent ) : component is APIButtonComponentWithCustomId {
114- return component . style !== ButtonStyle . Link ;
114+ return ! [ ButtonStyle . Link , ButtonStyle . Premium ] . includes ( component . style ) ;
115115}
116116
117117// Message Components
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export function isLinkButton(component: APIButtonComponent): component is APIBut
111111 * @returns A boolean that indicates if the button has a `custom_id` attached to it
112112 */
113113export function isInteractionButton ( component : APIButtonComponent ) : component is APIButtonComponentWithCustomId {
114- return component . style !== ButtonStyle . Link ;
114+ return ! [ ButtonStyle . Link , ButtonStyle . Premium ] . includes ( component . style ) ;
115115}
116116
117117// Message Components
You can’t perform that action at this time.
0 commit comments