Added settings info
This commit is contained in:
parent
cf71e5a01d
commit
9c91386c8d
1 changed files with 32 additions and 1 deletions
33
index.tsx
33
index.tsx
|
@ -4,11 +4,42 @@
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { ApplicationCommandInputType, ApplicationCommandOptionType } from "@api/Commands";
|
||||||
import { Devs } from "@utils/constants";
|
import { Devs } from "@utils/constants";
|
||||||
import definePlugin from "@utils/types";
|
import definePlugin from "@utils/types";
|
||||||
|
import { Forms } from "@webpack/common";
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "InRole",
|
name: "InRole",
|
||||||
description: "Know who is in a role",
|
description: "Know who is in a role (read plugin info!)",
|
||||||
authors: [Devs.nin0dev],
|
authors: [Devs.nin0dev],
|
||||||
|
settingsAboutComponent: () => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Forms.FormText style={{ fontSize: "1.2rem", marginTop: "15px", fontWeight: "bold" }}>⚠️ Limitations</Forms.FormText>
|
||||||
|
<Forms.FormText style={{ marginTop: "10px", fontWeight: "500" }} >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:</Forms.FormText>
|
||||||
|
<Forms.FormText>- Offline members won't be listed</Forms.FormText>
|
||||||
|
<Forms.FormText>- Up to 100 members will be listed by default. To get more, scroll down in the member list to load more members.</Forms.FormText>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue