@pikokr/command.ts 3.1.7 β 3.1.8
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/.all-contributorsrc
CHANGED
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
"imageSize": 100,
|
|
6
6
|
"contributorsPerLine": 7,
|
|
7
7
|
"contributorsSortAlphabetically": false,
|
|
8
|
-
"badgeTemplate": "[](#contributors)",
|
|
9
|
-
"contributorTemplate": "<a href=\"<%= contributor.profile %>\"><img src=\"<%= contributor.avatar_url %>\" width=\"<%= options.imageSize %>px;\" alt=\"\"/><br /><sub><b><%= contributor.name %></b></sub></a>",
|
|
10
8
|
"types": {
|
|
11
9
|
"custom": {
|
|
12
10
|
"symbol": "π",
|
|
@@ -21,6 +19,18 @@
|
|
|
21
19
|
"name": "νλ§",
|
|
22
20
|
"avatar_url": "https://avatars.githubusercontent.com/u/68010770?v=4",
|
|
23
21
|
"profile": "https://pikokr.dev",
|
|
22
|
+
"contributions": [
|
|
23
|
+
"code",
|
|
24
|
+
"maintenance",
|
|
25
|
+
"ideas",
|
|
26
|
+
"doc"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"login": "PyBsh",
|
|
31
|
+
"name": "RootPi",
|
|
32
|
+
"avatar_url": "https://avatars.githubusercontent.com/u/59782214?v=4",
|
|
33
|
+
"profile": "https://github.com/PyBsh",
|
|
24
34
|
"contributions": [
|
|
25
35
|
"code"
|
|
26
36
|
]
|
|
@@ -29,5 +39,6 @@
|
|
|
29
39
|
"projectName": "command.ts",
|
|
30
40
|
"projectOwner": "pikokr",
|
|
31
41
|
"repoType": "github",
|
|
32
|
-
"repoHost": "https://github.com"
|
|
42
|
+
"repoHost": "https://github.com",
|
|
43
|
+
"commitConvention": "none"
|
|
33
44
|
}
|
package/README.md
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
# Command.TS
|
|
2
2
|
|
|
3
|
-
[](https://github.com/pikokr/command.ts/actions/workflows/publish.yml)
|
|
3
|
+
[](https://github.com/pikokr/command.ts/actions/workflows/publish.yml) <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
4
|
+
[](#contributors-)
|
|
5
|
+
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
4
6
|
|
|
5
7
|

|
|
6
8
|
|
|
7
9
|
Command framework for discord.js
|
|
8
10
|
|
|
9
11
|
[Discord](https://discord.gg/EEhcPzsGHV) / [λ¬Έμ](https://v3.cts.pikokr.dev) / [V2 λ¬Έμ](https://command-ts-docs-ezojnktwv-pikokr.vercel.app/)
|
|
12
|
+
|
|
13
|
+
## Contributors
|
|
14
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
15
|
+
<!-- prettier-ignore-start -->
|
|
16
|
+
<!-- markdownlint-disable -->
|
|
17
|
+
<table>
|
|
18
|
+
<tr>
|
|
19
|
+
<td align="center"><a href="https://pikokr.dev"><img src="https://avatars.githubusercontent.com/u/68010770?v=4?s=100" width="100px;" alt=""/><br /><sub><b>νλ§</b></sub></a><br /><a href="https://github.com/pikokr/command.ts/commits?author=pikokr" title="Code">π»</a> <a href="#maintenance-pikokr" title="Maintenance">π§</a> <a href="#ideas-pikokr" title="Ideas, Planning, & Feedback">π€</a> <a href="https://github.com/pikokr/command.ts/commits?author=pikokr" title="Documentation">π</a></td>
|
|
20
|
+
<td align="center"><a href="https://github.com/PyBsh"><img src="https://avatars.githubusercontent.com/u/59782214?v=4?s=100" width="100px;" alt=""/><br /><sub><b>RootPi</b></sub></a><br /><a href="https://github.com/pikokr/command.ts/commits?author=PyBsh" title="Code">π»</a></td>
|
|
21
|
+
</tr>
|
|
22
|
+
</table>
|
|
23
|
+
|
|
24
|
+
<!-- markdownlint-restore -->
|
|
25
|
+
<!-- prettier-ignore-end -->
|
|
26
|
+
|
|
27
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandClient.js","sourceRoot":"","sources":["../../src/structures/CommandClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsB;AACtB,yCAAqC;AACrC,2CAA6D;AAC7D,sDAA2G;AAC3G,wCAAoE;AACpE,0CAAsC;AACtC,iCAA8B;AAyB9B,MAAa,aAAa;
|
|
1
|
+
{"version":3,"file":"CommandClient.js","sourceRoot":"","sources":["../../src/structures/CommandClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsB;AACtB,yCAAqC;AACrC,2CAA6D;AAC7D,sDAA2G;AAC3G,wCAAoE;AACpE,0CAAsC;AACtC,iCAA8B;AAyB9B,MAAa,aAAa;IAkCxB,YAAY,EAAmI;YAAnI,EAAE,MAAM,EAAE,eAAe,OAA0G,EAArG,OAAO,cAArC,6BAAuC,CAAF;QAhCjD,WAAM,GAAa,EAAE,CAAA;QACrB,aAAQ,GAAG,IAAI,mBAAQ,CAAC,IAAI,CAAC,CAAA;QAG7B,SAAI,GAAG,IAAI,WAAI,CAAC;YACd,OAAO,EAAE,GAAG;SACb,CAAC,CAAA;QAGM,aAAQ,GAAG,KAAK,CAAA;QAwBtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,eAAe,GAAG,eAAe,IAAI,IAAI,gCAAsB,EAAE,CAAA;QACtE,IAAI,CAAC,OAAO,GAAG,gBAAC,CAAC,KAAK,CACpB;YACE,OAAO,EAAE;gBACP,MAAM,EAAE,GAAG;gBACX,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI;aAClB;YACD,MAAM,EAAE,MAAM;YACd,aAAa,EAAE;gBACb,QAAQ,EAAE,IAAI;aACf;YACD,MAAM,EAAE,IAAI,cAAM,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;SAC3C,EACD,OAAO,CACR,CAAA;QAED,IAAI,CAAC,MAAM,GAAG,IAAI,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AE;gBAClC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,CAAA;gBACvC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAA;aAC5B;YACD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,EAAE;gBACvC,MAAM,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAA;aACnC;QACH,CAAC;KAAA;CA+BF;AA/DD,sCA+DC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikokr/command.ts",
|
|
3
3
|
"description": "Discord.js command framework for typescript.",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.8",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "MIT",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"@discordjs/builders": "^0.6.0",
|
|
10
10
|
"@discordjs/rest": "^0.1.0-canary.0",
|
|
11
11
|
"@types/lodash": "^4.14.172",
|
|
12
|
+
"all-contributors-cli": "^6.20.0",
|
|
12
13
|
"discord.js": "^13.1.0",
|
|
13
14
|
"prettier": "^2.2.1",
|
|
14
15
|
"ts-node": "^10.1.0",
|
|
@@ -58,7 +58,9 @@ export class CommandClient {
|
|
|
58
58
|
const owners = await this.fetchOwners()
|
|
59
59
|
this.owners.push(...owners)
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
if (this.options.slashCommands.autoSync) {
|
|
62
|
+
await this.registry.syncCommands()
|
|
63
|
+
}
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
constructor({ client, coolDownAdapter, ...options }: Partial<CommandClientOptionsParam> & { client: Client; coolDownAdapter?: CoolDownAdapter }) {
|