mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-03 01:20:07 +00:00
27 lines
428 B
TypeScript
27 lines
428 B
TypeScript
let validate = true;
|
|
|
|
/**
|
|
* Enables validators.
|
|
*
|
|
* @returns Whether validation is occurring.
|
|
*/
|
|
export function enableValidators() {
|
|
return (validate = true);
|
|
}
|
|
|
|
/**
|
|
* Disables validators.
|
|
*
|
|
* @returns Whether validation is occurring.
|
|
*/
|
|
export function disableValidators() {
|
|
return (validate = false);
|
|
}
|
|
|
|
/**
|
|
* Checks whether validation is occurring.
|
|
*/
|
|
export function isValidationEnabled() {
|
|
return validate;
|
|
}
|