mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 16:30:08 +00:00
* Plugins/Permissions: FIX PARITY ISSUES What is parity issues? Parity issues are files that exist but structured one way in the base/vanilla discordeno library, and structured another way in the permisison plugin. * deno fmt * plugins/permissions: nuke validations * plugins/permissions VALIDATIONS -> plugins/validations * plugins/validations: slash commands max 4000 chars * fix module not found
19 lines
561 B
Markdown
19 lines
561 B
Markdown
# validations-plugin
|
|
|
|
This is an official plugin maintained by Discordeno. This plugin provides automatic request checking and useful
|
|
validation utility functions. Highly recommended to install this plugin for all users as you can use the utility
|
|
functions.
|
|
|
|
## Usage
|
|
|
|
```ts
|
|
// MOVE TO DEPS.TS AND USE SPECIFIC VERSION
|
|
import { enableValidationsPlugin } from "./deps.ts";
|
|
// Create the bot object, THIS WILL NEED YOUR OPTIONS.
|
|
const bot = createBot({});
|
|
// Enables the plugin on this bot
|
|
enableValidationsPlugin(bot);
|
|
// Start your bot
|
|
await startBot(bot);
|
|
```
|