Files
discordeno/plugins/permissions
Skillz4Killz ccd8506c81 Auto mod blame wolf (#2267)
* feat(meister): add automod

* fix(test); rest error with code

* fix(rest): log error nicely

* fix(test): disable benchmark test until gateway rewrite

* fix(automod): enum should start with 1

* fix(helper): better undefined handling of metadata

* fix(transfomrers): automod transformers

* fix(tests): add some automod tests

* Update types/shared.ts

Co-authored-by: meister03 <69507874+meister03@users.noreply.github.com>

* fix: changes discord made recently

* fix(fmt): i hate deno fmt but i love itoh

Co-authored-by: meister03 <69507874+meister03@users.noreply.github.com>
Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>
2022-06-15 11:25:53 -04:00
..
2022-06-15 11:25:53 -04:00
2022-01-26 19:02:34 +01:00
2022-02-04 15:00:04 +01:00

permissions-plugin

This is an official plugin maintained by Discordeno. This plugin provides automatic permission checking and useful permission checking utility functions. Highly recommended to install this plugin for all users as you can use the utility functions. Enabling the permission plugin should not be done for big bot developers as it requires the cache plugin which will not work in a performance optimized fashion. This is designed mainly for the small beginner devs.

Requirements

Usage

// MOVE TO DEPS.TS AND USE SPECIFIC VERSION
import enableCachePlugin from "https://deno.land/x/discordeno_cache_plugin/mod.ts";
import enablePermissionPlugin from "https://deno.land/x/discordeno_permission_plugin/mod.ts";

// Create the bot object, THIS WILL NEED YOUR OPTIONS.
const bot = createBot({});
// REQUIRED: Enables the cache plugin on this bot
enableCachePlugin(bot);
// Enables the permission plugin on this bot
enablePermissionPlugin(bot);
// Start your bot
await startBot(bot);