@sapphire/cli 1.3.2-next.9535c14.0 → 1.3.2-next.a3208e0.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.
- package/README.md +3 -0
- package/package.json +15 -15
- package/templates/components/contextmenucommand.js.sapphire +2 -2
- package/templates/components/contextmenucommand.ts.sapphire +2 -2
- package/templates/components/precondition.js.sapphire +2 -2
- package/templates/components/precondition.ts.sapphire +3 -3
- package/templates/components/slashcommand.js.sapphire +2 -2
- package/templates/components/slashcommand.ts.sapphire +2 -2
package/README.md
CHANGED
|
@@ -59,6 +59,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
59
59
|
<td align="center"><a href="https://github.com/pinkcig"><img src="https://avatars.githubusercontent.com/u/62260409?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Faye Keller</b></sub></a><br /><a href="https://github.com/sapphiredev/cli/commits?author=pinkcig" title="Code">💻</a></td>
|
|
60
60
|
<td align="center"><a href="https://github.com/boingtheboeing"><img src="https://avatars.githubusercontent.com/u/76058130?v=4?s=100" width="100px;" alt=""/><br /><sub><b>boingtheboeing</b></sub></a><br /><a href="#content-boingtheboeing" title="Content">🖋</a></td>
|
|
61
61
|
</tr>
|
|
62
|
+
<tr>
|
|
63
|
+
<td align="center"><a href="https://github.com/BashGuy10"><img src="https://avatars.githubusercontent.com/u/63826227?v=4?s=100" width="100px;" alt=""/><br /><sub><b>bash</b></sub></a><br /><a href="https://github.com/sapphiredev/cli/commits?author=BashGuy10" title="Code">💻</a></td>
|
|
64
|
+
</tr>
|
|
62
65
|
</table>
|
|
63
66
|
|
|
64
67
|
<!-- markdownlint-restore -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/cli",
|
|
3
|
-
"version": "1.3.2-next.
|
|
3
|
+
"version": "1.3.2-next.a3208e0.0",
|
|
4
4
|
"description": "CLI for Sapphire Framework",
|
|
5
5
|
"author": "@sapphire",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,30 +39,30 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@favware/colorette-spinner": "^1.0.1",
|
|
42
|
-
"@sapphire/result": "^2.
|
|
42
|
+
"@sapphire/result": "^2.6.0",
|
|
43
43
|
"colorette": "^2.0.19",
|
|
44
|
-
"commander": "^9.4.
|
|
44
|
+
"commander": "^9.4.1",
|
|
45
45
|
"execa": "^6.1.0",
|
|
46
46
|
"find-up": "^5.0.0",
|
|
47
47
|
"js-yaml": "^4.1.0",
|
|
48
48
|
"prompts": "^2.4.2",
|
|
49
|
-
"tslib": "^2.4.
|
|
49
|
+
"tslib": "^2.4.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@commitlint/cli": "^17.
|
|
53
|
-
"@commitlint/config-conventional": "^17.
|
|
54
|
-
"@favware/cliff-jumper": "^1.8.
|
|
52
|
+
"@commitlint/cli": "^17.2.0",
|
|
53
|
+
"@commitlint/config-conventional": "^17.2.0",
|
|
54
|
+
"@favware/cliff-jumper": "^1.8.8",
|
|
55
55
|
"@favware/npm-deprecate": "^1.0.5",
|
|
56
56
|
"@sapphire/eslint-config": "^4.3.8",
|
|
57
57
|
"@sapphire/prettier-config": "^1.4.4",
|
|
58
58
|
"@sapphire/ts-config": "^3.3.4",
|
|
59
59
|
"@types/js-yaml": "^4.0.5",
|
|
60
|
-
"@types/node": "^18.
|
|
61
|
-
"@types/prompts": "^2.4.
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
63
|
-
"@typescript-eslint/parser": "^5.
|
|
60
|
+
"@types/node": "^18.11.9",
|
|
61
|
+
"@types/prompts": "^2.4.1",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^5.42.0",
|
|
63
|
+
"@typescript-eslint/parser": "^5.42.0",
|
|
64
64
|
"cz-conventional-changelog": "^3.3.0",
|
|
65
|
-
"eslint": "^8.
|
|
65
|
+
"eslint": "^8.26.0",
|
|
66
66
|
"eslint-config-prettier": "^8.5.0",
|
|
67
67
|
"eslint-plugin-prettier": "^4.2.1",
|
|
68
68
|
"globby": "^13.1.2",
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
"prettier": "^2.7.1",
|
|
73
73
|
"pretty-quick": "^3.1.3",
|
|
74
74
|
"ts-node": "^10.9.1",
|
|
75
|
-
"typescript": "^4.8.
|
|
75
|
+
"typescript": "^4.8.4"
|
|
76
76
|
},
|
|
77
77
|
"resolutions": {
|
|
78
78
|
"ansi-regex": "^5.0.1",
|
|
79
|
-
"minimist": "^1.2.
|
|
79
|
+
"minimist": "^1.2.7"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=v16.6.0",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"access": "public"
|
|
118
118
|
},
|
|
119
119
|
"prettier": "@sapphire/prettier-config",
|
|
120
|
-
"packageManager": "yarn@3.2.
|
|
120
|
+
"packageManager": "yarn@3.2.4"
|
|
121
121
|
}
|
|
@@ -26,10 +26,10 @@ class UserCommand extends Command {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* @param {Command.
|
|
29
|
+
* @param {Command.ContextMenuCommandInteraction} interaction
|
|
30
30
|
*/
|
|
31
31
|
async contextMenuRun(interaction) {
|
|
32
|
-
return
|
|
32
|
+
return interaction.reply({ content: 'Hello world!' });
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -16,7 +16,7 @@ export class UserCommand extends Command {
|
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
public async contextMenuRun(interaction: Command.
|
|
20
|
-
return
|
|
19
|
+
public async contextMenuRun(interaction: Command.ContextMenuCommandInteraction) {
|
|
20
|
+
return interaction.reply({ content: 'Hello world!' });
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -11,14 +11,14 @@ class UserPrecondition extends Precondition {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* @param {import('discord.js').
|
|
14
|
+
* @param {import('discord.js').ChatInputCommandInteraction} interaction
|
|
15
15
|
*/
|
|
16
16
|
chatInputRun(interaction) {
|
|
17
17
|
return this.ok();
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* @param {import('discord.js').
|
|
21
|
+
* @param {import('discord.js').ContextMenuCommandInteraction} interaction
|
|
22
22
|
*/
|
|
23
23
|
contextMenuRun(interaction) {
|
|
24
24
|
return this.ok();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{ "category": "preconditions" }
|
|
2
2
|
---
|
|
3
3
|
import { Precondition } from '@sapphire/framework';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ChatInputCommandInteraction, ContextMenuCommandInteraction, Message } from 'discord.js';
|
|
5
5
|
|
|
6
6
|
export class UserPrecondition extends Precondition {
|
|
7
7
|
public override messageRun(message: Message) {
|
|
8
8
|
return this.ok();
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
public override chatInputRun(interaction:
|
|
11
|
+
public override chatInputRun(interaction: ChatInputCommandInteraction) {
|
|
12
12
|
return this.ok();
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
public override contextMenuRun(interaction:
|
|
15
|
+
public override contextMenuRun(interaction: ContextMenuCommandInteraction) {
|
|
16
16
|
return this.ok();
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -27,10 +27,10 @@ class UserCommand extends Command {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* @param {Command.
|
|
30
|
+
* @param {Command.ChatInputCommandInteraction} interaction
|
|
31
31
|
*/
|
|
32
32
|
async chatInputRun(interaction) {
|
|
33
|
-
return
|
|
33
|
+
return interaction.reply({ content: 'Hello world!' });
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -15,7 +15,7 @@ export class UserCommand extends Command {
|
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
public override async chatInputRun(interaction: Command.
|
|
19
|
-
return
|
|
18
|
+
public override async chatInputRun(interaction: Command.ChatInputCommandInteraction) {
|
|
19
|
+
return interaction.reply({ content: 'Hello world!' });
|
|
20
20
|
}
|
|
21
21
|
}
|