@sapphire/plugin-subcommands 2.0.2-next.9bff8fe3.0 → 2.0.2-next.e9f0692c.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,7 +19,7 @@ export declare namespace SubCommandEntry {
|
|
|
19
19
|
* @property input Input represents the subcommand that the user will type in.
|
|
20
20
|
* @property output Output represents the method/command called for the subcommand.
|
|
21
21
|
* @example
|
|
22
|
-
* ```
|
|
22
|
+
* ```typescript
|
|
23
23
|
* subCommands: [{
|
|
24
24
|
* input: ({ message }) => message.resolveKey('subcommands:set'),
|
|
25
25
|
* output: 'set'
|
|
@@ -3,7 +3,7 @@ import { SubCommandEntry } from './SubCommandEntry';
|
|
|
3
3
|
/**
|
|
4
4
|
* SubCommandEntryCommand uses other commands as the caller function for subcommands.
|
|
5
5
|
* @example
|
|
6
|
-
* ```
|
|
6
|
+
* ```typescript
|
|
7
7
|
* // here, using `command set` would call the command `modify-settings`.
|
|
8
8
|
* subCommands: [{
|
|
9
9
|
* input: 'set',
|
|
@@ -6,7 +6,7 @@ const SubCommandEntry_1 = require("./SubCommandEntry");
|
|
|
6
6
|
/**
|
|
7
7
|
* SubCommandEntryCommand uses other commands as the caller function for subcommands.
|
|
8
8
|
* @example
|
|
9
|
-
* ```
|
|
9
|
+
* ```typescript
|
|
10
10
|
* // here, using `command set` would call the command `modify-settings`.
|
|
11
11
|
* subCommands: [{
|
|
12
12
|
* input: 'set',
|
|
@@ -4,7 +4,7 @@ import { SubCommandEntry } from './SubCommandEntry';
|
|
|
4
4
|
* SubCommandEntryMethods support method names as subcommand functions. All methods must be on the **same** class.
|
|
5
5
|
* For splitting sub-commands into different commands, see {@link SubCommandEntryCommand}
|
|
6
6
|
* @example
|
|
7
|
-
* ```
|
|
7
|
+
* ```typescript
|
|
8
8
|
* export class extends SubCommandPluginCommand {
|
|
9
9
|
* public constructor(context: PieceContext) {
|
|
10
10
|
* super(context, {
|
|
@@ -6,7 +6,7 @@ const SubCommandEntry_1 = require("./SubCommandEntry");
|
|
|
6
6
|
* SubCommandEntryMethods support method names as subcommand functions. All methods must be on the **same** class.
|
|
7
7
|
* For splitting sub-commands into different commands, see {@link SubCommandEntryCommand}
|
|
8
8
|
* @example
|
|
9
|
-
* ```
|
|
9
|
+
* ```typescript
|
|
10
10
|
* export class extends SubCommandPluginCommand {
|
|
11
11
|
* public constructor(context: PieceContext) {
|
|
12
12
|
* super(context, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/plugin-subcommands",
|
|
3
|
-
"version": "2.0.2-next.
|
|
3
|
+
"version": "2.0.2-next.e9f0692c.0",
|
|
4
4
|
"description": "Plugin for @sapphire/framework that adds support for subcommands.",
|
|
5
5
|
"author": "@sapphire",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "e9f0692cc886d877daf6c123f68f710456ff73de"
|
|
59
59
|
}
|