From 9c91386c8db0ea1fa4b1b267579384bcfdee6e9d Mon Sep 17 00:00:00 2001 From: nin0dev Date: Fri, 26 Jul 2024 09:06:03 -0400 Subject: [PATCH] Added settings info --- index.tsx | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/index.tsx b/index.tsx index 4685062..910eef5 100644 --- a/index.tsx +++ b/index.tsx @@ -4,11 +4,42 @@ * SPDX-License-Identifier: GPL-3.0-or-later */ +import { ApplicationCommandInputType, ApplicationCommandOptionType } from "@api/Commands"; import { Devs } from "@utils/constants"; import definePlugin from "@utils/types"; +import { Forms } from "@webpack/common"; export default definePlugin({ name: "InRole", - description: "Know who is in a role", + description: "Know who is in a role (read plugin info!)", authors: [Devs.nin0dev], + settingsAboutComponent: () => { + return ( + <> + ⚠️ Limitations + If you don't have mod permissions on the server, and that server is large (over 100 members), the plugin may be limited in the following ways: + - Offline members won't be listed + - Up to 100 members will be listed by default. To get more, scroll down in the member list to load more members. + + ); + }, + commands: [ + { + name: "inrole", + description: "Block someone", + inputType: ApplicationCommandInputType.BUILT_IN, + options: [ + { + name: "role", + description: "The role", + type: ApplicationCommandOptionType.ROLE, + required: true + }, + ], + execute: (args, ctx) => { + console.log(args); + console.log(ctx); + } + } + ] });