refactor: rename isStyledButton to isInteractionButton (#158)

BREAKING CHANGE: The `isStyledButton` util has been renamed to `isInteractionButton`
This commit is contained in:
Advaith
2021-07-19 14:43:48 -07:00
committed by GitHub
parent ecaf52008b
commit 634f64d4ce
4 changed files with 4 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}