diff --git a/TypeScript/cooldown.ts b/TypeScript/cooldown.ts index 3d4bf59..63dfc8e 100644 --- a/TypeScript/cooldown.ts +++ b/TypeScript/cooldown.ts @@ -7,10 +7,12 @@ * @example * ```ts * import { cooldown } from "../plugins/cooldown"; - * import { sernModule, CommandType } from "@sern/handler"; + * import { commandModule } from "@sern/handler"; * export default commandModule({ - * plugins: [cooldown.add( [ ['channel', '1/4'] ] )], // limit to 1 action every 4 seconds per channel - * execute: (ctx) => {} + * plugins: [cooldown.add( [ ['channel', '1/4'] ] )], // limit to 1 action every 4 seconds per channel + * execute: (ctx) => { + * //your code here + * } * }) * ``` */ diff --git a/TypeScript/dmOnly.ts b/TypeScript/dmOnly.ts index 90761a4..4294b6f 100644 --- a/TypeScript/dmOnly.ts +++ b/TypeScript/dmOnly.ts @@ -4,14 +4,15 @@ * * @author @EvolutionX-10 [<@697795666373640213>] * @version 1.0.0 - * @requires `partials: [Partials.Channel], intents: [GatewayIntentBits.DirectMessages, GatewayIntentBits.MessageContent] * @example * ```ts - * import { dmOnly } from "../path/to/your/plugin/folder"; + * import { dmOnly } from "../plugins/dmOnly"; * import { commandModule } from "@sern/handler"; * export default commandModule({ - * plugins: [dmOnly()], - * execute: // your code + * plugins: [dmOnly()], + * execute: (ctx) => { + * //your code here + * } * }) * ``` */ diff --git a/TypeScript/nsfwOnly.ts b/TypeScript/nsfwOnly.ts index 4a7b97c..163d1be 100644 --- a/TypeScript/nsfwOnly.ts +++ b/TypeScript/nsfwOnly.ts @@ -6,13 +6,13 @@ * @version 1.0.0 * @example * ```ts - * import { nsfwOnly } from "../plugins/nsfwOnly"; //(change if need be) + * import { nsfwOnly } from "../plugins/nsfwOnly"; * import { sernModule, CommandType } from "@sern/handler"; * export default commandModule({ - * plugins: [ nsfwOnly('response', true/false) ], - * execute: (ctx) => { - * //your code here - * } + * plugins: [ nsfwOnly('response', true/false) ], + * execute: (ctx) => { + * //your code here + * } * }) * ``` */ diff --git a/TypeScript/ownerOnly.ts b/TypeScript/ownerOnly.ts index 1e5aa0e..5a5ef42 100644 --- a/TypeScript/ownerOnly.ts +++ b/TypeScript/ownerOnly.ts @@ -6,10 +6,13 @@ * @version 1.0.0 * @example * ```ts - * import { ownerOnly } from "../path/to/your/plugin/folder"; - * import { sernModule, CommandType } from "@sern/handler"; - * export default sernModule([OwnerOnly()], { - * // your code + * import { ownerOnly } from "../plugins/ownerOnly"; + * import { commandModule } from "@sern/handler"; + * export default commandModule({ + * plugins: [ ownerOnly() ], + * execute: (ctx) => { + * //your code here + * } * }) * ``` */ diff --git a/TypeScript/permCheck.ts b/TypeScript/permCheck.ts index f850528..1a67372 100644 --- a/TypeScript/permCheck.ts +++ b/TypeScript/permCheck.ts @@ -6,13 +6,13 @@ * @version 1.0.1 * @example * ```ts - * import { permCheck } from "../plugins/permCheck"; //(change if need be) + * import { permCheck } from "../plugins/permCheck"; * import { sernModule, CommandType } from "@sern/handler"; * export default commandModule({ - * plugins: [ permCheck('permission', 'No permission response') ], - * execute: (ctx) => { - * //your code here - * } + * plugins: [ permCheck('permission', 'No permission response') ], + * execute: (ctx) => { + * //your code here + * } * }) * ``` */ diff --git a/TypeScript/publish.ts b/TypeScript/publish.ts index 00e5cd9..d39a5da 100644 --- a/TypeScript/publish.ts +++ b/TypeScript/publish.ts @@ -6,10 +6,13 @@ * @version 1.1.0 * @example * ```ts - * import { publish } from "../path/to/your/plugin/folder"; - * import { sernModule, CommandType } from "@sern/handler"; - * export default sernModule([publish()], { // put guild id in array for guild commands - * // your code + * import { publish } from "../plugins/publish"; + * import { commandModule } from "@sern/handler"; + * export default commandModule({ + * plugins: [ publish() ], // put an array of guild ids for guild commands + * execute: (ctx) => { + * //your code here + * } * }) * ``` */