Files
discordeno/plugins/validations
LTS20050703 17132aaf61 feat(helpers): add stickers helpers (#2466)
* helpers: add stickers helpers

* deno fmt

* undo move getNitroStickerPack to stickers

* helpers/stickers: fix jsdocs

* plugins/permissions: check stickers permissions

* plugins/validations: validate stickers stuff

* tests: stickers unit tests

* helpers/stickers: add support for reason

* plugins/permissions: MANAGE_EMOJIS -> MANAGE_EMOJIS_AND_STICKERS

* tests/stickers: delete sticker after test
createGuildSticker: add send sticker test
getGuildStickers: create another sticker then test > 1 stickers
2022-09-22 11:31:41 -04:00
..
2022-09-12 08:57:59 -05:00
2022-09-12 08:57:59 -05:00

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

// 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);