mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-06-07 16:05:01 +00:00
feat: add 'exclusive' option for role buttons; add documentation for role buttons; mark reaction roles as legacy
This commit is contained in:
parent
05334a772f
commit
784c54b22a
8 changed files with 144 additions and 20 deletions
|
@ -7,10 +7,13 @@ import { GuildRoleButtons } from "../../data/GuildRoleButtons";
|
|||
import { RoleManagerPlugin } from "../RoleManager/RoleManagerPlugin";
|
||||
import { StrictValidationError } from "../../validatorUtils";
|
||||
import { onButtonInteraction } from "./events/buttonInteraction";
|
||||
import { pluginInfo } from "./info";
|
||||
|
||||
export const RoleButtonsPlugin = zeppelinGuildPlugin<RoleButtonsPluginType>()({
|
||||
name: "role_buttons",
|
||||
configSchema: ConfigSchema,
|
||||
info: pluginInfo,
|
||||
showInDocs: true,
|
||||
|
||||
configPreprocessor(options) {
|
||||
// Auto-fill "name" property for buttons based on the object key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue