fix: enableValidationPlugin should return whatever it's passed in (#2463)

This commit is contained in:
LTS20050703
2022-09-13 14:43:18 -05:00
committed by GitHub
parent 8caee2c74b
commit 1bbb992a71
+1 -1
View File
@@ -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");