Skip to main content
Module

x/discord_api_types/utils/v10.ts>isLinkButton

Up to date Discord API Typings, versioned by the API version
Go to Latest
function isLinkButton
import { isLinkButton } from "https://deno.land/x/discord_api_types@0.37.42/utils/v10.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