Skip to main content
Module

x/discord_api_types/v9.ts>Utils.isLinkButton

Up to date Discord API Typings, versioned by the API version
Go to Latest
function Utils.isLinkButton
import { Utils } from "https://deno.land/x/discord_api_types@0.37.30/v9.ts";
const { isLinkButton } = Utils;

A type-guard check for buttons that have a url attached to them.

Parameters

The button to check against

Returns

A boolean that indicates if the button has a url attached to it