mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: enableValidationPlugin should return whatever it's passed in (#2463)
This commit is contained in:
@@ -9,7 +9,7 @@ import { misc } from "./src/misc/mod.ts";
|
||||
import { webhooks } from "./src/webhooks/mod.ts";
|
||||
|
||||
// PLUGINS MUST TAKE A BOT ARGUMENT WHICH WILL BE MODIFIED
|
||||
export function enableValidationsPlugin(bot: Bot) {
|
||||
export function enableValidationsPlugin<B extends Bot>(bot: B): B {
|
||||
// MARK THIS PLUGIN BEING USED
|
||||
bot.enabledPlugins.add("VALIDATIONS");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user