Eager-check permissions in persist plugin

This commit is contained in:
Dragory 2020-08-21 03:58:49 +03:00
parent 6730e51552
commit e55375fb25
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
2 changed files with 35 additions and 1 deletions

View file

@ -6,6 +6,7 @@ import { GuildLogs } from "src/data/GuildLogs";
import { StoreDataEvt } from "./events/StoreDataEvt";
import { LoadDataEvt } from "./events/LoadDataEvt";
import { trimPluginDescription } from "../../utils";
import { LogsPlugin } from "../Logs/LogsPlugin";
const defaultOptions: PluginOptions<PersistPluginType> = {
config: {
@ -25,6 +26,7 @@ export const PersistPlugin = zeppelinPlugin<PersistPluginType>()("persist", {
`),
},
dependencies: [LogsPlugin],
configSchema: ConfigSchema,
defaultOptions,