oopscord.js 0.0.26 → 0.0.28
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/bun.lock +264 -0
- package/dist/structures/DiscordApp.d.ts.map +1 -1
- package/dist/structures/DiscordApp.js +4 -1
- package/dist/structures/components/BaseModal.d.ts +31 -2
- package/dist/structures/components/BaseModal.d.ts.map +1 -1
- package/dist/structures/components/BaseModal.js +34 -1
- package/dist/structures/decorators/MessageComponentDecorator.d.ts +47 -6
- package/dist/structures/decorators/MessageComponentDecorator.d.ts.map +1 -1
- package/dist/structures/decorators/MessageComponentDecorator.js +52 -0
- package/package.json +2 -2
- package/dist/structures/Client.d.ts +0 -6
- package/dist/structures/Client.d.ts.map +0 -1
- package/dist/structures/Client.js +0 -43
- package/dist/structures/components/BaseModal.test.d.ts +0 -2
- package/dist/structures/components/BaseModal.test.d.ts.map +0 -1
- package/dist/structures/components/BaseModal.test.js +0 -109
- package/dist/structures/decorators/DiscordModule.d.ts +0 -20
- package/dist/structures/decorators/DiscordModule.d.ts.map +0 -1
- package/dist/structures/decorators/DiscordModule.js +0 -56
- package/dist/utils/InteractionUtil.d.ts +0 -5
- package/dist/utils/InteractionUtil.d.ts.map +0 -1
- package/dist/utils/InteractionUtil.js +0 -10
- package/tsconfig.json +0 -110
package/bun.lock
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lockfileVersion": 1,
|
|
3
|
+
"configVersion": 0,
|
|
4
|
+
"workspaces": {
|
|
5
|
+
"": {
|
|
6
|
+
"name": "oopscord.js",
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"reflect-metadata": "^0.1.14",
|
|
9
|
+
},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@types/node": "^20.19.35",
|
|
12
|
+
"discord.js": "14.26.4",
|
|
13
|
+
"typescript": "^5.8.3",
|
|
14
|
+
"vitest": "^4.0.18",
|
|
15
|
+
"yarn": "^1.22.21",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
"packages": {
|
|
20
|
+
"@discordjs/builders": ["@discordjs/builders@1.14.1", "", { "dependencies": { "@discordjs/formatters": "^0.6.2", "@discordjs/util": "^1.2.0", "@sapphire/shapeshift": "^4.0.0", "discord-api-types": "^0.38.40", "fast-deep-equal": "^3.1.3", "ts-mixer": "^6.0.4", "tslib": "^2.6.3" } }, "sha512-gSKkhXLqs96TCzk66VZuHHl8z2bQMJFGwrXC0f33ngK+FLNau4hU1PYny3DNJfNdSH+gVMzE85/d5FQ2BpcNwQ=="],
|
|
21
|
+
|
|
22
|
+
"@discordjs/collection": ["@discordjs/collection@1.5.3", "", {}, "sha512-SVb428OMd3WO1paV3rm6tSjM4wC+Kecaa1EUGX7vc6/fddvw/6lg90z4QtCqm21zvVe92vMMDt9+DkIvjXImQQ=="],
|
|
23
|
+
|
|
24
|
+
"@discordjs/formatters": ["@discordjs/formatters@0.6.2", "", { "dependencies": { "discord-api-types": "^0.38.33" } }, "sha512-y4UPwWhH6vChKRkGdMB4odasUbHOUwy7KL+OVwF86PvT6QVOwElx+TiI1/6kcmcEe+g5YRXJFiXSXUdabqZOvQ=="],
|
|
25
|
+
|
|
26
|
+
"@discordjs/rest": ["@discordjs/rest@2.6.1", "", { "dependencies": { "@discordjs/collection": "^2.1.1", "@discordjs/util": "^1.2.0", "@sapphire/async-queue": "^1.5.3", "@sapphire/snowflake": "^3.5.5", "@vladfrangu/async_event_emitter": "^2.4.6", "discord-api-types": "^0.38.40", "magic-bytes.js": "^1.13.0", "tslib": "^2.6.3", "undici": "6.24.1" } }, "sha512-wwQdgjeaoYFiaG+atbqx6aJDpqW7JHAo0HrQkBTbYzM3/PJ3GweQIpgElNcGZ26DCUOXMyawYd0YF7vtr+fZXg=="],
|
|
27
|
+
|
|
28
|
+
"@discordjs/util": ["@discordjs/util@1.2.0", "", { "dependencies": { "discord-api-types": "^0.38.33" } }, "sha512-3LKP7F2+atl9vJFhaBjn4nOaSWahZ/yWjOvA4e5pnXkt2qyXRCHLxoBQy81GFtLGCq7K9lPm9R517M1U+/90Qg=="],
|
|
29
|
+
|
|
30
|
+
"@discordjs/ws": ["@discordjs/ws@1.2.3", "", { "dependencies": { "@discordjs/collection": "^2.1.0", "@discordjs/rest": "^2.5.1", "@discordjs/util": "^1.1.0", "@sapphire/async-queue": "^1.5.2", "@types/ws": "^8.5.10", "@vladfrangu/async_event_emitter": "^2.2.4", "discord-api-types": "^0.38.1", "tslib": "^2.6.2", "ws": "^8.17.0" } }, "sha512-wPlQDxEmlDg5IxhJPuxXr3Vy9AjYq5xCvFWGJyD7w7Np8ZGu+Mc+97LCoEc/+AYCo2IDpKioiH0/c/mj5ZR9Uw=="],
|
|
31
|
+
|
|
32
|
+
"@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.27.3", "", { "os": "aix", "cpu": "ppc64" }, "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg=="],
|
|
33
|
+
|
|
34
|
+
"@esbuild/android-arm": ["@esbuild/android-arm@0.27.3", "", { "os": "android", "cpu": "arm" }, "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA=="],
|
|
35
|
+
|
|
36
|
+
"@esbuild/android-arm64": ["@esbuild/android-arm64@0.27.3", "", { "os": "android", "cpu": "arm64" }, "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg=="],
|
|
37
|
+
|
|
38
|
+
"@esbuild/android-x64": ["@esbuild/android-x64@0.27.3", "", { "os": "android", "cpu": "x64" }, "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ=="],
|
|
39
|
+
|
|
40
|
+
"@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.27.3", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg=="],
|
|
41
|
+
|
|
42
|
+
"@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.27.3", "", { "os": "darwin", "cpu": "x64" }, "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg=="],
|
|
43
|
+
|
|
44
|
+
"@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.27.3", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w=="],
|
|
45
|
+
|
|
46
|
+
"@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.27.3", "", { "os": "freebsd", "cpu": "x64" }, "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA=="],
|
|
47
|
+
|
|
48
|
+
"@esbuild/linux-arm": ["@esbuild/linux-arm@0.27.3", "", { "os": "linux", "cpu": "arm" }, "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw=="],
|
|
49
|
+
|
|
50
|
+
"@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.27.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg=="],
|
|
51
|
+
|
|
52
|
+
"@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.27.3", "", { "os": "linux", "cpu": "ia32" }, "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg=="],
|
|
53
|
+
|
|
54
|
+
"@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.27.3", "", { "os": "linux", "cpu": "none" }, "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA=="],
|
|
55
|
+
|
|
56
|
+
"@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.27.3", "", { "os": "linux", "cpu": "none" }, "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw=="],
|
|
57
|
+
|
|
58
|
+
"@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.27.3", "", { "os": "linux", "cpu": "ppc64" }, "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA=="],
|
|
59
|
+
|
|
60
|
+
"@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.27.3", "", { "os": "linux", "cpu": "none" }, "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ=="],
|
|
61
|
+
|
|
62
|
+
"@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.27.3", "", { "os": "linux", "cpu": "s390x" }, "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw=="],
|
|
63
|
+
|
|
64
|
+
"@esbuild/linux-x64": ["@esbuild/linux-x64@0.27.3", "", { "os": "linux", "cpu": "x64" }, "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA=="],
|
|
65
|
+
|
|
66
|
+
"@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.27.3", "", { "os": "none", "cpu": "arm64" }, "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA=="],
|
|
67
|
+
|
|
68
|
+
"@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.27.3", "", { "os": "none", "cpu": "x64" }, "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA=="],
|
|
69
|
+
|
|
70
|
+
"@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.27.3", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw=="],
|
|
71
|
+
|
|
72
|
+
"@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.27.3", "", { "os": "openbsd", "cpu": "x64" }, "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ=="],
|
|
73
|
+
|
|
74
|
+
"@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.27.3", "", { "os": "none", "cpu": "arm64" }, "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g=="],
|
|
75
|
+
|
|
76
|
+
"@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.27.3", "", { "os": "sunos", "cpu": "x64" }, "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA=="],
|
|
77
|
+
|
|
78
|
+
"@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.27.3", "", { "os": "win32", "cpu": "arm64" }, "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA=="],
|
|
79
|
+
|
|
80
|
+
"@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.27.3", "", { "os": "win32", "cpu": "ia32" }, "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q=="],
|
|
81
|
+
|
|
82
|
+
"@esbuild/win32-x64": ["@esbuild/win32-x64@0.27.3", "", { "os": "win32", "cpu": "x64" }, "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA=="],
|
|
83
|
+
|
|
84
|
+
"@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="],
|
|
85
|
+
|
|
86
|
+
"@rollup/rollup-android-arm-eabi": ["@rollup/rollup-android-arm-eabi@4.59.0", "", { "os": "android", "cpu": "arm" }, "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg=="],
|
|
87
|
+
|
|
88
|
+
"@rollup/rollup-android-arm64": ["@rollup/rollup-android-arm64@4.59.0", "", { "os": "android", "cpu": "arm64" }, "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q=="],
|
|
89
|
+
|
|
90
|
+
"@rollup/rollup-darwin-arm64": ["@rollup/rollup-darwin-arm64@4.59.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg=="],
|
|
91
|
+
|
|
92
|
+
"@rollup/rollup-darwin-x64": ["@rollup/rollup-darwin-x64@4.59.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w=="],
|
|
93
|
+
|
|
94
|
+
"@rollup/rollup-freebsd-arm64": ["@rollup/rollup-freebsd-arm64@4.59.0", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA=="],
|
|
95
|
+
|
|
96
|
+
"@rollup/rollup-freebsd-x64": ["@rollup/rollup-freebsd-x64@4.59.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg=="],
|
|
97
|
+
|
|
98
|
+
"@rollup/rollup-linux-arm-gnueabihf": ["@rollup/rollup-linux-arm-gnueabihf@4.59.0", "", { "os": "linux", "cpu": "arm" }, "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw=="],
|
|
99
|
+
|
|
100
|
+
"@rollup/rollup-linux-arm-musleabihf": ["@rollup/rollup-linux-arm-musleabihf@4.59.0", "", { "os": "linux", "cpu": "arm" }, "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA=="],
|
|
101
|
+
|
|
102
|
+
"@rollup/rollup-linux-arm64-gnu": ["@rollup/rollup-linux-arm64-gnu@4.59.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA=="],
|
|
103
|
+
|
|
104
|
+
"@rollup/rollup-linux-arm64-musl": ["@rollup/rollup-linux-arm64-musl@4.59.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA=="],
|
|
105
|
+
|
|
106
|
+
"@rollup/rollup-linux-loong64-gnu": ["@rollup/rollup-linux-loong64-gnu@4.59.0", "", { "os": "linux", "cpu": "none" }, "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg=="],
|
|
107
|
+
|
|
108
|
+
"@rollup/rollup-linux-loong64-musl": ["@rollup/rollup-linux-loong64-musl@4.59.0", "", { "os": "linux", "cpu": "none" }, "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q=="],
|
|
109
|
+
|
|
110
|
+
"@rollup/rollup-linux-ppc64-gnu": ["@rollup/rollup-linux-ppc64-gnu@4.59.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA=="],
|
|
111
|
+
|
|
112
|
+
"@rollup/rollup-linux-ppc64-musl": ["@rollup/rollup-linux-ppc64-musl@4.59.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA=="],
|
|
113
|
+
|
|
114
|
+
"@rollup/rollup-linux-riscv64-gnu": ["@rollup/rollup-linux-riscv64-gnu@4.59.0", "", { "os": "linux", "cpu": "none" }, "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg=="],
|
|
115
|
+
|
|
116
|
+
"@rollup/rollup-linux-riscv64-musl": ["@rollup/rollup-linux-riscv64-musl@4.59.0", "", { "os": "linux", "cpu": "none" }, "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg=="],
|
|
117
|
+
|
|
118
|
+
"@rollup/rollup-linux-s390x-gnu": ["@rollup/rollup-linux-s390x-gnu@4.59.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w=="],
|
|
119
|
+
|
|
120
|
+
"@rollup/rollup-linux-x64-gnu": ["@rollup/rollup-linux-x64-gnu@4.59.0", "", { "os": "linux", "cpu": "x64" }, "sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg=="],
|
|
121
|
+
|
|
122
|
+
"@rollup/rollup-linux-x64-musl": ["@rollup/rollup-linux-x64-musl@4.59.0", "", { "os": "linux", "cpu": "x64" }, "sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg=="],
|
|
123
|
+
|
|
124
|
+
"@rollup/rollup-openbsd-x64": ["@rollup/rollup-openbsd-x64@4.59.0", "", { "os": "openbsd", "cpu": "x64" }, "sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ=="],
|
|
125
|
+
|
|
126
|
+
"@rollup/rollup-openharmony-arm64": ["@rollup/rollup-openharmony-arm64@4.59.0", "", { "os": "none", "cpu": "arm64" }, "sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA=="],
|
|
127
|
+
|
|
128
|
+
"@rollup/rollup-win32-arm64-msvc": ["@rollup/rollup-win32-arm64-msvc@4.59.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A=="],
|
|
129
|
+
|
|
130
|
+
"@rollup/rollup-win32-ia32-msvc": ["@rollup/rollup-win32-ia32-msvc@4.59.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA=="],
|
|
131
|
+
|
|
132
|
+
"@rollup/rollup-win32-x64-gnu": ["@rollup/rollup-win32-x64-gnu@4.59.0", "", { "os": "win32", "cpu": "x64" }, "sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA=="],
|
|
133
|
+
|
|
134
|
+
"@rollup/rollup-win32-x64-msvc": ["@rollup/rollup-win32-x64-msvc@4.59.0", "", { "os": "win32", "cpu": "x64" }, "sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA=="],
|
|
135
|
+
|
|
136
|
+
"@sapphire/async-queue": ["@sapphire/async-queue@1.5.5", "", {}, "sha512-cvGzxbba6sav2zZkH8GPf2oGk9yYoD5qrNWdu9fRehifgnFZJMV+nuy2nON2roRO4yQQ+v7MK/Pktl/HgfsUXg=="],
|
|
137
|
+
|
|
138
|
+
"@sapphire/shapeshift": ["@sapphire/shapeshift@4.0.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "lodash": "^4.17.21" } }, "sha512-d9dUmWVA7MMiKobL3VpLF8P2aeanRTu6ypG2OIaEv/ZHH/SUQ2iHOVyi5wAPjQ+HmnMuL0whK9ez8I/raWbtIg=="],
|
|
139
|
+
|
|
140
|
+
"@sapphire/snowflake": ["@sapphire/snowflake@3.5.3", "", {}, "sha512-jjmJywLAFoWeBi1W7994zZyiNWPIiqRRNAmSERxyg93xRGzNYvGjlZ0gR6x0F4gPRi2+0O6S71kOZYyr3cxaIQ=="],
|
|
141
|
+
|
|
142
|
+
"@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="],
|
|
143
|
+
|
|
144
|
+
"@types/chai": ["@types/chai@5.2.3", "", { "dependencies": { "@types/deep-eql": "*", "assertion-error": "^2.0.1" } }, "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA=="],
|
|
145
|
+
|
|
146
|
+
"@types/deep-eql": ["@types/deep-eql@4.0.2", "", {}, "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw=="],
|
|
147
|
+
|
|
148
|
+
"@types/estree": ["@types/estree@1.0.8", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="],
|
|
149
|
+
|
|
150
|
+
"@types/node": ["@types/node@20.19.35", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-Uarfe6J91b9HAUXxjvSOdiO2UPOKLm07Q1oh0JHxoZ1y8HoqxDAu3gVrsrOHeiio0kSsoVBt4wFrKOm0dKxVPQ=="],
|
|
151
|
+
|
|
152
|
+
"@types/ws": ["@types/ws@8.18.1", "", { "dependencies": { "@types/node": "*" } }, "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg=="],
|
|
153
|
+
|
|
154
|
+
"@vitest/expect": ["@vitest/expect@4.0.18", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "@types/chai": "^5.2.2", "@vitest/spy": "4.0.18", "@vitest/utils": "4.0.18", "chai": "^6.2.1", "tinyrainbow": "^3.0.3" } }, "sha512-8sCWUyckXXYvx4opfzVY03EOiYVxyNrHS5QxX3DAIi5dpJAAkyJezHCP77VMX4HKA2LDT/Jpfo8i2r5BE3GnQQ=="],
|
|
155
|
+
|
|
156
|
+
"@vitest/mocker": ["@vitest/mocker@4.0.18", "", { "dependencies": { "@vitest/spy": "4.0.18", "estree-walker": "^3.0.3", "magic-string": "^0.30.21" }, "peerDependencies": { "msw": "^2.4.9", "vite": "^6.0.0 || ^7.0.0-0" }, "optionalPeers": ["msw"] }, "sha512-HhVd0MDnzzsgevnOWCBj5Otnzobjy5wLBe4EdeeFGv8luMsGcYqDuFRMcttKWZA5vVO8RFjexVovXvAM4JoJDQ=="],
|
|
157
|
+
|
|
158
|
+
"@vitest/pretty-format": ["@vitest/pretty-format@4.0.18", "", { "dependencies": { "tinyrainbow": "^3.0.3" } }, "sha512-P24GK3GulZWC5tz87ux0m8OADrQIUVDPIjjj65vBXYG17ZeU3qD7r+MNZ1RNv4l8CGU2vtTRqixrOi9fYk/yKw=="],
|
|
159
|
+
|
|
160
|
+
"@vitest/runner": ["@vitest/runner@4.0.18", "", { "dependencies": { "@vitest/utils": "4.0.18", "pathe": "^2.0.3" } }, "sha512-rpk9y12PGa22Jg6g5M3UVVnTS7+zycIGk9ZNGN+m6tZHKQb7jrP7/77WfZy13Y/EUDd52NDsLRQhYKtv7XfPQw=="],
|
|
161
|
+
|
|
162
|
+
"@vitest/snapshot": ["@vitest/snapshot@4.0.18", "", { "dependencies": { "@vitest/pretty-format": "4.0.18", "magic-string": "^0.30.21", "pathe": "^2.0.3" } }, "sha512-PCiV0rcl7jKQjbgYqjtakly6T1uwv/5BQ9SwBLekVg/EaYeQFPiXcgrC2Y7vDMA8dM1SUEAEV82kgSQIlXNMvA=="],
|
|
163
|
+
|
|
164
|
+
"@vitest/spy": ["@vitest/spy@4.0.18", "", {}, "sha512-cbQt3PTSD7P2OARdVW3qWER5EGq7PHlvE+QfzSC0lbwO+xnt7+XH06ZzFjFRgzUX//JmpxrCu92VdwvEPlWSNw=="],
|
|
165
|
+
|
|
166
|
+
"@vitest/utils": ["@vitest/utils@4.0.18", "", { "dependencies": { "@vitest/pretty-format": "4.0.18", "tinyrainbow": "^3.0.3" } }, "sha512-msMRKLMVLWygpK3u2Hybgi4MNjcYJvwTb0Ru09+fOyCXIgT5raYP041DRRdiJiI3k/2U6SEbAETB3YtBrUkCFA=="],
|
|
167
|
+
|
|
168
|
+
"@vladfrangu/async_event_emitter": ["@vladfrangu/async_event_emitter@2.4.7", "", {}, "sha512-Xfe6rpCTxSxfbswi/W/Pz7zp1WWSNn4A0eW4mLkQUewCrXXtMj31lCg+iQyTkh/CkusZSq9eDflu7tjEDXUY6g=="],
|
|
169
|
+
|
|
170
|
+
"assertion-error": ["assertion-error@2.0.1", "", {}, "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA=="],
|
|
171
|
+
|
|
172
|
+
"chai": ["chai@6.2.2", "", {}, "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg=="],
|
|
173
|
+
|
|
174
|
+
"discord-api-types": ["discord-api-types@0.38.40", "", {}, "sha512-P/His8cotqZgQqrt+hzrocp9L8RhQQz1GkrCnC9TMJ8Uw2q0tg8YyqJyGULxhXn/8kxHETN4IppmOv+P2m82lQ=="],
|
|
175
|
+
|
|
176
|
+
"discord.js": ["discord.js@14.26.4", "", { "dependencies": { "@discordjs/builders": "^1.14.1", "@discordjs/collection": "1.5.3", "@discordjs/formatters": "^0.6.2", "@discordjs/rest": "^2.6.1", "@discordjs/util": "^1.2.0", "@discordjs/ws": "^1.2.3", "@sapphire/snowflake": "3.5.3", "discord-api-types": "^0.38.40", "fast-deep-equal": "3.1.3", "lodash.snakecase": "4.1.1", "magic-bytes.js": "^1.13.0", "tslib": "^2.6.3", "undici": "6.24.1" } }, "sha512-4oBp8tc6Kf8IDBwAHhbsMaAqx1b5fob9SNasZT7V6yyyUydoO5i5fGuX7TmvRtR+q/WgKRnRViRoAWnG7fNyvA=="],
|
|
177
|
+
|
|
178
|
+
"es-module-lexer": ["es-module-lexer@1.7.0", "", {}, "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA=="],
|
|
179
|
+
|
|
180
|
+
"esbuild": ["esbuild@0.27.3", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.27.3", "@esbuild/android-arm": "0.27.3", "@esbuild/android-arm64": "0.27.3", "@esbuild/android-x64": "0.27.3", "@esbuild/darwin-arm64": "0.27.3", "@esbuild/darwin-x64": "0.27.3", "@esbuild/freebsd-arm64": "0.27.3", "@esbuild/freebsd-x64": "0.27.3", "@esbuild/linux-arm": "0.27.3", "@esbuild/linux-arm64": "0.27.3", "@esbuild/linux-ia32": "0.27.3", "@esbuild/linux-loong64": "0.27.3", "@esbuild/linux-mips64el": "0.27.3", "@esbuild/linux-ppc64": "0.27.3", "@esbuild/linux-riscv64": "0.27.3", "@esbuild/linux-s390x": "0.27.3", "@esbuild/linux-x64": "0.27.3", "@esbuild/netbsd-arm64": "0.27.3", "@esbuild/netbsd-x64": "0.27.3", "@esbuild/openbsd-arm64": "0.27.3", "@esbuild/openbsd-x64": "0.27.3", "@esbuild/openharmony-arm64": "0.27.3", "@esbuild/sunos-x64": "0.27.3", "@esbuild/win32-arm64": "0.27.3", "@esbuild/win32-ia32": "0.27.3", "@esbuild/win32-x64": "0.27.3" }, "bin": "bin/esbuild" }, "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg=="],
|
|
181
|
+
|
|
182
|
+
"estree-walker": ["estree-walker@3.0.3", "", { "dependencies": { "@types/estree": "^1.0.0" } }, "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g=="],
|
|
183
|
+
|
|
184
|
+
"expect-type": ["expect-type@1.3.0", "", {}, "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA=="],
|
|
185
|
+
|
|
186
|
+
"fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="],
|
|
187
|
+
|
|
188
|
+
"fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" } }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],
|
|
189
|
+
|
|
190
|
+
"fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="],
|
|
191
|
+
|
|
192
|
+
"lodash": ["lodash@4.17.23", "", {}, "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w=="],
|
|
193
|
+
|
|
194
|
+
"lodash.snakecase": ["lodash.snakecase@4.1.1", "", {}, "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw=="],
|
|
195
|
+
|
|
196
|
+
"magic-bytes.js": ["magic-bytes.js@1.13.0", "", {}, "sha512-afO2mnxW7GDTXMm5/AoN1WuOcdoKhtgXjIvHmobqTD1grNplhGdv3PFOyjCVmrnOZBIT/gD/koDKpYG+0mvHcg=="],
|
|
197
|
+
|
|
198
|
+
"magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],
|
|
199
|
+
|
|
200
|
+
"nanoid": ["nanoid@3.3.11", "", { "bin": "bin/nanoid.cjs" }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="],
|
|
201
|
+
|
|
202
|
+
"obug": ["obug@2.1.1", "", {}, "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ=="],
|
|
203
|
+
|
|
204
|
+
"pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="],
|
|
205
|
+
|
|
206
|
+
"picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="],
|
|
207
|
+
|
|
208
|
+
"picomatch": ["picomatch@4.0.3", "", {}, "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q=="],
|
|
209
|
+
|
|
210
|
+
"postcss": ["postcss@8.5.6", "", { "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg=="],
|
|
211
|
+
|
|
212
|
+
"reflect-metadata": ["reflect-metadata@0.1.14", "", {}, "sha512-ZhYeb6nRaXCfhnndflDK8qI6ZQ/YcWZCISRAWICW9XYqMUwjZM9Z0DveWX/ABN01oxSHwVxKQmxeYZSsm0jh5A=="],
|
|
213
|
+
|
|
214
|
+
"rollup": ["rollup@4.59.0", "", { "dependencies": { "@types/estree": "1.0.8" }, "optionalDependencies": { "@rollup/rollup-android-arm-eabi": "4.59.0", "@rollup/rollup-android-arm64": "4.59.0", "@rollup/rollup-darwin-arm64": "4.59.0", "@rollup/rollup-darwin-x64": "4.59.0", "@rollup/rollup-freebsd-arm64": "4.59.0", "@rollup/rollup-freebsd-x64": "4.59.0", "@rollup/rollup-linux-arm-gnueabihf": "4.59.0", "@rollup/rollup-linux-arm-musleabihf": "4.59.0", "@rollup/rollup-linux-arm64-gnu": "4.59.0", "@rollup/rollup-linux-arm64-musl": "4.59.0", "@rollup/rollup-linux-loong64-gnu": "4.59.0", "@rollup/rollup-linux-loong64-musl": "4.59.0", "@rollup/rollup-linux-ppc64-gnu": "4.59.0", "@rollup/rollup-linux-ppc64-musl": "4.59.0", "@rollup/rollup-linux-riscv64-gnu": "4.59.0", "@rollup/rollup-linux-riscv64-musl": "4.59.0", "@rollup/rollup-linux-s390x-gnu": "4.59.0", "@rollup/rollup-linux-x64-gnu": "4.59.0", "@rollup/rollup-linux-x64-musl": "4.59.0", "@rollup/rollup-openbsd-x64": "4.59.0", "@rollup/rollup-openharmony-arm64": "4.59.0", "@rollup/rollup-win32-arm64-msvc": "4.59.0", "@rollup/rollup-win32-ia32-msvc": "4.59.0", "@rollup/rollup-win32-x64-gnu": "4.59.0", "@rollup/rollup-win32-x64-msvc": "4.59.0", "fsevents": "~2.3.2" }, "bin": "dist/bin/rollup" }, "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg=="],
|
|
215
|
+
|
|
216
|
+
"siginfo": ["siginfo@2.0.0", "", {}, "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g=="],
|
|
217
|
+
|
|
218
|
+
"source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],
|
|
219
|
+
|
|
220
|
+
"stackback": ["stackback@0.0.2", "", {}, "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw=="],
|
|
221
|
+
|
|
222
|
+
"std-env": ["std-env@3.10.0", "", {}, "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg=="],
|
|
223
|
+
|
|
224
|
+
"tinybench": ["tinybench@2.9.0", "", {}, "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg=="],
|
|
225
|
+
|
|
226
|
+
"tinyexec": ["tinyexec@1.0.2", "", {}, "sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg=="],
|
|
227
|
+
|
|
228
|
+
"tinyglobby": ["tinyglobby@0.2.15", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.3" } }, "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ=="],
|
|
229
|
+
|
|
230
|
+
"tinyrainbow": ["tinyrainbow@3.0.3", "", {}, "sha512-PSkbLUoxOFRzJYjjxHJt9xro7D+iilgMX/C9lawzVuYiIdcihh9DXmVibBe8lmcFrRi/VzlPjBxbN7rH24q8/Q=="],
|
|
231
|
+
|
|
232
|
+
"ts-mixer": ["ts-mixer@6.0.4", "", {}, "sha512-ufKpbmrugz5Aou4wcr5Wc1UUFWOLhq+Fm6qa6P0w0K5Qw2yhaUoiWszhCVuNQyNwrlGiscHOmqYoAox1PtvgjA=="],
|
|
233
|
+
|
|
234
|
+
"tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
|
|
235
|
+
|
|
236
|
+
"typescript": ["typescript@5.8.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ=="],
|
|
237
|
+
|
|
238
|
+
"undici": ["undici@6.24.1", "", {}, "sha512-sC+b0tB1whOCzbtlx20fx3WgCXwkW627p4EA9uM+/tNNPkSS+eSEld6pAs9nDv7WbY1UUljBMYPtu9BCOrCWKA=="],
|
|
239
|
+
|
|
240
|
+
"undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],
|
|
241
|
+
|
|
242
|
+
"vite": ["vite@7.3.1", "", { "dependencies": { "esbuild": "^0.27.0", "fdir": "^6.5.0", "picomatch": "^4.0.3", "postcss": "^8.5.6", "rollup": "^4.43.0", "tinyglobby": "^0.2.15" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", "jiti": ">=1.21.0", "less": "^4.0.0", "lightningcss": "^1.21.0", "sass": "^1.70.0", "sass-embedded": "^1.70.0", "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": "bin/vite.js" }, "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA=="],
|
|
243
|
+
|
|
244
|
+
"vitest": ["vitest@4.0.18", "", { "dependencies": { "@vitest/expect": "4.0.18", "@vitest/mocker": "4.0.18", "@vitest/pretty-format": "4.0.18", "@vitest/runner": "4.0.18", "@vitest/snapshot": "4.0.18", "@vitest/spy": "4.0.18", "@vitest/utils": "4.0.18", "es-module-lexer": "^1.7.0", "expect-type": "^1.2.2", "magic-string": "^0.30.21", "obug": "^2.1.1", "pathe": "^2.0.3", "picomatch": "^4.0.3", "std-env": "^3.10.0", "tinybench": "^2.9.0", "tinyexec": "^1.0.2", "tinyglobby": "^0.2.15", "tinyrainbow": "^3.0.3", "vite": "^6.0.0 || ^7.0.0", "why-is-node-running": "^2.3.0" }, "peerDependencies": { "@edge-runtime/vm": "*", "@opentelemetry/api": "^1.9.0", "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", "@vitest/browser-playwright": "4.0.18", "@vitest/browser-preview": "4.0.18", "@vitest/browser-webdriverio": "4.0.18", "@vitest/ui": "4.0.18", "happy-dom": "*", "jsdom": "*" }, "optionalPeers": ["@edge-runtime/vm", "@opentelemetry/api", "@vitest/browser-playwright", "@vitest/browser-preview", "@vitest/browser-webdriverio", "@vitest/ui", "happy-dom", "jsdom"], "bin": "vitest.mjs" }, "sha512-hOQuK7h0FGKgBAas7v0mSAsnvrIgAvWmRFjmzpJ7SwFHH3g1k2u37JtYwOwmEKhK6ZO3v9ggDBBm0La1LCK4uQ=="],
|
|
245
|
+
|
|
246
|
+
"why-is-node-running": ["why-is-node-running@2.3.0", "", { "dependencies": { "siginfo": "^2.0.0", "stackback": "0.0.2" }, "bin": "cli.js" }, "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w=="],
|
|
247
|
+
|
|
248
|
+
"ws": ["ws@8.19.0", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg=="],
|
|
249
|
+
|
|
250
|
+
"yarn": ["yarn@1.22.21", "", { "bin": { "yarn": "bin/yarn.js", "yarnpkg": "bin/yarn.js" } }, "sha512-ynXaJsADJ9JiZ84zU25XkPGOvVMmZ5b7tmTSpKURYwgELdjucAOydqIOrOfTxVYcNXe91xvLZwcRh68SR3liCg=="],
|
|
251
|
+
|
|
252
|
+
"@discordjs/rest/@discordjs/collection": ["@discordjs/collection@2.1.1", "", {}, "sha512-LiSusze9Tc7qF03sLCujF5iZp7K+vRNEDBZ86FT9aQAv3vxMLihUvKvpsCWiQ2DJq1tVckopKm1rxomgNUc9hg=="],
|
|
253
|
+
|
|
254
|
+
"@discordjs/rest/@sapphire/snowflake": ["@sapphire/snowflake@3.5.5", "", {}, "sha512-xzvBr1Q1c4lCe7i6sRnrofxeO1QTP/LKQ6A6qy0iB4x5yfiSfARMEQEghojzTNALDTcv8En04qYNIco9/K9eZQ=="],
|
|
255
|
+
|
|
256
|
+
"@discordjs/ws/@discordjs/collection": ["@discordjs/collection@2.1.1", "", {}, "sha512-LiSusze9Tc7qF03sLCujF5iZp7K+vRNEDBZ86FT9aQAv3vxMLihUvKvpsCWiQ2DJq1tVckopKm1rxomgNUc9hg=="],
|
|
257
|
+
|
|
258
|
+
"@discordjs/ws/@discordjs/rest": ["@discordjs/rest@2.6.0", "", { "dependencies": { "@discordjs/collection": "^2.1.1", "@discordjs/util": "^1.1.1", "@sapphire/async-queue": "^1.5.3", "@sapphire/snowflake": "^3.5.3", "@vladfrangu/async_event_emitter": "^2.4.6", "discord-api-types": "^0.38.16", "magic-bytes.js": "^1.10.0", "tslib": "^2.6.3", "undici": "6.21.3" } }, "sha512-RDYrhmpB7mTvmCKcpj+pc5k7POKszS4E2O9TYc+U+Y4iaCP+r910QdO43qmpOja8LRr1RJ0b3U+CqVsnPqzf4w=="],
|
|
259
|
+
|
|
260
|
+
"@discordjs/ws/@discordjs/rest/@discordjs/collection": ["@discordjs/collection@2.1.1", "", {}, "sha512-LiSusze9Tc7qF03sLCujF5iZp7K+vRNEDBZ86FT9aQAv3vxMLihUvKvpsCWiQ2DJq1tVckopKm1rxomgNUc9hg=="],
|
|
261
|
+
|
|
262
|
+
"@discordjs/ws/@discordjs/rest/undici": ["undici@6.21.3", "", {}, "sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw=="],
|
|
263
|
+
}
|
|
264
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiscordApp.d.ts","sourceRoot":"","sources":["../../src/structures/DiscordApp.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4E,MAAM,EAA4L,MAAM,YAAY,CAAC;AAMxS,OAAO,EAA4E,MAAM,EAAE,MAAM,GAAG,CAAC;AAGrG,yKAAyK;AACzK,MAAM,WAAW,MAAM;IACnB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB;AAOD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,iBAAiB;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;gBAEH,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAK1C,aAAa;IACb,QAAQ;CAGX;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,UAAU;;;IAuBnB;;;OAGG;IACG,KAAK;
|
|
1
|
+
{"version":3,"file":"DiscordApp.d.ts","sourceRoot":"","sources":["../../src/structures/DiscordApp.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4E,MAAM,EAA4L,MAAM,YAAY,CAAC;AAMxS,OAAO,EAA4E,MAAM,EAAE,MAAM,GAAG,CAAC;AAGrG,yKAAyK;AACzK,MAAM,WAAW,MAAM;IACnB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB;AAOD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,iBAAiB;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;gBAEH,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAK1C,aAAa;IACb,QAAQ;CAGX;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,UAAU;;;IAuBnB;;;OAGG;IACG,KAAK;IA8YX;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,iBAAiB,EAAE,OAAO,GAAE,iBAAsB;CAWzF"}
|
|
@@ -300,7 +300,10 @@ class DiscordApp {
|
|
|
300
300
|
"user_select": itr.fields.getSelectedUsers,
|
|
301
301
|
"role_select": itr.fields.getSelectedRoles,
|
|
302
302
|
"mentionable_select": itr.fields.getSelectedMentionables,
|
|
303
|
-
"channel_select": itr.fields.getSelectedChannels
|
|
303
|
+
"channel_select": itr.fields.getSelectedChannels,
|
|
304
|
+
"radio_group": itr.fields.getRadioGroup,
|
|
305
|
+
"checkbox_group": itr.fields.getCheckboxGroup,
|
|
306
|
+
"checkbox": itr.fields.getCheckbox
|
|
304
307
|
};
|
|
305
308
|
const label = modalComponents.find(c => c.outerType == "label" && c.innerType.endsWith("select") && c.component.data.component?.data?.custom_id == fieldIndex.customId);
|
|
306
309
|
const getMethod = getMethods[label?.innerType];
|
|
@@ -14,19 +14,48 @@ export type TextDisplayValueOverride = {
|
|
|
14
14
|
export type StringSelectValueOverride = {
|
|
15
15
|
type: 'string_select';
|
|
16
16
|
customId: string;
|
|
17
|
-
|
|
17
|
+
options: {
|
|
18
18
|
label: string;
|
|
19
19
|
value: string;
|
|
20
20
|
description?: string;
|
|
21
21
|
emoji?: string;
|
|
22
22
|
}[];
|
|
23
23
|
};
|
|
24
|
+
export type RadioGroupValueOverride = {
|
|
25
|
+
type: 'radio_group';
|
|
26
|
+
customId: string;
|
|
27
|
+
required?: boolean;
|
|
28
|
+
options: {
|
|
29
|
+
label: string;
|
|
30
|
+
value: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
default?: boolean;
|
|
33
|
+
}[];
|
|
34
|
+
};
|
|
35
|
+
export type CheckboxGroupValueOverride = {
|
|
36
|
+
type: 'checkbox_group';
|
|
37
|
+
customId: string;
|
|
38
|
+
minValues?: number;
|
|
39
|
+
maxValues?: number;
|
|
40
|
+
required?: boolean;
|
|
41
|
+
options: {
|
|
42
|
+
label: string;
|
|
43
|
+
value: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
default?: boolean;
|
|
46
|
+
}[];
|
|
47
|
+
};
|
|
48
|
+
export type CheckboxValueOverride = {
|
|
49
|
+
type: 'checkbox';
|
|
50
|
+
customId: string;
|
|
51
|
+
default?: boolean;
|
|
52
|
+
};
|
|
24
53
|
export type TextInputValueOverride = {
|
|
25
54
|
type: 'text_input';
|
|
26
55
|
customId: string;
|
|
27
56
|
value: string;
|
|
28
57
|
};
|
|
29
|
-
export type ModalValueOverride = StringSelectValueOverride | TextInputValueOverride | LabelValueOverride | TextDisplayValueOverride;
|
|
58
|
+
export type ModalValueOverride = StringSelectValueOverride | TextInputValueOverride | LabelValueOverride | TextDisplayValueOverride | RadioGroupValueOverride | CheckboxGroupValueOverride | CheckboxValueOverride;
|
|
30
59
|
/**
|
|
31
60
|
* The base class for modals created with the {@link Modal} decorator. This class is used to create a modal from the options and components defined in the class, and to override the default options and component values with new options and values when creating the modal.
|
|
32
61
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseModal.d.ts","sourceRoot":"","sources":["../../../src/structures/components/BaseModal.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"BaseModal.d.ts","sourceRoot":"","sources":["../../../src/structures/components/BaseModal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsH,YAAY,EAAE,iBAAiB,EAAE,sBAAsB,EAAqB,oBAAoB,EAAiE,MAAM,YAAY,CAAC;AACjT,OAAO,EAAsF,YAAY,EAAE,MAAM,IAAI,CAAC;AAItH,MAAM,MAAM,kBAAkB,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAC1G,MAAM,MAAM,wBAAwB,GAAG;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAClG,MAAM,MAAM,yBAAyB,GAAG;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,C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AM,CAAC,KAAK,CAA6B;IACjD,OAAO,CAAC,MAAM,CAAC,OAAO,CAAe;IACrC,OAAO,CAAC,MAAM,CAAC,UAAU,CAA4B;IAErD,iGAAiG;IACjG,MAAM,CAAC,QAAQ;IAmBf;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,OAAO,GAAE,OAAO,CAAC,YAAY,CAAM,EAAE,GAAG,MAAM,EAAE,kBAAkB,EAAE;IAqGpF;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,oBAAoB,EAAE,sBAAsB,CAAC;CA4B7E"}
|
|
@@ -93,10 +93,43 @@ class BaseModal {
|
|
|
93
93
|
const matchingStringSelectValue = values.find(v => v.customId === component.data.component.data.custom_id && v.type === 'string_select');
|
|
94
94
|
if (matchingStringSelectValue) {
|
|
95
95
|
const updatedComponent = discord_js_1.StringSelectMenuBuilder.from(component.data.component.toJSON());
|
|
96
|
-
updatedComponent.setOptions(matchingStringSelectValue.
|
|
96
|
+
updatedComponent.setOptions(matchingStringSelectValue.options);
|
|
97
97
|
component.setStringSelectMenuComponent(updatedComponent);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
+
else if (component.data.component instanceof discord_js_1.RadioGroupBuilder) {
|
|
101
|
+
const matchingRadioGroupValue = values.find(v => v.customId === component.data.component.data.custom_id && v.type === 'radio_group');
|
|
102
|
+
if (matchingRadioGroupValue) {
|
|
103
|
+
const updatedComponent = new discord_js_1.RadioGroupBuilder(component.data.component.toJSON());
|
|
104
|
+
if ("required" in matchingRadioGroupValue)
|
|
105
|
+
updatedComponent.setRequired(matchingRadioGroupValue.required);
|
|
106
|
+
updatedComponent.setOptions(matchingRadioGroupValue.options);
|
|
107
|
+
component.setRadioGroupComponent(updatedComponent);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
else if (component.data.component instanceof discord_js_1.CheckboxGroupBuilder) {
|
|
111
|
+
const matchingCheckboxGroupValue = values.find(v => v.customId === component.data.component.data.custom_id && v.type === 'checkbox_group');
|
|
112
|
+
if (matchingCheckboxGroupValue) {
|
|
113
|
+
const updatedComponent = new discord_js_1.CheckboxGroupBuilder(component.data.component.toJSON());
|
|
114
|
+
if (typeof matchingCheckboxGroupValue.minValues == "number")
|
|
115
|
+
updatedComponent.setMinValues(matchingCheckboxGroupValue.minValues);
|
|
116
|
+
if (typeof matchingCheckboxGroupValue.maxValues == "number")
|
|
117
|
+
updatedComponent.setMaxValues(matchingCheckboxGroupValue.maxValues);
|
|
118
|
+
if ("required" in matchingCheckboxGroupValue)
|
|
119
|
+
updatedComponent.setRequired(matchingCheckboxGroupValue.required);
|
|
120
|
+
updatedComponent.setOptions(matchingCheckboxGroupValue.options);
|
|
121
|
+
component.setCheckboxGroupComponent(updatedComponent);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
else if (component.data.component instanceof discord_js_1.CheckboxBuilder) {
|
|
125
|
+
const matchingCheckboxValue = values.find(v => v.customId === component.data.component.data.custom_id && v.type === 'checkbox');
|
|
126
|
+
if (matchingCheckboxValue) {
|
|
127
|
+
const updatedComponent = new discord_js_1.CheckboxBuilder(component.data.component.toJSON());
|
|
128
|
+
if ("default" in matchingCheckboxValue)
|
|
129
|
+
updatedComponent.setDefault(matchingCheckboxValue.default);
|
|
130
|
+
component.setCheckboxComponent(updatedComponent);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
100
133
|
return { customId, component: updatedComponent };
|
|
101
134
|
}
|
|
102
135
|
else if (component instanceof discord_js_1.TextDisplayBuilder) {
|
|
@@ -57,7 +57,7 @@ export type ModalLabelComponentData = {
|
|
|
57
57
|
customId: string;
|
|
58
58
|
component: LabelBuilder;
|
|
59
59
|
outerType: "label";
|
|
60
|
-
innerType: "string_select" | "user_select" | "channel_select" | "role_select" | "mentionable_select" | "text_input" | "file_upload";
|
|
60
|
+
innerType: "string_select" | "user_select" | "channel_select" | "role_select" | "mentionable_select" | "text_input" | "file_upload" | "radio_group" | "checkbox_group" | "checkbox";
|
|
61
61
|
};
|
|
62
62
|
export type ModalTextDisplayComponentData = {
|
|
63
63
|
customId: string;
|
|
@@ -94,14 +94,43 @@ export type ModalRoleSelect = RoleSelectMenuOptions & {
|
|
|
94
94
|
export type ModalMentionableSelect = MentionableSelectMenuOptions & {
|
|
95
95
|
type: "mentionable_select";
|
|
96
96
|
};
|
|
97
|
-
export type
|
|
97
|
+
export type ModalFileUpload = {
|
|
98
98
|
type: "file_upload";
|
|
99
99
|
customId: string;
|
|
100
100
|
minValues?: number;
|
|
101
101
|
maxValues?: number;
|
|
102
102
|
required?: boolean;
|
|
103
103
|
};
|
|
104
|
-
export type
|
|
104
|
+
export type ModalRadioGroup = {
|
|
105
|
+
type: "radio_group";
|
|
106
|
+
customId: string;
|
|
107
|
+
options: {
|
|
108
|
+
label: string;
|
|
109
|
+
value: string;
|
|
110
|
+
description?: string;
|
|
111
|
+
default?: boolean;
|
|
112
|
+
}[];
|
|
113
|
+
required?: boolean;
|
|
114
|
+
};
|
|
115
|
+
export type ModalCheckbox = {
|
|
116
|
+
type: "checkbox";
|
|
117
|
+
customId: string;
|
|
118
|
+
default?: boolean;
|
|
119
|
+
};
|
|
120
|
+
export type ModalCheckboxGroup = {
|
|
121
|
+
type: "checkbox_group";
|
|
122
|
+
customId: string;
|
|
123
|
+
minValues?: number;
|
|
124
|
+
maxValues?: number;
|
|
125
|
+
options: {
|
|
126
|
+
label: string;
|
|
127
|
+
value: string;
|
|
128
|
+
description?: string;
|
|
129
|
+
default?: boolean;
|
|
130
|
+
}[];
|
|
131
|
+
required?: boolean;
|
|
132
|
+
};
|
|
133
|
+
export type ModalTextDisplay = {
|
|
105
134
|
customId: string;
|
|
106
135
|
content: string;
|
|
107
136
|
};
|
|
@@ -112,7 +141,7 @@ export type ModalLabelOptions = {
|
|
|
112
141
|
component: ModalLabelComponent;
|
|
113
142
|
};
|
|
114
143
|
export type ModalComponentBuilder = LabelBuilder | TextDisplayBuilder;
|
|
115
|
-
type ModalComponentBase = ModalTextInput |
|
|
144
|
+
type ModalComponentBase = ModalTextInput | ModalFileUpload | ModalStringSelect | ModalUserSelect | ModalChannelSelect | ModalRoleSelect | ModalMentionableSelect | ModalRadioGroup | ModalCheckbox | ModalCheckboxGroup;
|
|
116
145
|
export type ModalLabelComponent = DistributiveOmit<ModalComponentBase & {
|
|
117
146
|
required?: boolean;
|
|
118
147
|
disabled?: never;
|
|
@@ -130,7 +159,16 @@ export type SelectMenuFieldIndex = FieldIndex & {
|
|
|
130
159
|
export type FileUploadFieldIndex = FieldIndex & {
|
|
131
160
|
type: "file_upload";
|
|
132
161
|
};
|
|
133
|
-
export type
|
|
162
|
+
export type RadioGroupFieldIndex = FieldIndex & {
|
|
163
|
+
type: "radio_group";
|
|
164
|
+
};
|
|
165
|
+
export type CheckboxFieldIndex = FieldIndex & {
|
|
166
|
+
type: "checkbox";
|
|
167
|
+
};
|
|
168
|
+
export type CheckboxGroupFieldIndex = FieldIndex & {
|
|
169
|
+
type: "checkbox_group";
|
|
170
|
+
};
|
|
171
|
+
export type ModalFieldIndex = TextInputFieldIndex | SelectMenuFieldIndex | FileUploadFieldIndex | RadioGroupFieldIndex | CheckboxFieldIndex | CheckboxGroupFieldIndex;
|
|
134
172
|
export declare function MessageComponentModule(options: MessageComponentModuleOptions): <T extends Function>(constructor: T) => void;
|
|
135
173
|
export declare function Button(options: InteractionButtonOptions | LinkButtonOptions): <T extends Function>(constructor: T) => void;
|
|
136
174
|
export declare function StringSelectMenu(options: StringSelectMenuOptions): <T extends Function>(constructor: T) => void;
|
|
@@ -140,9 +178,12 @@ export declare function RoleSelectMenu(options: RoleSelectMenuOptions): <T exten
|
|
|
140
178
|
export declare function MentionableSelectMenu(options: MentionableSelectMenuOptions): <T extends Function>(constructor: T) => void;
|
|
141
179
|
export declare function Modal(options: ModalOptions): <T extends Function>(constructor: T) => void;
|
|
142
180
|
export declare function ModalLabel(options: ModalLabelOptions): <T extends Function>(constructor: T) => void;
|
|
143
|
-
export declare function ModalTextDisplay(options:
|
|
181
|
+
export declare function ModalTextDisplay(options: ModalTextDisplay): <T extends Function>(constructor: T) => void;
|
|
144
182
|
export declare function TextInputFieldInjection(customId: string): (target: Object, _propertyKey: string | symbol | undefined, parameterIndex: number) => void;
|
|
145
183
|
export declare function SelectMenuFieldInjection(customId: string): (target: Object, _propertyKey: string | symbol | undefined, parameterIndex: number) => void;
|
|
146
184
|
export declare function FileUploadFieldInjection(customId: string): (target: Object, _propertyKey: string | symbol | undefined, parameterIndex: number) => void;
|
|
185
|
+
export declare function RadioGroupFieldInjection(customId: string): (target: Object, _propertyKey: string | symbol | undefined, parameterIndex: number) => void;
|
|
186
|
+
export declare function CheckboxFieldInjection(customId: string): (target: Object, _propertyKey: string | symbol | undefined, parameterIndex: number) => void;
|
|
187
|
+
export declare function CheckboxGroupFieldInjection(customId: string): (target: Object, _propertyKey: string | symbol | undefined, parameterIndex: number) => void;
|
|
147
188
|
export {};
|
|
148
189
|
//# sourceMappingURL=MessageComponentDecorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageComponentDecorator.d.ts","sourceRoot":"","sources":["../../../src/structures/decorators/MessageComponentDecorator.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MessageComponentDecorator.d.ts","sourceRoot":"","sources":["../../../src/structures/decorators/MessageComponentDecorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmE,wBAAwB,EAAqB,YAAY,EAAmG,kBAAkB,EAA2C,MAAM,YAAY,CAAC;AACtT,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIjF,KAAK,gBAAgB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC;AAErF,MAAM,MAAM,aAAa,GAAG,wBAAwB,GAAG,iBAA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MAAM,UAOrG"}
|
|
@@ -13,6 +13,9 @@ exports.ModalTextDisplay = ModalTextDisplay;
|
|
|
13
13
|
exports.TextInputFieldInjection = TextInputFieldInjection;
|
|
14
14
|
exports.SelectMenuFieldInjection = SelectMenuFieldInjection;
|
|
15
15
|
exports.FileUploadFieldInjection = FileUploadFieldInjection;
|
|
16
|
+
exports.RadioGroupFieldInjection = RadioGroupFieldInjection;
|
|
17
|
+
exports.CheckboxFieldInjection = CheckboxFieldInjection;
|
|
18
|
+
exports.CheckboxGroupFieldInjection = CheckboxGroupFieldInjection;
|
|
16
19
|
const discord_js_1 = require("discord.js");
|
|
17
20
|
const _1 = require(".");
|
|
18
21
|
const Constants_1 = require("../Constants");
|
|
@@ -180,6 +183,34 @@ function ModalLabel(options) {
|
|
|
180
183
|
if ("required" in component)
|
|
181
184
|
fileUpload.setRequired(component.required);
|
|
182
185
|
label.setFileUploadComponent(fileUpload);
|
|
186
|
+
break;
|
|
187
|
+
case "radio_group":
|
|
188
|
+
const radioGroup = new discord_js_1.RadioGroupBuilder()
|
|
189
|
+
.setCustomId(component.customId)
|
|
190
|
+
.addOptions(component.options);
|
|
191
|
+
if ("required" in component)
|
|
192
|
+
radioGroup.setRequired(component.required);
|
|
193
|
+
label.setRadioGroupComponent(radioGroup);
|
|
194
|
+
break;
|
|
195
|
+
case "checkbox":
|
|
196
|
+
const checkbox = new discord_js_1.CheckboxBuilder()
|
|
197
|
+
.setCustomId(component.customId);
|
|
198
|
+
if ("default" in component)
|
|
199
|
+
checkbox.setDefault(component.default);
|
|
200
|
+
label.setCheckboxComponent(checkbox);
|
|
201
|
+
break;
|
|
202
|
+
case "checkbox_group":
|
|
203
|
+
const checkboxGroup = new discord_js_1.CheckboxGroupBuilder()
|
|
204
|
+
.setCustomId(component.customId)
|
|
205
|
+
.addOptions(component.options);
|
|
206
|
+
if (typeof component.minValues == "number")
|
|
207
|
+
checkboxGroup.setMinValues(component.minValues);
|
|
208
|
+
if (typeof component.maxValues == "number")
|
|
209
|
+
checkboxGroup.setMaxValues(component.maxValues);
|
|
210
|
+
if ("required" in component)
|
|
211
|
+
checkboxGroup.setRequired(component.required);
|
|
212
|
+
label.setCheckboxGroupComponent(checkboxGroup);
|
|
213
|
+
break;
|
|
183
214
|
}
|
|
184
215
|
components.push({ customId: component.customId, component: label, outerType: "label", innerType: component.type });
|
|
185
216
|
Reflect.defineMetadata(_1.MODAL_COMPONENTS_KEY, components, constructor);
|
|
@@ -215,3 +246,24 @@ function FileUploadFieldInjection(customId) {
|
|
|
215
246
|
Reflect.defineMetadata(_1.MODAL_FILE_UPLOAD_VALUE_INDEX_KEY, fields, target);
|
|
216
247
|
};
|
|
217
248
|
}
|
|
249
|
+
function RadioGroupFieldInjection(customId) {
|
|
250
|
+
return function (target, _propertyKey, parameterIndex) {
|
|
251
|
+
const fields = Reflect.getMetadata(_1.MODAL_SELECT_MENU_VALUE_INDEX_KEY, target) ?? [];
|
|
252
|
+
fields.push({ index: parameterIndex, customId, type: "radio_group" });
|
|
253
|
+
Reflect.defineMetadata(_1.MODAL_SELECT_MENU_VALUE_INDEX_KEY, fields, target);
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
function CheckboxFieldInjection(customId) {
|
|
257
|
+
return function (target, _propertyKey, parameterIndex) {
|
|
258
|
+
const fields = Reflect.getMetadata(_1.MODAL_SELECT_MENU_VALUE_INDEX_KEY, target) ?? [];
|
|
259
|
+
fields.push({ index: parameterIndex, customId, type: "checkbox" });
|
|
260
|
+
Reflect.defineMetadata(_1.MODAL_SELECT_MENU_VALUE_INDEX_KEY, fields, target);
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
function CheckboxGroupFieldInjection(customId) {
|
|
264
|
+
return function (target, _propertyKey, parameterIndex) {
|
|
265
|
+
const fields = Reflect.getMetadata(_1.MODAL_SELECT_MENU_VALUE_INDEX_KEY, target) ?? [];
|
|
266
|
+
fields.push({ index: parameterIndex, customId, type: "checkbox_group" });
|
|
267
|
+
Reflect.defineMetadata(_1.MODAL_SELECT_MENU_VALUE_INDEX_KEY, fields, target);
|
|
268
|
+
};
|
|
269
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oopscord.js",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"description": "An easy way to make discord apps in typescript.",
|
|
5
5
|
"main": "dist",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^20.19.35",
|
|
33
|
-
"discord.js": "
|
|
33
|
+
"discord.js": "14.26.4",
|
|
34
34
|
"typescript": "^5.8.3",
|
|
35
35
|
"vitest": "^4.0.18",
|
|
36
36
|
"yarn": "^1.22.21"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../src/structures/Client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,YAAY,CAAC;AAEjD,qBAAa,MAAO,SAAQ,SAAS;IAC3B,gBAAgB;IA8BhB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAK9C"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Client = void 0;
|
|
4
|
-
const discord_js_1 = require("discord.js");
|
|
5
|
-
class Client extends discord_js_1.Client {
|
|
6
|
-
async registerCommands() {
|
|
7
|
-
let oldCache = await Util.getCache();
|
|
8
|
-
let newCache = Util.clientToCachedJSON(this);
|
|
9
|
-
if (!Util.arraysEqual(oldCache.commands, newCache.commands) || !Util.arraysEqual(oldCache.contextmenus, newCache.contextmenus)) {
|
|
10
|
-
let commands = [];
|
|
11
|
-
this.commands.forEach(c => commands.push(c.toJSON()));
|
|
12
|
-
this.contextMenuCommands.forEach(c => commands.push(c.toJSON()));
|
|
13
|
-
if (this.kommando.test.enable) {
|
|
14
|
-
if (this.kommando.test.guild == null)
|
|
15
|
-
throw new TypeError("[options.test.guild] Expected string. but got null instead.");
|
|
16
|
-
await this.restManager.put(Routes.applicationGuildCommands(this.user.id, this.kommando.test.guild), { body: commands });
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
await this.restManager.put(Routes.applicationCommands(this.user.id), { body: commands });
|
|
20
|
-
}
|
|
21
|
-
await Util.cacheClient(this);
|
|
22
|
-
}
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
async login(token) {
|
|
26
|
-
this.restManager.setToken(token);
|
|
27
|
-
return await super.login(token);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.Client = Client;
|
|
31
|
-
function mergeDefault(def, given) {
|
|
32
|
-
if (!given)
|
|
33
|
-
return def;
|
|
34
|
-
for (const key in def) {
|
|
35
|
-
if (!Object.hasOwn(given, key) || given[key] === undefined) {
|
|
36
|
-
given[key] = def[key];
|
|
37
|
-
}
|
|
38
|
-
else if (given[key] === Object(given[key])) {
|
|
39
|
-
given[key] = mergeDefault(def[key], given[key]);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return given;
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseModal.test.d.ts","sourceRoot":"","sources":["../../../src/structures/components/BaseModal.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
const vitest_1 = require("vitest");
|
|
10
|
-
const BaseModal_1 = require("./BaseModal");
|
|
11
|
-
const decorators_1 = require("../decorators");
|
|
12
|
-
let TestModal = class TestModal extends BaseModal_1.BaseModal {
|
|
13
|
-
};
|
|
14
|
-
TestModal = __decorate([
|
|
15
|
-
(0, decorators_1.Modal)({
|
|
16
|
-
title: "Test Modal",
|
|
17
|
-
customId: "test-modal"
|
|
18
|
-
})
|
|
19
|
-
], TestModal);
|
|
20
|
-
(0, vitest_1.describe)("TestModal.getInput", () => {
|
|
21
|
-
let mockInteraction;
|
|
22
|
-
let mockClient;
|
|
23
|
-
let listenerCallback;
|
|
24
|
-
(0, vitest_1.beforeEach)(() => {
|
|
25
|
-
mockClient = {
|
|
26
|
-
on: vitest_1.vi.fn((event, callback) => {
|
|
27
|
-
if (event === "interactionCreate") {
|
|
28
|
-
listenerCallback = callback;
|
|
29
|
-
}
|
|
30
|
-
}),
|
|
31
|
-
off: vitest_1.vi.fn(),
|
|
32
|
-
};
|
|
33
|
-
mockInteraction = {
|
|
34
|
-
replied: false,
|
|
35
|
-
deferred: false,
|
|
36
|
-
showModal: vitest_1.vi.fn(),
|
|
37
|
-
client: mockClient,
|
|
38
|
-
valueOf() {
|
|
39
|
-
return "";
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
vitest_1.vi.useFakeTimers();
|
|
43
|
-
});
|
|
44
|
-
(0, vitest_1.afterEach)(() => {
|
|
45
|
-
vitest_1.vi.clearAllMocks();
|
|
46
|
-
vitest_1.vi.useRealTimers();
|
|
47
|
-
});
|
|
48
|
-
(0, vitest_1.it)("should reject if interaction is already replied", async () => {
|
|
49
|
-
mockInteraction.replied = true;
|
|
50
|
-
const promise = TestModal.getInput(mockInteraction);
|
|
51
|
-
await (0, vitest_1.expect)(promise).rejects.toBe("Interaction already replied.");
|
|
52
|
-
});
|
|
53
|
-
(0, vitest_1.it)("should reject if interaction is already deferred", async () => {
|
|
54
|
-
mockInteraction.deferred = true;
|
|
55
|
-
const promise = TestModal.getInput(mockInteraction);
|
|
56
|
-
await (0, vitest_1.expect)(promise).rejects.toBe("Interaction already replied.");
|
|
57
|
-
});
|
|
58
|
-
(0, vitest_1.it)("should show modal with custom ID", async () => {
|
|
59
|
-
const itr = mockInteraction;
|
|
60
|
-
const promise = await TestModal.getInput(itr);
|
|
61
|
-
(0, vitest_1.expect)(itr.showModal).toHaveBeenCalled();
|
|
62
|
-
const modalArg = itr.showModal.mock.calls[0][0];
|
|
63
|
-
(0, vitest_1.expect)(modalArg.data.custom_id).toBeDefined();
|
|
64
|
-
});
|
|
65
|
-
(0, vitest_1.it)("should resolve with fields when modal submit interaction is received", async () => {
|
|
66
|
-
const mockFields = { getTextInputValue: vitest_1.vi.fn() };
|
|
67
|
-
const customId = "test-id";
|
|
68
|
-
const promise = TestModal.getInput(mockInteraction);
|
|
69
|
-
const modalSubmitInteraction = {
|
|
70
|
-
isModalSubmit: () => true,
|
|
71
|
-
customId,
|
|
72
|
-
deferUpdate: vitest_1.vi.fn().mockResolvedValue(undefined),
|
|
73
|
-
fields: mockFields,
|
|
74
|
-
client: mockClient,
|
|
75
|
-
};
|
|
76
|
-
listenerCallback(modalSubmitInteraction);
|
|
77
|
-
const result = await promise;
|
|
78
|
-
(0, vitest_1.expect)(result).toBe(mockFields);
|
|
79
|
-
(0, vitest_1.expect)(modalSubmitInteraction.deferUpdate).toHaveBeenCalled();
|
|
80
|
-
(0, vitest_1.expect)(mockClient.off).toHaveBeenCalled();
|
|
81
|
-
});
|
|
82
|
-
(0, vitest_1.it)("should reject with timeout message after 180 seconds", async () => {
|
|
83
|
-
const promise = TestModal.getInput(mockInteraction);
|
|
84
|
-
vitest_1.vi.advanceTimersByTime(180000);
|
|
85
|
-
await (0, vitest_1.expect)(promise).rejects.toBe("Timed out");
|
|
86
|
-
(0, vitest_1.expect)(mockClient.off).toHaveBeenCalled();
|
|
87
|
-
});
|
|
88
|
-
(0, vitest_1.it)("should ignore non-modal-submit interactions", async () => {
|
|
89
|
-
const mockFields = { getTextInputValue: vitest_1.vi.fn() };
|
|
90
|
-
const promise = TestModal.getInput(mockInteraction);
|
|
91
|
-
const regularInteraction = {
|
|
92
|
-
isModalSubmit: () => false,
|
|
93
|
-
};
|
|
94
|
-
listenerCallback(regularInteraction);
|
|
95
|
-
vitest_1.vi.advanceTimersByTime(180000);
|
|
96
|
-
await (0, vitest_1.expect)(promise).rejects.toBe("Timed out");
|
|
97
|
-
});
|
|
98
|
-
(0, vitest_1.it)("should ignore modal submit with different custom ID", async () => {
|
|
99
|
-
const promise = TestModal.getInput(mockInteraction);
|
|
100
|
-
const wrongIdInteraction = {
|
|
101
|
-
isModalSubmit: () => true,
|
|
102
|
-
customId: "wrong-id",
|
|
103
|
-
client: mockClient,
|
|
104
|
-
};
|
|
105
|
-
listenerCallback(wrongIdInteraction);
|
|
106
|
-
vitest_1.vi.advanceTimersByTime(180000);
|
|
107
|
-
await (0, vitest_1.expect)(promise).rejects.toBe("Timed out");
|
|
108
|
-
});
|
|
109
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import "reflect-metadata";
|
|
2
|
-
import { ClientEvents, ClientOptions } from "discord.js";
|
|
3
|
-
export interface ModuleOptions extends ClientOptions {
|
|
4
|
-
token: string;
|
|
5
|
-
imports: (new (...args: any[]) => any)[];
|
|
6
|
-
test?: {
|
|
7
|
-
enable: boolean;
|
|
8
|
-
guild: null | string;
|
|
9
|
-
};
|
|
10
|
-
noAutoHandle?: boolean;
|
|
11
|
-
disableCache?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const defaultModuleOptions: ModuleOptions;
|
|
14
|
-
export interface DiscordModuleEvents {
|
|
15
|
-
eventName: keyof ClientEvents;
|
|
16
|
-
methodName: string;
|
|
17
|
-
}
|
|
18
|
-
export declare function DiscordModule(option1: ModuleOptions): <TFunction extends Function>(constructor: TFunction) => void;
|
|
19
|
-
export declare function EventHandler(eventName: keyof ClientEvents): MethodDecorator;
|
|
20
|
-
//# sourceMappingURL=DiscordModule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DiscordModule.d.ts","sourceRoot":"","sources":["../../../src/structures/decorators/DiscordModule.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAGzD,MAAM,WAAW,aAAc,SAAQ,aAAa;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,EAAE,CAAC;IACzC,IAAI,CAAC,EAAE;QACH,MAAM,EAAE,OAAO,CAAC;QAChB,KAAK,EAAE,IAAI,GAAG,MAAM,CAAA;KACvB,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,oBAAoB,EAAE,aAUlC,CAAA;AAED,MAAM,WAAW,mBAAmB;IAChC,SAAS,EAAE,MAAM,YAAY,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;CACtB;AAQD,wBAAgB,aAAa,CAAC,OAAO,EAAE,aAAa,gEAMnD;AAED,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,YAAY,GAAG,eAAe,CAQ3E"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventHandler = exports.DiscordModule = exports.defaultModuleOptions = void 0;
|
|
4
|
-
require("reflect-metadata");
|
|
5
|
-
const Constants_1 = require("./Constants");
|
|
6
|
-
exports.defaultModuleOptions = {
|
|
7
|
-
token: "",
|
|
8
|
-
imports: [],
|
|
9
|
-
test: {
|
|
10
|
-
enable: false,
|
|
11
|
-
guild: null,
|
|
12
|
-
},
|
|
13
|
-
noAutoHandle: false,
|
|
14
|
-
disableCache: false,
|
|
15
|
-
intents: []
|
|
16
|
-
};
|
|
17
|
-
// export interface ExternalModuleEvents {
|
|
18
|
-
// eventName: string;
|
|
19
|
-
// methodName: string;
|
|
20
|
-
// eventEmitter: EventEmitter;
|
|
21
|
-
// }
|
|
22
|
-
function DiscordModule(option1) {
|
|
23
|
-
return function (constructor) {
|
|
24
|
-
const options = mergeDefault(exports.defaultModuleOptions, option1);
|
|
25
|
-
Reflect.defineMetadata(Constants_1.DICSORD_MODULE_OPTIONS_KEY, options, constructor);
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
exports.DiscordModule = DiscordModule;
|
|
29
|
-
function EventHandler(eventName) {
|
|
30
|
-
return function (target, propertyKey, propertyDescriptor) {
|
|
31
|
-
const events = Reflect.getMetadata(Constants_1.DISCORD_MODULE_INTERNAL_EVENTS_KEY, target) ?? [];
|
|
32
|
-
events.push({ eventName, methodName: propertyKey });
|
|
33
|
-
Reflect.defineMetadata(Constants_1.DISCORD_MODULE_INTERNAL_EVENTS_KEY, events, target.constructor);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
exports.EventHandler = EventHandler;
|
|
37
|
-
// export function ExternalEventHandler(eventName: string, eventEmitter: EventEmitter): MethodDecorator {
|
|
38
|
-
// return function<T>(target: Object, propertyKey: string | symbol, propertyDescriptor: TypedPropertyDescriptor<T>) {
|
|
39
|
-
// const events: ExternalModuleEvents[] = Reflect.getMetadata(DISCORD_MODULE_EXTERNAL_EVENTS_KEY, target) ?? [];
|
|
40
|
-
// events.push({ eventName, methodName: propertyKey as string, eventEmitter });
|
|
41
|
-
// Reflect.defineMetadata(DISCORD_MODULE_EXTERNAL_EVENTS_KEY, events, target.constructor);
|
|
42
|
-
// }
|
|
43
|
-
// }
|
|
44
|
-
function mergeDefault(def, given) {
|
|
45
|
-
if (!given)
|
|
46
|
-
return def;
|
|
47
|
-
for (const key in def) {
|
|
48
|
-
if (!Object.hasOwn(given, key) || given[key] === undefined) {
|
|
49
|
-
given[key] = def[key];
|
|
50
|
-
}
|
|
51
|
-
else if (given[key] === Object(given[key])) {
|
|
52
|
-
given[key] = mergeDefault(def[key], given[key]);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return given;
|
|
56
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { InteractionButtonOptions, LinkButtonOptions } from "../structures/decorators/MessageComponentDecorator";
|
|
2
|
-
export declare class InteractionUtil {
|
|
3
|
-
static isInteractionButtonOptions(options: InteractionButtonOptions | LinkButtonOptions): options is InteractionButtonOptions;
|
|
4
|
-
}
|
|
5
|
-
//# sourceMappingURL=InteractionUtil.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InteractionUtil.d.ts","sourceRoot":"","sources":["../../src/utils/InteractionUtil.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AAEjH,qBAAa,eAAe;IACxB,MAAM,CAAC,0BAA0B,CAAC,OAAO,EAAE,wBAAwB,GAAG,iBAAiB,GAAG,OAAO,IAAI,wBAAwB;CAGhI"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InteractionUtil = void 0;
|
|
4
|
-
const v10_1 = require("discord-api-types/v10");
|
|
5
|
-
class InteractionUtil {
|
|
6
|
-
static isInteractionButtonOptions(options) {
|
|
7
|
-
return options.style != v10_1.ButtonStyle.Link;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.InteractionUtil = InteractionUtil;
|
package/tsconfig.json
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
4
|
-
|
|
5
|
-
/* Projects */
|
|
6
|
-
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
|
7
|
-
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
8
|
-
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
|
9
|
-
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
|
10
|
-
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
11
|
-
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
12
|
-
|
|
13
|
-
/* Language and Environment */
|
|
14
|
-
"target": "esnext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
15
|
-
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
16
|
-
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
17
|
-
"experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
|
18
|
-
"emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
|
19
|
-
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
20
|
-
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
21
|
-
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
|
22
|
-
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
|
23
|
-
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
24
|
-
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
25
|
-
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
26
|
-
|
|
27
|
-
/* Modules */
|
|
28
|
-
"module": "NodeNext", /* Specify what module code is generated. */
|
|
29
|
-
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
30
|
-
"moduleResolution": "nodenext", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
31
|
-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
32
|
-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
33
|
-
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
34
|
-
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
35
|
-
// "types": [ "reflect-metadata" ], /* Specify type package names to be included without being referenced in a source file. */
|
|
36
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
37
|
-
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
38
|
-
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
|
39
|
-
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
|
40
|
-
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
|
41
|
-
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
|
42
|
-
// "resolveJsonModule": true, /* Enable importing .json files. */
|
|
43
|
-
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
44
|
-
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
45
|
-
|
|
46
|
-
/* JavaScript Support */
|
|
47
|
-
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
48
|
-
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
49
|
-
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
50
|
-
|
|
51
|
-
/* Emit */
|
|
52
|
-
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
53
|
-
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
54
|
-
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
55
|
-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
56
|
-
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
57
|
-
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
|
58
|
-
"outDir": "./dist", /* Specify an output folder for all emitted files. */
|
|
59
|
-
// "removeComments": true, /* Disable emitting comments. */
|
|
60
|
-
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
61
|
-
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
62
|
-
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
|
63
|
-
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
64
|
-
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
65
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
66
|
-
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
67
|
-
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
68
|
-
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
69
|
-
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
70
|
-
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
71
|
-
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
72
|
-
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
73
|
-
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
74
|
-
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
75
|
-
|
|
76
|
-
/* Interop Constraints */
|
|
77
|
-
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
78
|
-
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
|
79
|
-
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
80
|
-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
81
|
-
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
82
|
-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
83
|
-
|
|
84
|
-
/* Type Checking */
|
|
85
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
86
|
-
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
87
|
-
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
88
|
-
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
89
|
-
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
90
|
-
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
91
|
-
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
92
|
-
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
93
|
-
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
94
|
-
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
95
|
-
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
96
|
-
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
97
|
-
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
98
|
-
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
99
|
-
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
100
|
-
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
101
|
-
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
102
|
-
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
103
|
-
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
104
|
-
|
|
105
|
-
/* Completeness */
|
|
106
|
-
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
107
|
-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
108
|
-
},
|
|
109
|
-
"include": [ "src" ]
|
|
110
|
-
}
|