Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/harmony/src/interactions/mod.ts>customValidation

An easy to use Discord API Library for Deno.
Go to Latest
function customValidation
import { customValidation } from "https://deno.land/x/harmony@v2.8.0/src/interactions/mod.ts";

Cusomizable command validation.

Parameters

condition: CommandValidationCondition

condition that need to succede for the command to be called

message: string

message or function called when the condition is not met

Returns

ApplicationCommandDecorator

wrapped function

Parameters

condition: CommandValidationCondition

Returns

ApplicationCommandDecorator