mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-06-04 01:40:10 +00:00
refactor: rename isStyledButton to isInteractionButton (#158)
BREAKING CHANGE: The `isStyledButton` util has been renamed to `isInteractionButton`
This commit is contained in:
@@ -98,6 +98,6 @@ export function isLinkButton(component: APIButtonComponent): component is APIBut
|
||||
* @param button The button to check against
|
||||
* @returns A boolean that indicates if the button has a `custom_id` attached to it
|
||||
*/
|
||||
export function isStyledButton(component: APIButtonComponent): component is APIButtonComponentWithCustomID {
|
||||
export function isInteractionButton(component: APIButtonComponent): component is APIButtonComponentWithCustomID {
|
||||
return component.style !== ButtonStyle.Link;
|
||||
}
|
||||
|
||||
@@ -98,6 +98,6 @@ export function isLinkButton(component: APIButtonComponent): component is APIBut
|
||||
* @param button The button to check against
|
||||
* @returns A boolean that indicates if the button has a `custom_id` attached to it
|
||||
*/
|
||||
export function isStyledButton(component: APIButtonComponent): component is APIButtonComponentWithCustomID {
|
||||
export function isInteractionButton(component: APIButtonComponent): component is APIButtonComponentWithCustomID {
|
||||
return component.style !== ButtonStyle.Link;
|
||||
}
|
||||
|
||||
@@ -98,6 +98,6 @@ export function isLinkButton(component: APIButtonComponent): component is APIBut
|
||||
* @param button The button to check against
|
||||
* @returns A boolean that indicates if the button has a `custom_id` attached to it
|
||||
*/
|
||||
export function isStyledButton(component: APIButtonComponent): component is APIButtonComponentWithCustomID {
|
||||
export function isInteractionButton(component: APIButtonComponent): component is APIButtonComponentWithCustomID {
|
||||
return component.style !== ButtonStyle.Link;
|
||||
}
|
||||
|
||||
@@ -98,6 +98,6 @@ export function isLinkButton(component: APIButtonComponent): component is APIBut
|
||||
* @param button The button to check against
|
||||
* @returns A boolean that indicates if the button has a `custom_id` attached to it
|
||||
*/
|
||||
export function isStyledButton(component: APIButtonComponent): component is APIButtonComponentWithCustomID {
|
||||
export function isInteractionButton(component: APIButtonComponent): component is APIButtonComponentWithCustomID {
|
||||
return component.style !== ButtonStyle.Link;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user