3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

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

@ -6,6 +6,7 @@ import { AddRoleCmd } from "./commands/AddRoleCmd";
import { RemoveRoleCmd } from "./commands/RemoveRoleCmd";
import { MassAddRoleCmd } from "./commands/MassAddRoleCmd";
import { MassRemoveRoleCmd } from "./commands/MassRemoveRoleCmd";
import { trimPluginDescription } from "../../utils";
const defaultOptions: PluginOptions<RolesPluginType> = {
config: {
@ -30,6 +31,14 @@ const defaultOptions: PluginOptions<RolesPluginType> = {
};
export const RolesPlugin = zeppelinPlugin<RolesPluginType>()("roles", {
showInDocs: true,
info: {
prettyName: "Roles",
description: trimPluginDescription(`
Enables authorised users to add and remove whitelisted roles with a command.
`),
},
configSchema: ConfigSchema,
defaultOptions,

View file

@ -8,6 +8,7 @@ import { GuildChannel } from "eris";
export const AddRoleCmd = rolesCmd({
trigger: "addrole",
permission: "can_assign",
description: "Add a role to the specified member",
signature: {
member: ct.resolvedMember(),

View file

@ -8,6 +8,7 @@ import { stripObjectToScalars, verboseUserMention, resolveRoleId } from "src/uti
export const RemoveRoleCmd = rolesCmd({
trigger: "removerole",
permission: "can_assign",
description: "Remove a role from the specified member",
signature: {
member: ct.resolvedMember(),