Deprecated
API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
import { isLinkButton } from "https://deno.land/x/discord_api_types@0.37.56/utils/v8.ts";
A type-guard check for buttons that have a url
attached to them.
Parameters
component: APIButtonComponent
The button to check against
Returns
component is APIButtonComponentWithURL
A boolean that indicates if the button has a url
attached to it