Fix up docs

This commit is contained in:
Dragory 2020-07-30 13:08:06 +03:00
parent 743a5e9ce4
commit 7909c99a7f
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
35 changed files with 371 additions and 64 deletions

View file

@ -5,6 +5,7 @@ import { GuildPersistedData } from "src/data/GuildPersistedData";
import { GuildLogs } from "src/data/GuildLogs";
import { StoreDataEvt } from "./events/StoreDataEvt";
import { LoadDataEvt } from "./events/LoadDataEvt";
import { trimPluginDescription } from "../../utils";
const defaultOptions: PluginOptions<PersistPluginType> = {
config: {
@ -15,6 +16,15 @@ const defaultOptions: PluginOptions<PersistPluginType> = {
};
export const PersistPlugin = zeppelinPlugin<PersistPluginType>()("persist", {
showInDocs: true,
info: {
prettyName: "Persist",
description: trimPluginDescription(`
Re-apply roles or nicknames for users when they rejoin the server.
Mute roles are re-applied automatically, this plugin is not required for that.
`),
},
configSchema: ConfigSchema,
defaultOptions,