@openclaw/discord 2026.9.2 → 2026.9.3
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/dist/action-runtime-api.js +1 -1
- package/dist/activities-api-D--xtQQu.js +758 -0
- package/dist/activities-api.js +1 -1
- package/dist/allow-list-DWEio925.js +374 -0
- package/dist/api-LIV--eMq.js +161 -0
- package/dist/api.js +14 -14
- package/dist/approval-handler.runtime-CUNkTLDO.js +377 -0
- package/dist/audit-DzHj2Z4w.js +25 -0
- package/dist/channel-aAywxCij.js +1049 -0
- package/dist/channel-access-C12aDZ0p.js +62 -0
- package/dist/channel-actions.runtime-rmse1yrM.js +319 -0
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/channel.setup-CpAwAiS0.js +301 -0
- package/dist/components-kvIwhN7i.js +1018 -0
- package/dist/config-schema-r38UkM_J.js +675 -0
- package/dist/conversation-binding-route-qfe7oPy5.js +43 -0
- package/dist/directory-config-D1uDGbWh.js +49 -0
- package/dist/directory-contract-api.js +1 -1
- package/dist/directory-live-C5o1uKlw.js +164 -0
- package/dist/discord-CmL3ati-.js +3088 -0
- package/dist/doctor-DgKMH6N7.js +253 -0
- package/dist/doctor-contract-api.js +1 -1
- package/dist/handle-action.guild-admin-D4XdoA8-.js +316 -0
- package/dist/index.js +1 -1
- package/dist/live-policy-config-BblutQAq.js +74 -0
- package/dist/message-handler-B0DbuhWz.js +560 -0
- package/dist/message-handler.preflight-BkHVlYis.js +1154 -0
- package/dist/message-handler.process-CWh432Ak.js +1864 -0
- package/dist/outbound-adapter-CO2BRlRl.js +498 -0
- package/dist/outbound-components-BvskBqEN.js +100 -0
- package/dist/outbound-session-route-DZBYPGTR.js +667 -0
- package/dist/pluralkit-BiUW53Yn.js +43 -0
- package/dist/probe-BcoN44eK.js +180 -0
- package/dist/probe.runtime-BnuED0fI.js +2 -0
- package/dist/provider-PI8UiejY.js +10631 -0
- package/dist/provider-session.runtime-BejUb3gm.js +6 -0
- package/dist/provider.runtime-C-Oh3OHA.js +2 -0
- package/dist/realtime-session.runtime-MqPrvmQ1.js +1670 -0
- package/dist/resolve-allowlist-common-ChPf0Qy7.js +34 -0
- package/dist/resolve-channels-VbpLmUS8.js +266 -0
- package/dist/resolve-users-D-wRFsd5.js +121 -0
- package/dist/retry-B0lQ1Ado.js +603 -0
- package/dist/runtime-Cv8GdXSO.js +1770 -0
- package/dist/runtime-D-ZFlMQ2.js +80 -0
- package/dist/runtime-api.js +19 -19
- package/dist/send-Bdp3zZH5.js +1081 -0
- package/dist/send.components-Bj22B3_O.js +518 -0
- package/dist/send.outbound-DF0P3C9J.js +752 -0
- package/dist/send.shared-D4BAjlRo.js +740 -0
- package/dist/sender-identity-f3l5OYgV.js +43 -0
- package/dist/setup-plugin-api.js +1 -1
- package/dist/shared-CPPR0Xo4.js +227 -0
- package/dist/subagent-hooks-BAwybBDC.js +49 -0
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/system-events-B6HkUhF_.js +34 -0
- package/dist/target-resolver-BgKUUwLy.js +84 -0
- package/dist/targets-fCxslBZ3.js +3 -0
- package/dist/thread-bindings-B0wnEg_y.js +239 -0
- package/dist/thread-bindings.manager-DM7M3vzn.js +673 -0
- package/dist/thread-bindings.session-updates-CSBmgCcx.js +55 -0
- package/dist/thread-bindings.state-jNRrsgzV.js +354 -0
- package/dist/transcripts-source-VkgenQv-.js +1689 -0
- package/dist/transcripts-source-api.js +1 -1
- package/dist/typing-DuBg1U8Q.js +14 -0
- package/dist/voice-runtime-BhRqlbEt.js +3607 -0
- package/node_modules/@napi-rs/wasm-runtime/dist/emnapi-plugins.cjs +1468 -0
- package/node_modules/@napi-rs/wasm-runtime/dist/emnapi-plugins.js +1466 -0
- package/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs +237 -0
- package/node_modules/@napi-rs/wasm-runtime/dist/fs.js +18185 -0
- package/node_modules/@napi-rs/wasm-runtime/fs-proxy.js +316 -0
- package/node_modules/@napi-rs/wasm-runtime/package.json +67 -0
- package/node_modules/@napi-rs/wasm-runtime/runtime.cjs +39 -0
- package/node_modules/@napi-rs/wasm-runtime/runtime.js +36 -0
- package/node_modules/@snazzah/davey-android-arm-eabi/README.md +3 -0
- package/node_modules/@snazzah/davey-android-arm-eabi/davey.android-arm-eabi.node +0 -0
- package/node_modules/@snazzah/davey-android-arm-eabi/package.json +40 -0
- package/node_modules/@snazzah/davey-android-arm64/README.md +3 -0
- package/node_modules/@snazzah/davey-android-arm64/davey.android-arm64.node +0 -0
- package/node_modules/@snazzah/davey-android-arm64/package.json +40 -0
- package/node_modules/@snazzah/davey-darwin-arm64/README.md +3 -0
- package/node_modules/@snazzah/davey-darwin-arm64/davey.darwin-arm64.node +0 -0
- package/node_modules/@snazzah/davey-darwin-arm64/package.json +40 -0
- package/node_modules/@snazzah/davey-darwin-x64/README.md +3 -0
- package/node_modules/@snazzah/davey-darwin-x64/davey.darwin-x64.node +0 -0
- package/node_modules/@snazzah/davey-darwin-x64/package.json +40 -0
- package/node_modules/@snazzah/davey-freebsd-x64/README.md +3 -0
- package/node_modules/@snazzah/davey-freebsd-x64/davey.freebsd-x64.node +0 -0
- package/node_modules/@snazzah/davey-freebsd-x64/package.json +40 -0
- package/node_modules/@snazzah/davey-linux-arm-gnueabihf/README.md +3 -0
- package/node_modules/@snazzah/davey-linux-arm-gnueabihf/davey.linux-arm-gnueabihf.node +0 -0
- package/node_modules/@snazzah/davey-linux-arm-gnueabihf/package.json +40 -0
- package/node_modules/@snazzah/davey-linux-arm64-gnu/README.md +3 -0
- package/node_modules/@snazzah/davey-linux-arm64-gnu/davey.linux-arm64-gnu.node +0 -0
- package/node_modules/@snazzah/davey-linux-arm64-gnu/package.json +43 -0
- package/node_modules/@snazzah/davey-linux-arm64-musl/README.md +3 -0
- package/node_modules/@snazzah/davey-linux-arm64-musl/davey.linux-arm64-musl.node +0 -0
- package/node_modules/@snazzah/davey-linux-arm64-musl/package.json +43 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/README.md +3 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasi-browser.js +71 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasi.cjs +123 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasm32-wasi.wasm +0 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/package.json +45 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/wasi-worker-browser.mjs +32 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/wasi-worker.mjs +63 -0
- package/node_modules/@snazzah/davey-win32-arm64-msvc/README.md +3 -0
- package/node_modules/@snazzah/davey-win32-arm64-msvc/davey.win32-arm64-msvc.node +0 -0
- package/node_modules/@snazzah/davey-win32-arm64-msvc/package.json +40 -0
- package/node_modules/@snazzah/davey-win32-ia32-msvc/README.md +3 -0
- package/node_modules/@snazzah/davey-win32-ia32-msvc/davey.win32-ia32-msvc.node +0 -0
- package/node_modules/@snazzah/davey-win32-ia32-msvc/package.json +40 -0
- package/node_modules/@snazzah/davey-win32-x64-msvc/README.md +3 -0
- package/node_modules/@snazzah/davey-win32-x64-msvc/davey.win32-x64-msvc.node +0 -0
- package/node_modules/@snazzah/davey-win32-x64-msvc/package.json +40 -0
- package/node_modules/@tybys/wasm-util/README.md +193 -0
- package/node_modules/@tybys/wasm-util/dist/tsdoc-metadata.json +11 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.d.ts +423 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +2932 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +2932 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +1 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.js +2954 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +1 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/asyncify.js +158 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/index.js +13 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/jspi.js +46 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/load.js +97 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/memory.js +35 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/error.js +103 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/fd.js +268 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/fs.js +3 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/index.js +192 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/path.js +316 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +1599 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/rights.js +141 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/types.js +220 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/util.js +128 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/webassembly.js +13 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/asyncify.mjs +153 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/index.mjs +9 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/jspi.mjs +39 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/load.mjs +89 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/memory.mjs +28 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/error.mjs +97 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/fd.mjs +256 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/index.mjs +186 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/path.mjs +310 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +1593 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/rights.mjs +135 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/types.mjs +216 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/util.mjs +113 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/webassembly.mjs +9 -0
- package/node_modules/@tybys/wasm-util/package.json +58 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/node_modules/@types/node/crypto.d.ts +3952 -0
- package/node_modules/@types/node/dgram.d.ts +652 -0
- package/node_modules/@types/node/fs/promises.d.ts +1477 -0
- package/node_modules/@types/node/fs.d.ts +4803 -0
- package/node_modules/@types/node/http.d.ts +2218 -0
- package/node_modules/@types/node/http2.d.ts +2497 -0
- package/node_modules/@types/node/index.d.ts +116 -0
- package/node_modules/@types/node/inspector.d.ts +265 -0
- package/node_modules/@types/node/net.d.ts +1062 -0
- package/node_modules/@types/node/package.json +155 -0
- package/node_modules/@types/node/quic.d.ts +2151 -0
- package/node_modules/@types/node/stream/iter.d.ts +452 -0
- package/node_modules/@types/node/tls.d.ts +1217 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +467 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +118 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +118 -0
- package/node_modules/@types/node/tty.d.ts +226 -0
- package/node_modules/@types/node/vfs.d.ts +210 -0
- package/node_modules/@types/node/vm.d.ts +1136 -0
- package/node_modules/discord-api-types/CHANGELOG.md +14 -0
- package/node_modules/discord-api-types/gateway/index.mjs +1 -0
- package/node_modules/discord-api-types/gateway/v10.d.ts +20 -0
- package/node_modules/discord-api-types/gateway/v10.d.ts.map +1 -1
- package/node_modules/discord-api-types/gateway/v10.js +15 -1
- package/node_modules/discord-api-types/gateway/v10.js.map +1 -1
- package/node_modules/discord-api-types/gateway/v10.mjs +1 -0
- package/node_modules/discord-api-types/gateway/v9.d.ts +20 -0
- package/node_modules/discord-api-types/gateway/v9.d.ts.map +1 -1
- package/node_modules/discord-api-types/gateway/v9.js +15 -1
- package/node_modules/discord-api-types/gateway/v9.js.map +1 -1
- package/node_modules/discord-api-types/gateway/v9.mjs +1 -0
- package/node_modules/discord-api-types/package.json +3 -3
- package/node_modules/discord-api-types/payloads/v10/channel.d.ts +8 -2
- package/node_modules/discord-api-types/payloads/v10/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/channel.js +6 -0
- package/node_modules/discord-api-types/payloads/v10/channel.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.d.ts +1 -1
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/channel.d.ts +7 -1
- package/node_modules/discord-api-types/payloads/v9/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/channel.js +6 -0
- package/node_modules/discord-api-types/payloads/v9/channel.js.map +1 -1
- package/node_modules/discord-api-types/rest/v10/channel.d.ts +14 -2
- package/node_modules/discord-api-types/rest/v10/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/channel.js.map +1 -1
- package/node_modules/discord-api-types/rest/v10/guild.d.ts +7 -3
- package/node_modules/discord-api-types/rest/v10/guild.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/interactions.d.ts +8 -8
- package/node_modules/discord-api-types/rest/v10/interactions.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/channel.d.ts +14 -2
- package/node_modules/discord-api-types/rest/v9/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/channel.js.map +1 -1
- package/node_modules/discord-api-types/rest/v9/guild.d.ts +7 -3
- package/node_modules/discord-api-types/rest/v9/guild.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/interactions.d.ts +8 -8
- package/node_modules/discord-api-types/rest/v9/interactions.d.ts.map +1 -1
- package/node_modules/discord-api-types/v10.mjs +1 -0
- package/node_modules/discord-api-types/v9.mjs +1 -0
- package/node_modules/uuid/dist/uuid-bin.d.ts +1 -0
- package/openclaw.plugin.json +15 -1
- package/package.json +5 -5
- package/dist/activities-api-CTcGq3Hf.js +0 -758
- package/dist/allow-list-DBTtR2dz.js +0 -363
- package/dist/api-BfmEP6wp.js +0 -161
- package/dist/approval-handler.runtime-DUSe5fyH.js +0 -376
- package/dist/audit-DpPfwoJM.js +0 -25
- package/dist/channel-BHajPgwR.js +0 -1022
- package/dist/channel-actions.runtime-DS8pXo0S.js +0 -319
- package/dist/channel.setup-BWmMe1tT.js +0 -301
- package/dist/components-BimX47Mq.js +0 -1018
- package/dist/config-schema-B797-Spt.js +0 -669
- package/dist/conversation-binding-route-DuR5NGIx.js +0 -43
- package/dist/directory-config-CD2v2Szs.js +0 -49
- package/dist/directory-live-DaJzWJ2N.js +0 -164
- package/dist/doctor-D4HH1inA.js +0 -253
- package/dist/handle-action.guild-admin-4We6wWQU.js +0 -316
- package/dist/ingress-identity-XNmW-mZS.js +0 -60
- package/dist/message-handler-DhgBabyU.js +0 -581
- package/dist/message-handler.preflight-oZ7dQCd0.js +0 -1120
- package/dist/message-handler.process-BzCYf1pa.js +0 -1859
- package/dist/message-text-DK4NnBg-.js +0 -571
- package/dist/outbound-adapter-CtggmGh9.js +0 -497
- package/dist/outbound-components-Dn8SJWMS.js +0 -100
- package/dist/outbound-session-route-Q_HEusBQ.js +0 -667
- package/dist/owner-access-Cp8r6Ipf.js +0 -109
- package/dist/pluralkit-BY75YcK0.js +0 -43
- package/dist/probe-3ovFAp3b.js +0 -180
- package/dist/probe.runtime-BckHn3cJ.js +0 -2
- package/dist/provider-session.runtime-BL2lHBH7.js +0 -6
- package/dist/provider-uKmmrDM4.js +0 -10401
- package/dist/provider.runtime-C-IkWF2w.js +0 -2
- package/dist/realtime-session.runtime-CGYm1t_0.js +0 -1689
- package/dist/resolve-allowlist-common-sKIKy-cF.js +0 -34
- package/dist/resolve-channels-CoiMlWy0.js +0 -266
- package/dist/resolve-users-DJpiokfW.js +0 -121
- package/dist/retry-DQt1zDgH.js +0 -3685
- package/dist/retry-after-BrLjLUJi.js +0 -13
- package/dist/runtime-BHsdEdr5.js +0 -80
- package/dist/runtime-Ghtfh5ZA.js +0 -1757
- package/dist/send-CZeWKUiA.js +0 -1064
- package/dist/send.components-BG5IDABj.js +0 -525
- package/dist/send.outbound-DHuFUL6W.js +0 -740
- package/dist/send.shared-B0n_fWzu.js +0 -739
- package/dist/sender-identity-B8Ncfi63.js +0 -43
- package/dist/shared-C3dKun_X.js +0 -218
- package/dist/subagent-hooks-ZoQXEI1E.js +0 -49
- package/dist/system-events-DFF_awl7.js +0 -34
- package/dist/target-resolver-DLtHDwMK.js +0 -83
- package/dist/targets-BObRyaKX.js +0 -3
- package/dist/thread-bindings-DKvsNjQR.js +0 -238
- package/dist/thread-bindings.manager-pbbRT5gb.js +0 -768
- package/dist/thread-bindings.session-updates-t6jeFB1-.js +0 -55
- package/dist/thread-bindings.state-DtgOqsbX.js +0 -321
- package/dist/threading-BCx49X-6.js +0 -480
- package/dist/transcripts-source-Dc6Nnli5.js +0 -313
- package/dist/typing-CuopV-Hi.js +0 -14
- package/dist/voice-runtime-BQnILUbG.js +0 -2928
- package/node_modules/@discordjs/voice/node_modules/@types/node/README.md +0 -15
- package/node_modules/@discordjs/voice/node_modules/@types/node/buffer.buffer.d.ts +0 -466
- package/node_modules/@discordjs/voice/node_modules/@types/node/crypto.d.ts +0 -3954
- package/node_modules/@discordjs/voice/node_modules/@types/node/dgram.d.ts +0 -537
- package/node_modules/@discordjs/voice/node_modules/@types/node/fs/promises.d.ts +0 -1481
- package/node_modules/@discordjs/voice/node_modules/@types/node/fs.d.ts +0 -4793
- package/node_modules/@discordjs/voice/node_modules/@types/node/http.d.ts +0 -2218
- package/node_modules/@discordjs/voice/node_modules/@types/node/http2.d.ts +0 -2497
- package/node_modules/@discordjs/voice/node_modules/@types/node/index.d.ts +0 -115
- package/node_modules/@discordjs/voice/node_modules/@types/node/inspector.d.ts +0 -264
- package/node_modules/@discordjs/voice/node_modules/@types/node/net.d.ts +0 -970
- package/node_modules/@discordjs/voice/node_modules/@types/node/package.json +0 -155
- package/node_modules/@discordjs/voice/node_modules/@types/node/quic.d.ts +0 -2125
- package/node_modules/@discordjs/voice/node_modules/@types/node/stream/iter.d.ts +0 -452
- package/node_modules/@discordjs/voice/node_modules/@types/node/tls.d.ts +0 -1193
- package/node_modules/@discordjs/voice/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -462
- package/node_modules/@discordjs/voice/node_modules/@types/node/ts5.6/index.d.ts +0 -117
- package/node_modules/@discordjs/voice/node_modules/@types/node/ts5.7/index.d.ts +0 -117
- package/node_modules/@discordjs/voice/node_modules/@types/node/tty.d.ts +0 -225
- package/node_modules/@discordjs/voice/node_modules/@types/node/vm.d.ts +0 -1136
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey/browser.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey/index.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey/index.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey-linux-x64-gnu/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey-linux-x64-gnu/davey.linux-x64-gnu.node +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey-linux-x64-gnu/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey-linux-x64-musl/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey-linux-x64-musl/davey.linux-x64-musl.node +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey-linux-x64-musl/package.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid/dist-node/types.js → @tybys/wasm-util/lib/mjs/wasi/fs.mjs} +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types/lodash.transform → @types/debug}/LICENSE +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/debug/README.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/debug/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/debug/package.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types/uuid → @types/lodash}/LICENSE +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/add.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/after.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/ary.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/assign.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/assignIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/assignInWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/assignWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/at.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/attempt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/before.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/bind.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/bindAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/bindKey.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/camelCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/capitalize.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/castArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/ceil.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/chain.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/chunk.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/clamp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/clone.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/cloneDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/cloneDeepWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/cloneWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/array.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/collection.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/common.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/date.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/function.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/lang.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/math.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/number.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/object.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/seq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/string.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/util.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/compact.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/concat.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/cond.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/conforms.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/conformsTo.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/constant.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/countBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/create.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/curry.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/curryRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/debounce.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/deburr.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/defaultTo.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/defaults.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/defaultsDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/defer.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/delay.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/difference.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/differenceBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/differenceWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/divide.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/drop.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/dropRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/dropRightWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/dropWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/each.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/eachRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/endsWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/entries.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/entriesIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/eq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/escape.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/escapeRegExp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/every.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/extend.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/extendWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fill.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/filter.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/find.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/findIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/findKey.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/findLast.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/findLastIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/findLastKey.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/first.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flatMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flatMapDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flatMapDepth.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flatten.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flattenDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flattenDepth.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flip.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/floor.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flow.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flowRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/forEach.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/forEachRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/forIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/forInRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/forOwn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/forOwnRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/F.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/T.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/__.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/add.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/after.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/all.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/allPass.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/always.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/any.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/anyPass.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/apply.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/ary.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assign.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignAllWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignInAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignInAllWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignInWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assoc.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assocPath.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/at.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/attempt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/before.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/bind.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/bindAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/bindKey.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/camelCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/capitalize.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/castArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/ceil.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/chunk.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/clamp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/clone.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/cloneDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/cloneDeepWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/cloneWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/compact.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/complement.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/compose.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/concat.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/cond.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/conforms.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/conformsTo.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/constant.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/contains.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/convert.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/countBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/create.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/curry.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/curryN.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/curryRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/curryRightN.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/debounce.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/deburr.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/defaultTo.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/defaults.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/defaultsAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/defaultsDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/defaultsDeepAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/defer.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/delay.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/difference.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/differenceBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/differenceWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dissoc.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dissocPath.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/divide.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/drop.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dropLast.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dropLastWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dropRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dropRightWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dropWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/each.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/eachRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/endsWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/entries.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/entriesIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/eq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/equals.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/escape.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/escapeRegExp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/every.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/extend.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/extendAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/extendAllWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/extendWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/fill.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/filter.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/find.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findIndexFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findKey.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findLast.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findLastFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findLastIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findLastIndexFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findLastKey.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/first.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flatMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flatMapDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flatMapDepth.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flatten.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flattenDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flattenDepth.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flip.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/floor.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flow.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flowRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/forEach.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/forEachRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/forIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/forInRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/forOwn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/forOwnRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/fromPairs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/functions.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/functionsIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/get.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/getOr.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/groupBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/gt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/gte.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/has.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/hasIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/head.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/identical.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/identity.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/inRange.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/includes.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/includesFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/indexBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/indexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/indexOfFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/init.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/initial.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/intersection.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/intersectionBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/intersectionWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invert.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invertBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invertObj.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invoke.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invokeArgs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invokeArgsMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invokeMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isArguments.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isArrayBuffer.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isArrayLike.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isArrayLikeObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isBoolean.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isBuffer.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isDate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isElement.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isEmpty.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isEqual.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isEqualWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isError.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isFinite.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isFunction.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isLength.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isMatch.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isMatchWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isNaN.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isNative.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isNil.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isNull.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isNumber.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isObjectLike.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isPlainObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isRegExp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isSafeInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isSet.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isString.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isSymbol.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isTypedArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isUndefined.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isWeakMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isWeakSet.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/iteratee.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/join.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/juxt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/kebabCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/keyBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/keys.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/keysIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/last.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/lastIndexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/lastIndexOfFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/lowerCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/lowerFirst.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/lt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/lte.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/map.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/mapKeys.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/mapValues.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/matches.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/matchesProperty.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/max.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/maxBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/mean.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/meanBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/memoize.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/merge.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/mergeAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/mergeAllWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/mergeWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/method.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/methodOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/min.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/minBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/multiply.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/nAry.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/negate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/noConflict.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/noop.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/now.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/nth.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/nthArg.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/omit.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/omitAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/omitBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/once.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/orderBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/over.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/overArgs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/overEvery.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/overSome.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pad.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/padChars.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/padCharsEnd.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/padCharsStart.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/padEnd.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/padStart.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/parseInt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/partial.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/partialRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/partition.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/path.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pathEq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pathOr.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/paths.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pick.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pickAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pickBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pipe.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/placeholder.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pluck.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/prop.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/propEq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/propOr.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/property.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/propertyOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/props.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pull.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pullAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pullAllBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pullAllWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pullAt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/random.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/range.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/rangeRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/rangeStep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/rangeStepRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/rearg.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/reduce.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/reduceRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/reject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/remove.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/repeat.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/replace.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/rest.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/restFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/result.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/reverse.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/round.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/runInContext.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sample.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sampleSize.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/set.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/setWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/shuffle.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/size.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/slice.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/snakeCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/some.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedIndexBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedIndexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedLastIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedLastIndexBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedLastIndexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedUniq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedUniqBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/split.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/spread.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/spreadFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/startCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/startsWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/stubArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/stubFalse.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/stubObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/stubString.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/stubTrue.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/subtract.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sum.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sumBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/symmetricDifference.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/symmetricDifferenceBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/symmetricDifferenceWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/tail.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/take.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/takeLast.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/takeLastWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/takeRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/takeRightWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/takeWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/tap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/template.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/throttle.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/thru.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/times.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toFinite.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toLength.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toLower.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toNumber.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toPairs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toPairsIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toPath.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toPlainObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toSafeInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toString.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toUpper.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/transform.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/trim.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/trimChars.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/trimCharsEnd.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/trimCharsStart.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/trimEnd.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/trimStart.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/truncate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unapply.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unary.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unescape.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/union.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unionBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unionWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/uniq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/uniqBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/uniqWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/uniqueId.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unnest.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unset.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unzip.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unzipWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/update.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/updateWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/upperCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/upperFirst.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/useWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/values.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/valuesIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/where.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/whereEq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/without.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/words.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/wrap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/xor.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/xorBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/xorWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/zip.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/zipAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/zipObj.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/zipObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/zipObjectDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/zipWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fromPairs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/functions.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/functionsIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/get.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/groupBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/gt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/gte.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/has.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/hasIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/head.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/identity.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/inRange.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/includes.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/index.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/indexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/initial.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/intersection.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/intersectionBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/intersectionWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/invert.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/invertBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/invoke.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/invokeMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isArguments.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isArrayBuffer.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isArrayLike.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isArrayLikeObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isBoolean.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isBuffer.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isDate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isElement.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isEmpty.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isEqual.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isEqualWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isError.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isFinite.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isFunction.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isLength.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isMatch.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isMatchWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isNaN.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isNative.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isNil.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isNull.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isNumber.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isObjectLike.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isPlainObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isRegExp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isSafeInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isSet.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isString.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isSymbol.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isTypedArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isUndefined.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isWeakMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isWeakSet.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/iteratee.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/join.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/kebabCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/keyBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/keys.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/keysIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/last.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/lastIndexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/lowerCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/lowerFirst.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/lt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/lte.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/map.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/mapKeys.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/mapValues.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/matches.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/matchesProperty.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/max.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/maxBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/mean.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/meanBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/memoize.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/merge.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/mergeWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/method.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/methodOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/min.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/minBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/mixin.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/multiply.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/negate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/noConflict.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/noop.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/now.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/nth.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/nthArg.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/omit.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/omitBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/once.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/orderBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/over.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/overArgs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/overEvery.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/overSome.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/package.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pad.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/padEnd.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/padStart.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/parseInt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/partial.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/partialRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/partition.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pick.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pickBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/property.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/propertyOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pull.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pullAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pullAllBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pullAllWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pullAt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/random.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/range.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/rangeRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/rearg.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/reduce.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/reduceRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/reject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/remove.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/repeat.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/replace.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/rest.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/result.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/reverse.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/round.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/runInContext.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sample.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sampleSize.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/set.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/setWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/shuffle.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/size.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/slice.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/snakeCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/some.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedIndexBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedIndexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedLastIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedLastIndexBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedLastIndexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedUniq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedUniqBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/split.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/spread.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/startCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/startsWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/stubArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/stubFalse.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/stubObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/stubString.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/stubTrue.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/subtract.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sum.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sumBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/tail.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/take.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/takeRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/takeRightWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/takeWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/tap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/template.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/throttle.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/thru.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/times.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toFinite.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toLength.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toLower.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toNumber.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toPairs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toPairsIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toPath.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toPlainObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toSafeInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toString.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toUpper.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/transform.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/trim.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/trimEnd.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/trimStart.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/truncate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unary.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unescape.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/union.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unionBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unionWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/uniq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/uniqBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/uniqWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/uniqueId.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unset.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unzip.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unzipWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/update.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/updateWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/upperCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/upperFirst.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/values.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/valuesIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/without.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/words.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/wrap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/xor.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/xorBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/xorWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/zip.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/zipObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/zipObjectDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/zipWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types/lodash → @types/lodash.transform}/LICENSE +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash.transform/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash.transform/index.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash.transform/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types/node → @types/mdast}/LICENSE +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/mdast/README.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/mdast/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/mdast/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types/ws → @types/ms}/LICENSE +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/ms/README.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/ms/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/ms/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types/debug → @types/node}/LICENSE +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/assert/strict.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/assert.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/async_hooks.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/buffer.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/child_process.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/cluster.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/console.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/constants.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/diagnostics_channel.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/dns/promises.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/dns.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/domain.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/events.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/ffi.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/globals.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/globals.typedarray.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/https.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/inspector/promises.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/inspector.generated.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/module.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/os.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/path/posix.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/path/win32.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/path.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/perf_hooks.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/process.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/punycode.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/querystring.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/readline/promises.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/readline.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/repl.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/sea.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/sqlite.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/stream/consumers.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/stream/promises.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/stream/web.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/stream.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/string_decoder.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/test/reporters.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/test.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/timers/promises.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/timers.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/trace_events.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/ts5.6/compatibility/float16array.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/ts5.6/globals.typedarray.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/ts5.7/compatibility/float16array.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/url.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/util/types.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/util.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/v8.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/wasi.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/abortcontroller.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/blob.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/console.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/crypto.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/domexception.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/encoding.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/events.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/fetch.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/importmeta.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/messaging.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/navigator.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/performance.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/storage.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/streams.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/timers.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/url.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/worker_threads.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/zlib/iter.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/zlib.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types/mdast → @types/unist}/LICENSE +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/unist/README.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/unist/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/unist/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types/ms → @types/uuid}/LICENSE +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/uuid/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/uuid/index.d.mts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/uuid/index.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/uuid/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types/unist → @types/ws}/LICENSE +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/ws/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/ws/index.d.mts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/ws/index.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/ws/package.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/BigInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/BigInteger.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/BigInteger.min.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/LICENSE +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/bower.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/package.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/tsconfig.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/character-entities → character-entities}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/character-entities → character-entities}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/character-entities → character-entities}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/character-entities → character-entities}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/character-entities → character-entities}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/LICENSE +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/README.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/src/browser.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/src/common.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/src/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/src/node.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/CHANGELOG.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/LICENCE.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/decimal.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/decimal.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/decimal.min.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/decimal.mjs +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/doc/API.html +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/doc/decimal.js.map +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/index.dom.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/index.dom.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/index.dom.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/dist/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/dist/index.min.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/dist/index.mjs +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/lite/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/lite/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/lite/index.min.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/lite/index.mjs +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/devlop → devlop}/lib/default.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/devlop → devlop}/lib/development.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/devlop → devlop}/lib/development.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/devlop → devlop}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/devlop → devlop}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/devlop → devlop}/readme.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/LICENSE +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/dist/eventemitter3.esm.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/dist/eventemitter3.esm.min.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/dist/eventemitter3.esm.min.js.map +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/dist/eventemitter3.umd.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/dist/eventemitter3.umd.min.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/dist/eventemitter3.umd.min.js.map +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/index.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/index.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/index.mjs +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/package.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/lodash.transform → lodash.transform}/LICENSE +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/lodash.transform → lodash.transform}/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/lodash.transform → lodash.transform}/index.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/lodash.transform → lodash.transform}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/lib/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/lib/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/compile.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/compile.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/compile.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/constructs.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/constructs.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/constructs.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/create-tokenizer.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/create-tokenizer.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/create-tokenizer.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/content.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/content.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/content.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/document.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/document.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/document.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/flow.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/flow.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/flow.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/text.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/text.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/text.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/parse.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/parse.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/parse.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/postprocess.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/postprocess.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/postprocess.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/preprocess.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/preprocess.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/preprocess.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/stream.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/stream.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/stream.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/compile.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/compile.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/compile.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/constructs.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/constructs.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/constructs.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/create-tokenizer.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/create-tokenizer.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/create-tokenizer.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/content.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/content.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/content.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/document.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/document.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/document.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/flow.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/flow.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/flow.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/text.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/text.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/text.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/parse.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/parse.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/parse.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/postprocess.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/postprocess.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/postprocess.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/preprocess.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/preprocess.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/preprocess.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/stream.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/stream.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/stream.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/attention.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/attention.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/attention.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/autolink.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/autolink.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/autolink.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/blank-line.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/blank-line.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/blank-line.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/block-quote.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/block-quote.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/block-quote.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/character-escape.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/character-escape.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/character-escape.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/character-reference.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/character-reference.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/character-reference.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-fenced.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-fenced.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-fenced.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-indented.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-indented.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-indented.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-text.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-text.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-text.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/content.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/content.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/content.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/definition.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/definition.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/definition.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/hard-break-escape.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/hard-break-escape.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/hard-break-escape.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/heading-atx.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/heading-atx.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/heading-atx.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/html-flow.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/html-flow.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/html-flow.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/html-text.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/html-text.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/html-text.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-end.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-end.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-end.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-start-image.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-start-image.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-start-image.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-start-link.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-start-link.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-start-link.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/line-ending.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/line-ending.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/line-ending.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/list.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/list.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/list.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/setext-underline.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/setext-underline.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/setext-underline.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/thematic-break.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/thematic-break.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/thematic-break.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/attention.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/attention.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/attention.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/autolink.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/autolink.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/autolink.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/blank-line.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/blank-line.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/blank-line.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/block-quote.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/block-quote.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/block-quote.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-escape.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-escape.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-escape.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-reference.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-reference.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-reference.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-fenced.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-fenced.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-fenced.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-indented.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-indented.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-indented.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-text.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-text.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-text.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/content.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/content.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/content.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/definition.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/definition.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/definition.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/hard-break-escape.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/hard-break-escape.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/hard-break-escape.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/heading-atx.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/heading-atx.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/heading-atx.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-flow.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-flow.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-flow.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-text.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-text.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-text.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-end.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-end.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-end.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-image.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-image.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-image.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-link.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-link.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-link.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/line-ending.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/line-ending.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/line-ending.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/list.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/list.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/list.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/setext-underline.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/setext-underline.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/setext-underline.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/thematic-break.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/thematic-break.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/thematic-break.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-combine-extensions → micromark-util-combine-extensions}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-combine-extensions → micromark-util-combine-extensions}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-combine-extensions → micromark-util-combine-extensions}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-combine-extensions → micromark-util-combine-extensions}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-combine-extensions → micromark-util-combine-extensions}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-combine-extensions → micromark-util-combine-extensions}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-encode → micromark-util-encode}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-encode → micromark-util-encode}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-encode → micromark-util-encode}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-encode → micromark-util-encode}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-encode → micromark-util-encode}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-encode → micromark-util-encode}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-html-tag-name → micromark-util-html-tag-name}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-html-tag-name → micromark-util-html-tag-name}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-html-tag-name → micromark-util-html-tag-name}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-html-tag-name → micromark-util-html-tag-name}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-html-tag-name → micromark-util-html-tag-name}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-html-tag-name → micromark-util-html-tag-name}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-resolve-all → micromark-util-resolve-all}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-resolve-all → micromark-util-resolve-all}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-resolve-all → micromark-util-resolve-all}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-resolve-all → micromark-util-resolve-all}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-resolve-all → micromark-util-resolve-all}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-resolve-all → micromark-util-resolve-all}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/dev/lib/splice-buffer.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/dev/lib/splice-buffer.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/dev/lib/splice-buffer.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/lib/splice-buffer.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/lib/splice-buffer.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/lib/splice-buffer.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/codes.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/codes.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/codes.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/constants.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/constants.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/constants.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/default.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/default.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/default.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/types.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/types.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/types.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/values.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/values.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/values.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-types → micromark-util-types}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-types → micromark-util-types}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-types → micromark-util-types}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-types → micromark-util-types}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-types → micromark-util-types}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/ms → ms}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/ms → ms}/license.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/ms → ms}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/ms → ms}/readme.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/LICENSE +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/core/FFmpeg.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/core/VolumeTransformer.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/core/WebmBase.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/core/index.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/index.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/opus/OggDemuxer.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/opus/Opus.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/opus/WebmDemuxer.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/opus/index.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/util/loader.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/vorbis/WebmDemuxer.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/vorbis/index.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/typings/index.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/typings/opus.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/typings/vorbis.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/CopyrightNotice.txt +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/LICENSE.txt +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/SECURITY.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/modules/index.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/modules/index.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/modules/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/tslib.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/tslib.es6.html +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/tslib.es6.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/tslib.es6.mjs +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/tslib.html +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/tslib.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/LICENSE +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/api.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/balanced-pool.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/cache-interceptor.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/cache.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/client-stats.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/client.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/connector.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/content-type.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/cookies.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/diagnostics-channel.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/dispatcher.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/dispatcher1-wrapper.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/env-http-proxy-agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/errors.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/eventsource.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/fetch.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/formdata.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/global-dispatcher.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/global-origin.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/h2c-client.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/handlers.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/header.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/index.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/interceptors.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/mock-agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/mock-call-history.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/mock-client.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/mock-errors.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/mock-interceptor.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/mock-pool.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/patch.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/pool-stats.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/pool.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/proxy-agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/readable.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/retry-agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/retry-handler.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/round-robin-pool.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/snapshot-agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/socks5-proxy-agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/util.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/utility.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/webidl.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/websocket.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/lib/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/lib/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/readme.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/LICENSE.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/index.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/index.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/max.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/max.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/md5.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/md5.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/nil.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/nil.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/parse.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/parse.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/regex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/regex.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/rng.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/rng.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/sha1.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/sha1.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/stringify.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/stringify.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/types.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid/dist/uuid-bin.d.ts → uuid/dist/types.js} +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/uuid-bin.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v1.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v1.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v1ToV6.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v1ToV6.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v3.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v3.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v35.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v35.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v4.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v4.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v5.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v5.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v6.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v6.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v6ToV1.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v6ToV1.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v7.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v7.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/validate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/validate.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/version.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/version.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/bin/uuid +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/index.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/max.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/md5.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/nil.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/parse.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/regex.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/rng.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/sha1.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/stringify.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid/dist → uuid/dist-node}/types.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/uuid-bin.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v1.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v1ToV6.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v3.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v35.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v4.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v5.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v6.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v6ToV1.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v7.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/validate.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/version.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/package.json +0 -0
|
@@ -0,0 +1,3088 @@
|
|
|
1
|
+
import { C as parseDiscordRetryAfterBodySeconds } from "./allow-list-DWEio925.js";
|
|
2
|
+
import "node:module";
|
|
3
|
+
import { redactIdentifier, redactSensitiveFieldValue } from "openclaw/plugin-sdk/logging-core";
|
|
4
|
+
import { ApplicationCommandOptionType, ApplicationCommandType, ButtonStyle, ComponentType, GatewayDispatchEvents, InteractionContextType, InteractionResponseType, InteractionType, MessageFlags, Routes, TextInputStyle } from "discord-api-types/v10";
|
|
5
|
+
import { Type } from "typebox";
|
|
6
|
+
import { Check } from "typebox/value";
|
|
7
|
+
import { createHash } from "node:crypto";
|
|
8
|
+
import { asDateTimestampMs, clampTimerTimeoutMs, parseStrictNonNegativeInteger, resolveExpiresAtMsFromDurationMs, resolveIntegerOption, resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
|
|
9
|
+
import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
|
|
10
|
+
import { inspect } from "node:util";
|
|
11
|
+
import { gunzipSync } from "node:zlib";
|
|
12
|
+
import { readResponseWithLimit } from "openclaw/plugin-sdk/response-limit-runtime";
|
|
13
|
+
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
14
|
+
import { parseRetryAfterHeaderSeconds } from "openclaw/plugin-sdk/retry-runtime";
|
|
15
|
+
//#region \0rolldown/runtime.js
|
|
16
|
+
var __defProp = Object.defineProperty;
|
|
17
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
18
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
19
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
20
|
+
var __exportAll = (all, no_symbols) => {
|
|
21
|
+
let target = {};
|
|
22
|
+
for (var name in all) __defProp(target, name, {
|
|
23
|
+
get: all[name],
|
|
24
|
+
enumerable: true
|
|
25
|
+
});
|
|
26
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
var __copyProps = (to, from, except, desc) => {
|
|
30
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
31
|
+
key = keys[i];
|
|
32
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
33
|
+
get: ((k) => from[k]).bind(null, key),
|
|
34
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return to;
|
|
38
|
+
};
|
|
39
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region extensions/discord/src/internal/api.commands.ts
|
|
42
|
+
async function listApplicationCommands(rest, clientId) {
|
|
43
|
+
return await rest.get(Routes.applicationCommands(clientId));
|
|
44
|
+
}
|
|
45
|
+
async function createApplicationCommand(rest, clientId, body) {
|
|
46
|
+
return await rest.post(Routes.applicationCommands(clientId), { body });
|
|
47
|
+
}
|
|
48
|
+
async function editApplicationCommand(rest, clientId, commandId, body) {
|
|
49
|
+
return await rest.patch(Routes.applicationCommand(clientId, commandId), { body });
|
|
50
|
+
}
|
|
51
|
+
async function deleteApplicationCommand(rest, clientId, commandId) {
|
|
52
|
+
await rest.delete(Routes.applicationCommand(clientId, commandId));
|
|
53
|
+
}
|
|
54
|
+
async function overwriteApplicationCommands(rest, clientId, body) {
|
|
55
|
+
await rest.put(Routes.applicationCommands(clientId), { body });
|
|
56
|
+
}
|
|
57
|
+
async function overwriteGuildApplicationCommands(rest, clientId, guildId, body) {
|
|
58
|
+
await rest.put(Routes.applicationGuildCommands(clientId, guildId), { body });
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region extensions/discord/src/internal/api.guild.ts
|
|
62
|
+
const discordGuildEmojiListSchema = Type.Array(Type.Object({
|
|
63
|
+
id: Type.Union([Type.String(), Type.Null()]),
|
|
64
|
+
name: Type.Union([Type.String(), Type.Null()]),
|
|
65
|
+
animated: Type.Optional(Type.Boolean())
|
|
66
|
+
}, { additionalProperties: true }));
|
|
67
|
+
async function getGuild(rest, guildId) {
|
|
68
|
+
return await rest.get(Routes.guild(guildId));
|
|
69
|
+
}
|
|
70
|
+
async function createGuildChannel(rest, guildId, data) {
|
|
71
|
+
return await rest.post(Routes.guildChannels(guildId), data);
|
|
72
|
+
}
|
|
73
|
+
async function moveGuildChannels(rest, guildId, data) {
|
|
74
|
+
await rest.patch(Routes.guildChannels(guildId), data);
|
|
75
|
+
}
|
|
76
|
+
async function getGuildMember(rest, guildId, userId) {
|
|
77
|
+
return await rest.get(Routes.guildMember(guildId, userId));
|
|
78
|
+
}
|
|
79
|
+
async function listGuildRoles(rest, guildId) {
|
|
80
|
+
return await rest.get(Routes.guildRoles(guildId));
|
|
81
|
+
}
|
|
82
|
+
async function listGuildChannels(rest, guildId) {
|
|
83
|
+
return await rest.get(Routes.guildChannels(guildId));
|
|
84
|
+
}
|
|
85
|
+
async function putChannelPermission(rest, channelId, targetId, data) {
|
|
86
|
+
await rest.put(Routes.channelPermission(channelId, targetId), data);
|
|
87
|
+
}
|
|
88
|
+
async function deleteChannelPermission(rest, channelId, targetId) {
|
|
89
|
+
await rest.delete(Routes.channelPermission(channelId, targetId));
|
|
90
|
+
}
|
|
91
|
+
async function listGuildActiveThreads(rest, guildId) {
|
|
92
|
+
return await rest.get(Routes.guildActiveThreads(guildId));
|
|
93
|
+
}
|
|
94
|
+
async function getGuildVoiceState(rest, guildId, userId) {
|
|
95
|
+
return await rest.get(Routes.guildVoiceState(guildId, userId));
|
|
96
|
+
}
|
|
97
|
+
async function listGuildScheduledEvents(rest, guildId) {
|
|
98
|
+
return await rest.get(Routes.guildScheduledEvents(guildId));
|
|
99
|
+
}
|
|
100
|
+
async function createGuildScheduledEvent(rest, guildId, body) {
|
|
101
|
+
return await rest.post(Routes.guildScheduledEvents(guildId), { body });
|
|
102
|
+
}
|
|
103
|
+
async function timeoutGuildMember(rest, guildId, userId, data) {
|
|
104
|
+
return await rest.patch(Routes.guildMember(guildId, userId), data);
|
|
105
|
+
}
|
|
106
|
+
async function addGuildMemberRole(rest, guildId, userId, roleId) {
|
|
107
|
+
await rest.put(Routes.guildMemberRole(guildId, userId, roleId));
|
|
108
|
+
}
|
|
109
|
+
async function removeGuildMemberRole(rest, guildId, userId, roleId) {
|
|
110
|
+
await rest.delete(Routes.guildMemberRole(guildId, userId, roleId));
|
|
111
|
+
}
|
|
112
|
+
async function removeGuildMember(rest, guildId, userId, data) {
|
|
113
|
+
await rest.delete(Routes.guildMember(guildId, userId), data);
|
|
114
|
+
}
|
|
115
|
+
async function createGuildBan(rest, guildId, userId, data) {
|
|
116
|
+
await rest.put(Routes.guildBan(guildId, userId), data);
|
|
117
|
+
}
|
|
118
|
+
async function listGuildEmojis(rest, guildId) {
|
|
119
|
+
const emojis = await rest.get(Routes.guildEmojis(guildId));
|
|
120
|
+
if (!Check(discordGuildEmojiListSchema, emojis)) throw new Error("Invalid Discord guild emoji response.");
|
|
121
|
+
return emojis;
|
|
122
|
+
}
|
|
123
|
+
async function createGuildEmoji(rest, guildId, data) {
|
|
124
|
+
return await rest.post(Routes.guildEmojis(guildId), data);
|
|
125
|
+
}
|
|
126
|
+
async function createGuildSticker(rest, guildId, data) {
|
|
127
|
+
return await rest.post(Routes.guildStickers(guildId), data);
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region extensions/discord/src/internal/api.interactions.ts
|
|
131
|
+
async function createInteractionCallback(rest, interactionId, token, body) {
|
|
132
|
+
return await rest.post(Routes.interactionCallback(interactionId, token), { body });
|
|
133
|
+
}
|
|
134
|
+
async function editWebhookMessage(rest, applicationId, token, messageId, data, query) {
|
|
135
|
+
return query ? await rest.patch(Routes.webhookMessage(applicationId, token, messageId), data, query) : await rest.patch(Routes.webhookMessage(applicationId, token, messageId), data);
|
|
136
|
+
}
|
|
137
|
+
async function deleteWebhookMessage(rest, applicationId, token, messageId) {
|
|
138
|
+
return await rest.delete(Routes.webhookMessage(applicationId, token, messageId));
|
|
139
|
+
}
|
|
140
|
+
async function getWebhookMessage(rest, applicationId, token, messageId) {
|
|
141
|
+
return await rest.get(Routes.webhookMessage(applicationId, token, messageId));
|
|
142
|
+
}
|
|
143
|
+
async function createWebhookMessage(rest, applicationId, token, data, query) {
|
|
144
|
+
return await rest.post(Routes.webhook(applicationId, token), data, query);
|
|
145
|
+
}
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region extensions/discord/src/internal/api.messages.ts
|
|
148
|
+
async function getChannel(rest, channelId) {
|
|
149
|
+
return await rest.get(Routes.channel(channelId));
|
|
150
|
+
}
|
|
151
|
+
async function getThreadMember(rest, threadId, userId) {
|
|
152
|
+
return await rest.get(Routes.threadMembers(threadId, userId));
|
|
153
|
+
}
|
|
154
|
+
async function editChannel(rest, channelId, data) {
|
|
155
|
+
return await rest.patch(Routes.channel(channelId), data);
|
|
156
|
+
}
|
|
157
|
+
async function deleteChannel(rest, channelId) {
|
|
158
|
+
await rest.delete(Routes.channel(channelId));
|
|
159
|
+
}
|
|
160
|
+
async function listChannelMessages(rest, channelId, query) {
|
|
161
|
+
return await rest.get(Routes.channelMessages(channelId), query);
|
|
162
|
+
}
|
|
163
|
+
async function getChannelMessage(rest, channelId, messageId) {
|
|
164
|
+
return await rest.get(Routes.channelMessage(channelId, messageId));
|
|
165
|
+
}
|
|
166
|
+
async function createChannelMessage(rest, channelId, data) {
|
|
167
|
+
return await rest.post(Routes.channelMessages(channelId), data);
|
|
168
|
+
}
|
|
169
|
+
async function editChannelMessage(rest, channelId, messageId, data) {
|
|
170
|
+
return await rest.patch(Routes.channelMessage(channelId, messageId), data);
|
|
171
|
+
}
|
|
172
|
+
async function deleteChannelMessage(rest, channelId, messageId) {
|
|
173
|
+
await rest.delete(Routes.channelMessage(channelId, messageId));
|
|
174
|
+
}
|
|
175
|
+
async function pinChannelMessage(rest, channelId, messageId) {
|
|
176
|
+
await rest.put(Routes.channelPin(channelId, messageId));
|
|
177
|
+
}
|
|
178
|
+
async function unpinChannelMessage(rest, channelId, messageId) {
|
|
179
|
+
await rest.delete(Routes.channelPin(channelId, messageId));
|
|
180
|
+
}
|
|
181
|
+
async function listChannelPins(rest, channelId) {
|
|
182
|
+
return await rest.get(Routes.channelPins(channelId));
|
|
183
|
+
}
|
|
184
|
+
async function sendChannelTyping(rest, channelId) {
|
|
185
|
+
await rest.post(Routes.channelTyping(channelId));
|
|
186
|
+
}
|
|
187
|
+
async function createThread(rest, channelId, data, messageId) {
|
|
188
|
+
const route = messageId ? Routes.threads(channelId, messageId) : Routes.threads(channelId);
|
|
189
|
+
return await rest.post(route, data);
|
|
190
|
+
}
|
|
191
|
+
async function listChannelArchivedThreads(rest, channelId, query) {
|
|
192
|
+
return await rest.get(Routes.channelThreads(channelId, "public"), query);
|
|
193
|
+
}
|
|
194
|
+
async function searchGuildMessages(rest, guildId, params) {
|
|
195
|
+
return await rest.get(`/guilds/${guildId}/messages/search?${params.toString()}`);
|
|
196
|
+
}
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region extensions/discord/src/internal/api.reactions.ts
|
|
199
|
+
async function createOwnMessageReaction(rest, channelId, messageId, encodedEmoji) {
|
|
200
|
+
await rest.put(Routes.channelMessageOwnReaction(channelId, messageId, encodedEmoji));
|
|
201
|
+
}
|
|
202
|
+
async function deleteOwnMessageReaction(rest, channelId, messageId, encodedEmoji) {
|
|
203
|
+
await rest.delete(Routes.channelMessageOwnReaction(channelId, messageId, encodedEmoji));
|
|
204
|
+
}
|
|
205
|
+
async function listMessageReactionUsers(rest, channelId, messageId, encodedEmoji, query) {
|
|
206
|
+
return await rest.get(Routes.channelMessageReaction(channelId, messageId, encodedEmoji), query);
|
|
207
|
+
}
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region extensions/discord/src/internal/api.users.ts
|
|
210
|
+
async function getCurrentUser(rest) {
|
|
211
|
+
return await rest.get(Routes.user("@me"));
|
|
212
|
+
}
|
|
213
|
+
async function getUser(rest, userId) {
|
|
214
|
+
return await rest.get(Routes.user(userId));
|
|
215
|
+
}
|
|
216
|
+
async function createUserDmChannel(rest, recipientId) {
|
|
217
|
+
return await rest.post(Routes.userChannels(), { body: { recipient_id: recipientId } });
|
|
218
|
+
}
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region extensions/discord/src/internal/api.webhooks.ts
|
|
221
|
+
async function createChannelWebhook(rest, channelId, data) {
|
|
222
|
+
return await rest.post(Routes.channelWebhooks(channelId), data);
|
|
223
|
+
}
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region extensions/discord/src/internal/command-comparison.ts
|
|
226
|
+
const unorderedCommandArrayFields = /* @__PURE__ */ new Set([
|
|
227
|
+
"channel_types",
|
|
228
|
+
"contexts",
|
|
229
|
+
"integration_types"
|
|
230
|
+
]);
|
|
231
|
+
const optionComparisonOmittedFields = /* @__PURE__ */ new Set([
|
|
232
|
+
"contexts",
|
|
233
|
+
"default_member_permissions",
|
|
234
|
+
"description_localized",
|
|
235
|
+
"integration_types",
|
|
236
|
+
"name_localized"
|
|
237
|
+
]);
|
|
238
|
+
const nullableLocalizationFields = /* @__PURE__ */ new Set(["description_localizations", "name_localizations"]);
|
|
239
|
+
function comparableCommand(value) {
|
|
240
|
+
if (!value || typeof value !== "object") return value;
|
|
241
|
+
const omit = /* @__PURE__ */ new Set([
|
|
242
|
+
"application_id",
|
|
243
|
+
"description_localized",
|
|
244
|
+
"dm_permission",
|
|
245
|
+
"guild_id",
|
|
246
|
+
"id",
|
|
247
|
+
"name_localized",
|
|
248
|
+
"nsfw",
|
|
249
|
+
"version",
|
|
250
|
+
"default_permission"
|
|
251
|
+
]);
|
|
252
|
+
return stableComparableObject(Object.fromEntries(Object.entries(value).filter(([key, entry]) => !omit.has(key) && entry !== void 0)));
|
|
253
|
+
}
|
|
254
|
+
function stableComparableObject(value, pathValue = []) {
|
|
255
|
+
if (Array.isArray(value)) {
|
|
256
|
+
const normalized = value.map((entry) => stableComparableObject(entry, pathValue));
|
|
257
|
+
const key = pathValue.at(-1);
|
|
258
|
+
if (key && unorderedCommandArrayFields.has(key) && normalized.every((entry) => typeof entry === "string" || typeof entry === "number" || typeof entry === "boolean")) return normalized.toSorted((left, right) => String(left).localeCompare(String(right)));
|
|
259
|
+
return normalized;
|
|
260
|
+
}
|
|
261
|
+
if (!value || typeof value !== "object") return value;
|
|
262
|
+
return Object.fromEntries(Object.entries(value).filter(([key, entry]) => {
|
|
263
|
+
if (entry === void 0) return false;
|
|
264
|
+
if (entry === null && nullableLocalizationFields.has(key)) return false;
|
|
265
|
+
if (pathValue.includes("options") && optionComparisonOmittedFields.has(key)) return false;
|
|
266
|
+
if ((key === "required" || key === "autocomplete") && entry === false) return false;
|
|
267
|
+
return true;
|
|
268
|
+
}).toSorted(([a], [b]) => a.localeCompare(b)).map(([key, entry]) => [key, shouldNormalizeDescriptionValue(pathValue, key, entry) ? normalizeDescriptionForComparison(entry) : stableComparableObject(entry, [...pathValue, key])]));
|
|
269
|
+
}
|
|
270
|
+
function shouldNormalizeDescriptionValue(pathLocal, key, entry) {
|
|
271
|
+
return typeof entry === "string" && (key === "description" || pathLocal.at(-1) === "description_localizations");
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Normalize descriptions to match Discord's server-side storage semantics.
|
|
275
|
+
* Discord collapses whitespace and removes whitespace between CJK characters.
|
|
276
|
+
*/
|
|
277
|
+
function normalizeDescriptionForComparison(description) {
|
|
278
|
+
const collapsed = description.replace(/\s+/g, " ");
|
|
279
|
+
const cjkBoundaryWhitespace = /([\u3000-\u303F\u4E00-\u9FFF\uFF00-\uFFEF])\s+([\u3000-\u303F\u4E00-\u9FFF\uFF00-\uFFEF])/g;
|
|
280
|
+
return collapsed.replace(cjkBoundaryWhitespace, "$1$2").replace(cjkBoundaryWhitespace, "$1$2").trim();
|
|
281
|
+
}
|
|
282
|
+
function commandsEqual(a, b) {
|
|
283
|
+
return JSON.stringify(comparableCommand(a)) === JSON.stringify(comparableCommand(b));
|
|
284
|
+
}
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region extensions/discord/src/internal/command-deploy.ts
|
|
287
|
+
const DISCORD_APPLICATION_COMMAND_LIMIT_REACHED = 30032;
|
|
288
|
+
var DiscordCommandDeployer = class {
|
|
289
|
+
constructor(params) {
|
|
290
|
+
this.params = params;
|
|
291
|
+
this.hashes = /* @__PURE__ */ new Map();
|
|
292
|
+
this.loadedKeys = /* @__PURE__ */ new Set();
|
|
293
|
+
}
|
|
294
|
+
async getCommands() {
|
|
295
|
+
return await listApplicationCommands(this.rest, this.params.clientId);
|
|
296
|
+
}
|
|
297
|
+
async deploy(options = {}) {
|
|
298
|
+
const commands = this.params.commands.filter((command) => command.name !== "*");
|
|
299
|
+
const serializedGlobal = commands.filter((command) => !command.guildIds).map((command) => command.serialize());
|
|
300
|
+
for (const [guildId, entries] of groupGuildCommands(commands)) await this.putCommandSetIfChanged(this.scopedCacheKey(`guild:${guildId}`), entries, async () => {
|
|
301
|
+
await overwriteGuildApplicationCommands(this.rest, this.params.clientId, guildId, entries);
|
|
302
|
+
}, options);
|
|
303
|
+
if (this.params.devGuilds?.length) {
|
|
304
|
+
for (const guildId of this.params.devGuilds) {
|
|
305
|
+
const entries = commands.map((command) => command.serialize());
|
|
306
|
+
await this.putCommandSetIfChanged(this.scopedCacheKey(`dev-guild:${guildId}`), entries, async () => {
|
|
307
|
+
await overwriteGuildApplicationCommands(this.rest, this.params.clientId, guildId, entries);
|
|
308
|
+
}, options);
|
|
309
|
+
}
|
|
310
|
+
return {
|
|
311
|
+
mode: options.mode ?? "reconcile",
|
|
312
|
+
usedDevGuilds: true
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
if (options.mode !== "overwrite") {
|
|
316
|
+
await this.putCommandSetIfChanged(this.scopedCacheKey("global:reconcile"), serializedGlobal, async () => {
|
|
317
|
+
await this.reconcileGlobalCommands(serializedGlobal);
|
|
318
|
+
}, options);
|
|
319
|
+
return {
|
|
320
|
+
mode: "reconcile",
|
|
321
|
+
usedDevGuilds: false
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
await this.putCommandSetIfChanged(this.scopedCacheKey("global:overwrite"), serializedGlobal, async () => {
|
|
325
|
+
await overwriteApplicationCommands(this.rest, this.params.clientId, serializedGlobal);
|
|
326
|
+
}, options);
|
|
327
|
+
return {
|
|
328
|
+
mode: "overwrite",
|
|
329
|
+
usedDevGuilds: false
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Scope cache keys by Discord application id so multi-bot setups that share a
|
|
334
|
+
* single command-deploy store still reconcile each application separately. The
|
|
335
|
+
* prior unscoped `global:reconcile` / `guild:<id>` keys let a later account
|
|
336
|
+
* with an identical command set reuse the first account's hash and skip its
|
|
337
|
+
* own application's reconcile entirely (#77359).
|
|
338
|
+
*/
|
|
339
|
+
scopedCacheKey(suffix) {
|
|
340
|
+
return `app:${this.params.clientId}:${suffix}`;
|
|
341
|
+
}
|
|
342
|
+
async reconcileGlobalCommands(desired) {
|
|
343
|
+
const existing = await this.getCommands();
|
|
344
|
+
const existingByKey = new Map(existing.map((command) => [stableCommandKey(command), command]));
|
|
345
|
+
const desiredCommands = desired.map((command) => ({
|
|
346
|
+
command,
|
|
347
|
+
key: stableCommandKey(command)
|
|
348
|
+
}));
|
|
349
|
+
const desiredKeys = new Set(desiredCommands.map(({ key }) => key));
|
|
350
|
+
for (const { command, key } of desiredCommands) {
|
|
351
|
+
const current = existingByKey.get(key);
|
|
352
|
+
if (current && !commandsEqual(current, command)) await editApplicationCommand(this.rest, this.params.clientId, current.id, command);
|
|
353
|
+
}
|
|
354
|
+
for (const { command, key } of desiredCommands) {
|
|
355
|
+
if (existingByKey.has(key)) continue;
|
|
356
|
+
try {
|
|
357
|
+
await createApplicationCommand(this.rest, this.params.clientId, command);
|
|
358
|
+
} catch (error) {
|
|
359
|
+
if (!isApplicationCommandLimitError(error)) throw error;
|
|
360
|
+
await overwriteApplicationCommands(this.rest, this.params.clientId, desired);
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
for (const command of existing) if (!desiredKeys.has(stableCommandKey(command))) await deleteApplicationCommand(this.rest, this.params.clientId, command.id);
|
|
365
|
+
}
|
|
366
|
+
async putCommandSetIfChanged(key, commands, deploy, options) {
|
|
367
|
+
const hash = stableCommandSetHash(commands);
|
|
368
|
+
await this.loadPersistedHash(key);
|
|
369
|
+
if (!options.force && this.hashes.get(key) === hash) return;
|
|
370
|
+
await deploy();
|
|
371
|
+
this.hashes.set(key, hash);
|
|
372
|
+
try {
|
|
373
|
+
await this.params.hashStore?.register(key, hash);
|
|
374
|
+
} catch {}
|
|
375
|
+
}
|
|
376
|
+
async loadPersistedHash(key) {
|
|
377
|
+
if (this.loadedKeys.has(key)) return;
|
|
378
|
+
this.loadedKeys.add(key);
|
|
379
|
+
try {
|
|
380
|
+
const hash = await this.params.hashStore?.lookup(key);
|
|
381
|
+
if (typeof hash === "string" && hash.trim()) this.hashes.set(key, hash);
|
|
382
|
+
} catch {}
|
|
383
|
+
}
|
|
384
|
+
get rest() {
|
|
385
|
+
return this.params.rest();
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
function groupGuildCommands(commands) {
|
|
389
|
+
const guildCommands = /* @__PURE__ */ new Map();
|
|
390
|
+
for (const command of commands.filter((entry) => entry.guildIds)) for (const guildId of command.guildIds ?? []) {
|
|
391
|
+
const entries = guildCommands.get(guildId) ?? [];
|
|
392
|
+
entries.push(command.serialize());
|
|
393
|
+
guildCommands.set(guildId, entries);
|
|
394
|
+
}
|
|
395
|
+
return guildCommands;
|
|
396
|
+
}
|
|
397
|
+
function stableCommandKey(command) {
|
|
398
|
+
return `${command.type ?? ApplicationCommandType.ChatInput}:${command.name}`;
|
|
399
|
+
}
|
|
400
|
+
function isApplicationCommandLimitError(error) {
|
|
401
|
+
return error !== null && typeof error === "object" && "discordCode" in error && error.discordCode === DISCORD_APPLICATION_COMMAND_LIMIT_REACHED;
|
|
402
|
+
}
|
|
403
|
+
function stableCommandSetHash(commands) {
|
|
404
|
+
const stable = commands.map((command) => stableComparableObject(command)).toSorted((a, b) => stableCommandKey(a).localeCompare(stableCommandKey(b)));
|
|
405
|
+
return createHash("sha256").update(JSON.stringify(stable)).digest("hex");
|
|
406
|
+
}
|
|
407
|
+
//#endregion
|
|
408
|
+
//#region extensions/discord/src/internal/undefined-fields.ts
|
|
409
|
+
function stripUndefinedFields(value) {
|
|
410
|
+
return Object.fromEntries(Object.entries(value).filter(([, entry]) => entry !== void 0));
|
|
411
|
+
}
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region extensions/discord/src/internal/components.base.ts
|
|
414
|
+
function parseCustomId(id) {
|
|
415
|
+
const [rawKeyValue, ...parts] = id.split(";");
|
|
416
|
+
const rawKey = expectDefined(rawKeyValue, "custom id split first segment");
|
|
417
|
+
const [keyPart, firstValue] = rawKey.split("=");
|
|
418
|
+
const definedKeyPart = expectDefined(keyPart, "custom id key segment");
|
|
419
|
+
const key = definedKeyPart.includes(":") ? expectDefined(definedKeyPart.split(":").at(0), "namespaced custom id key") : definedKeyPart;
|
|
420
|
+
const data = {};
|
|
421
|
+
const entries = firstValue === void 0 ? parts : [rawKey.slice(key.length + 1), ...parts];
|
|
422
|
+
for (const entry of entries) {
|
|
423
|
+
const index = entry.indexOf("=");
|
|
424
|
+
if (index < 0) continue;
|
|
425
|
+
const name = entry.slice(0, index).replace(/^[^:]+:/, "");
|
|
426
|
+
const raw = entry.slice(index + 1);
|
|
427
|
+
data[name] = raw === "true" ? true : raw === "false" ? false : raw;
|
|
428
|
+
}
|
|
429
|
+
return {
|
|
430
|
+
key,
|
|
431
|
+
data
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
function colorToNumber(value) {
|
|
435
|
+
if (typeof value === "number") return Number.isInteger(value) && value >= 0 && value <= 16777215 ? value : void 0;
|
|
436
|
+
if (typeof value === "string" && /^#?[0-9a-f]{6}$/i.test(value)) return Number.parseInt(value.replace(/^#/, ""), 16);
|
|
437
|
+
}
|
|
438
|
+
var BaseComponent = class {
|
|
439
|
+
constructor() {
|
|
440
|
+
this.isV2 = false;
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
var BaseMessageInteractiveComponent = class extends BaseComponent {
|
|
444
|
+
constructor(..._args) {
|
|
445
|
+
super(..._args);
|
|
446
|
+
this.isV2 = false;
|
|
447
|
+
this.defer = false;
|
|
448
|
+
this.ephemeral = false;
|
|
449
|
+
this.customIdParser = parseCustomId;
|
|
450
|
+
}
|
|
451
|
+
run(_interaction, _data) {}
|
|
452
|
+
};
|
|
453
|
+
var BaseModalComponent = class extends BaseComponent {};
|
|
454
|
+
//#endregion
|
|
455
|
+
//#region extensions/discord/src/internal/components.message.ts
|
|
456
|
+
var BaseButton = class extends BaseMessageInteractiveComponent {
|
|
457
|
+
constructor(..._args) {
|
|
458
|
+
super(..._args);
|
|
459
|
+
this.type = ComponentType.Button;
|
|
460
|
+
this.style = ButtonStyle.Primary;
|
|
461
|
+
this.disabled = false;
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
var Button = class extends BaseButton {
|
|
465
|
+
serialize() {
|
|
466
|
+
return stripUndefinedFields({
|
|
467
|
+
type: this.type,
|
|
468
|
+
style: this.style,
|
|
469
|
+
custom_id: this.customId,
|
|
470
|
+
label: this.label,
|
|
471
|
+
emoji: this.emoji,
|
|
472
|
+
disabled: this.disabled || void 0
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
};
|
|
476
|
+
var LinkButton = class extends BaseButton {
|
|
477
|
+
constructor(..._args2) {
|
|
478
|
+
super(..._args2);
|
|
479
|
+
this.customId = "";
|
|
480
|
+
this.style = ButtonStyle.Link;
|
|
481
|
+
}
|
|
482
|
+
async run() {
|
|
483
|
+
throw new Error("Link buttons do not run handlers");
|
|
484
|
+
}
|
|
485
|
+
serialize() {
|
|
486
|
+
return stripUndefinedFields({
|
|
487
|
+
type: this.type,
|
|
488
|
+
style: this.style,
|
|
489
|
+
label: this.label,
|
|
490
|
+
emoji: this.emoji,
|
|
491
|
+
disabled: this.disabled || void 0,
|
|
492
|
+
url: this.url
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
var AnySelectMenu = class extends BaseMessageInteractiveComponent {
|
|
497
|
+
constructor(..._args3) {
|
|
498
|
+
super(..._args3);
|
|
499
|
+
this.disabled = false;
|
|
500
|
+
}
|
|
501
|
+
serialize() {
|
|
502
|
+
return stripUndefinedFields({
|
|
503
|
+
...this.serializeOptions(),
|
|
504
|
+
custom_id: this.customId,
|
|
505
|
+
placeholder: this.placeholder,
|
|
506
|
+
min_values: this.minValues,
|
|
507
|
+
max_values: this.maxValues,
|
|
508
|
+
disabled: this.disabled || void 0,
|
|
509
|
+
required: this.required
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
var StringSelectMenu = class extends AnySelectMenu {
|
|
514
|
+
constructor(..._args4) {
|
|
515
|
+
super(..._args4);
|
|
516
|
+
this.type = ComponentType.StringSelect;
|
|
517
|
+
}
|
|
518
|
+
serializeOptions() {
|
|
519
|
+
return {
|
|
520
|
+
type: this.type,
|
|
521
|
+
options: this.options
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
var UserSelectMenu = class extends AnySelectMenu {
|
|
526
|
+
constructor(..._args5) {
|
|
527
|
+
super(..._args5);
|
|
528
|
+
this.type = ComponentType.UserSelect;
|
|
529
|
+
}
|
|
530
|
+
serializeOptions() {
|
|
531
|
+
return {
|
|
532
|
+
type: this.type,
|
|
533
|
+
default_values: this.defaultValues
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
var RoleSelectMenu = class extends AnySelectMenu {
|
|
538
|
+
constructor(..._args6) {
|
|
539
|
+
super(..._args6);
|
|
540
|
+
this.type = ComponentType.RoleSelect;
|
|
541
|
+
}
|
|
542
|
+
serializeOptions() {
|
|
543
|
+
return {
|
|
544
|
+
type: this.type,
|
|
545
|
+
default_values: this.defaultValues
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
var MentionableSelectMenu = class extends AnySelectMenu {
|
|
550
|
+
constructor(..._args7) {
|
|
551
|
+
super(..._args7);
|
|
552
|
+
this.type = ComponentType.MentionableSelect;
|
|
553
|
+
}
|
|
554
|
+
serializeOptions() {
|
|
555
|
+
return {
|
|
556
|
+
type: this.type,
|
|
557
|
+
default_values: this.defaultValues
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
var ChannelSelectMenu = class extends AnySelectMenu {
|
|
562
|
+
constructor(..._args8) {
|
|
563
|
+
super(..._args8);
|
|
564
|
+
this.type = ComponentType.ChannelSelect;
|
|
565
|
+
}
|
|
566
|
+
serializeOptions() {
|
|
567
|
+
return {
|
|
568
|
+
type: this.type,
|
|
569
|
+
default_values: this.defaultValues,
|
|
570
|
+
channel_types: this.channelTypes
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
};
|
|
574
|
+
var Row = class extends BaseComponent {
|
|
575
|
+
constructor(components = []) {
|
|
576
|
+
super();
|
|
577
|
+
this.type = ComponentType.ActionRow;
|
|
578
|
+
this.isV2 = false;
|
|
579
|
+
this.components = components;
|
|
580
|
+
}
|
|
581
|
+
addComponent(component) {
|
|
582
|
+
this.components.push(component);
|
|
583
|
+
}
|
|
584
|
+
serialize() {
|
|
585
|
+
return {
|
|
586
|
+
type: this.type,
|
|
587
|
+
components: this.components.map((entry) => entry.serialize())
|
|
588
|
+
};
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
var TextDisplay = class extends BaseComponent {
|
|
592
|
+
constructor(content) {
|
|
593
|
+
super();
|
|
594
|
+
this.content = content;
|
|
595
|
+
this.type = ComponentType.TextDisplay;
|
|
596
|
+
this.isV2 = true;
|
|
597
|
+
}
|
|
598
|
+
serialize() {
|
|
599
|
+
return stripUndefinedFields({
|
|
600
|
+
type: this.type,
|
|
601
|
+
content: this.content
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
};
|
|
605
|
+
var Separator = class extends BaseComponent {
|
|
606
|
+
constructor(options) {
|
|
607
|
+
super();
|
|
608
|
+
this.type = ComponentType.Separator;
|
|
609
|
+
this.isV2 = true;
|
|
610
|
+
this.divider = true;
|
|
611
|
+
this.spacing = "small";
|
|
612
|
+
this.spacing = options?.spacing ?? this.spacing;
|
|
613
|
+
this.divider = options?.divider ?? this.divider;
|
|
614
|
+
}
|
|
615
|
+
serialize() {
|
|
616
|
+
return stripUndefinedFields({
|
|
617
|
+
type: this.type,
|
|
618
|
+
divider: this.divider,
|
|
619
|
+
spacing: this.spacing === "large" ? 2 : this.spacing === "small" ? 1 : this.spacing
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
};
|
|
623
|
+
var Thumbnail = class extends BaseComponent {
|
|
624
|
+
constructor(url) {
|
|
625
|
+
super();
|
|
626
|
+
this.url = url;
|
|
627
|
+
this.type = ComponentType.Thumbnail;
|
|
628
|
+
this.isV2 = true;
|
|
629
|
+
}
|
|
630
|
+
serialize() {
|
|
631
|
+
return stripUndefinedFields({
|
|
632
|
+
type: this.type,
|
|
633
|
+
media: this.url ? { url: this.url } : void 0
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
};
|
|
637
|
+
var Section = class extends BaseComponent {
|
|
638
|
+
constructor(components = [], accessory) {
|
|
639
|
+
super();
|
|
640
|
+
this.components = components;
|
|
641
|
+
this.accessory = accessory;
|
|
642
|
+
this.type = ComponentType.Section;
|
|
643
|
+
this.isV2 = true;
|
|
644
|
+
}
|
|
645
|
+
serialize() {
|
|
646
|
+
return stripUndefinedFields({
|
|
647
|
+
type: this.type,
|
|
648
|
+
components: this.components.map((entry) => entry.serialize()),
|
|
649
|
+
accessory: this.accessory?.serialize()
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
};
|
|
653
|
+
var MediaGallery = class extends BaseComponent {
|
|
654
|
+
constructor(items = []) {
|
|
655
|
+
super();
|
|
656
|
+
this.items = items;
|
|
657
|
+
this.type = ComponentType.MediaGallery;
|
|
658
|
+
this.isV2 = true;
|
|
659
|
+
}
|
|
660
|
+
serialize() {
|
|
661
|
+
return {
|
|
662
|
+
type: this.type,
|
|
663
|
+
items: this.items.map((entry) => ({
|
|
664
|
+
media: { url: entry.url },
|
|
665
|
+
description: entry.description,
|
|
666
|
+
spoiler: entry.spoiler
|
|
667
|
+
}))
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
var File = class extends BaseComponent {
|
|
672
|
+
constructor(file, spoiler = false) {
|
|
673
|
+
super();
|
|
674
|
+
this.file = file;
|
|
675
|
+
this.spoiler = spoiler;
|
|
676
|
+
this.type = ComponentType.File;
|
|
677
|
+
this.isV2 = true;
|
|
678
|
+
}
|
|
679
|
+
serialize() {
|
|
680
|
+
return stripUndefinedFields({
|
|
681
|
+
type: this.type,
|
|
682
|
+
file: this.file ? { url: this.file } : void 0,
|
|
683
|
+
spoiler: this.spoiler || void 0
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
};
|
|
687
|
+
var Container = class extends BaseComponent {
|
|
688
|
+
constructor(components = [], options) {
|
|
689
|
+
super();
|
|
690
|
+
this.type = ComponentType.Container;
|
|
691
|
+
this.isV2 = true;
|
|
692
|
+
this.spoiler = false;
|
|
693
|
+
this.components = components;
|
|
694
|
+
this.accentColor = options?.accentColor;
|
|
695
|
+
this.spoiler = options?.spoiler ?? false;
|
|
696
|
+
}
|
|
697
|
+
serialize() {
|
|
698
|
+
return stripUndefinedFields({
|
|
699
|
+
type: this.type,
|
|
700
|
+
components: this.components.map((entry) => entry.serialize()),
|
|
701
|
+
accent_color: colorToNumber(this.accentColor),
|
|
702
|
+
spoiler: this.spoiler || void 0
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
};
|
|
706
|
+
//#endregion
|
|
707
|
+
//#region extensions/discord/src/internal/components.modal.ts
|
|
708
|
+
var TextInput = class extends BaseModalComponent {
|
|
709
|
+
constructor(..._args) {
|
|
710
|
+
super(..._args);
|
|
711
|
+
this.type = ComponentType.TextInput;
|
|
712
|
+
this.customIdParser = parseCustomId;
|
|
713
|
+
this.style = TextInputStyle.Short;
|
|
714
|
+
}
|
|
715
|
+
serialize() {
|
|
716
|
+
return stripUndefinedFields({
|
|
717
|
+
type: this.type,
|
|
718
|
+
custom_id: this.customId,
|
|
719
|
+
style: this.style,
|
|
720
|
+
min_length: this.minLength,
|
|
721
|
+
max_length: this.maxLength,
|
|
722
|
+
required: this.required,
|
|
723
|
+
value: this.value,
|
|
724
|
+
placeholder: this.placeholder
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
};
|
|
728
|
+
var CheckboxGroup = class extends BaseModalComponent {
|
|
729
|
+
constructor(..._args2) {
|
|
730
|
+
super(..._args2);
|
|
731
|
+
this.type = 22;
|
|
732
|
+
this.options = [];
|
|
733
|
+
}
|
|
734
|
+
serialize() {
|
|
735
|
+
return stripUndefinedFields({
|
|
736
|
+
type: this.type,
|
|
737
|
+
custom_id: this.customId,
|
|
738
|
+
options: this.options,
|
|
739
|
+
required: this.required,
|
|
740
|
+
min_values: this.minValues,
|
|
741
|
+
max_values: this.maxValues
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
};
|
|
745
|
+
var RadioGroup = class extends BaseModalComponent {
|
|
746
|
+
constructor(..._args3) {
|
|
747
|
+
super(..._args3);
|
|
748
|
+
this.type = 21;
|
|
749
|
+
this.options = [];
|
|
750
|
+
}
|
|
751
|
+
serialize() {
|
|
752
|
+
return stripUndefinedFields({
|
|
753
|
+
type: this.type,
|
|
754
|
+
custom_id: this.customId,
|
|
755
|
+
options: this.options,
|
|
756
|
+
required: this.required,
|
|
757
|
+
min_values: this.minValues,
|
|
758
|
+
max_values: this.maxValues
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
var Label = class extends BaseModalComponent {
|
|
763
|
+
constructor(component) {
|
|
764
|
+
super();
|
|
765
|
+
this.component = component;
|
|
766
|
+
this.type = ComponentType.Label;
|
|
767
|
+
this.customId = "";
|
|
768
|
+
}
|
|
769
|
+
serialize() {
|
|
770
|
+
return stripUndefinedFields({
|
|
771
|
+
type: this.type,
|
|
772
|
+
label: this.label,
|
|
773
|
+
description: this.description,
|
|
774
|
+
component: this.component?.serialize()
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
};
|
|
778
|
+
var Modal = class {
|
|
779
|
+
constructor() {
|
|
780
|
+
this.components = [];
|
|
781
|
+
this.customIdParser = parseCustomId;
|
|
782
|
+
}
|
|
783
|
+
serialize() {
|
|
784
|
+
return {
|
|
785
|
+
title: this.title,
|
|
786
|
+
custom_id: this.customId,
|
|
787
|
+
components: this.components.map((entry) => entry.serialize())
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
};
|
|
791
|
+
//#endregion
|
|
792
|
+
//#region extensions/discord/src/internal/embeds.ts
|
|
793
|
+
var Embed = class {
|
|
794
|
+
constructor(embed) {
|
|
795
|
+
Object.assign(this, embed);
|
|
796
|
+
}
|
|
797
|
+
serialize() {
|
|
798
|
+
return stripUndefinedFields({
|
|
799
|
+
title: this.title,
|
|
800
|
+
description: this.description,
|
|
801
|
+
url: this.url,
|
|
802
|
+
timestamp: this.timestamp,
|
|
803
|
+
color: this.color,
|
|
804
|
+
footer: this.footer,
|
|
805
|
+
image: typeof this.image === "string" ? { url: this.image } : this.image,
|
|
806
|
+
thumbnail: typeof this.thumbnail === "string" ? { url: this.thumbnail } : this.thumbnail,
|
|
807
|
+
author: this.author,
|
|
808
|
+
fields: this.fields
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
//#endregion
|
|
813
|
+
//#region extensions/discord/src/internal/payload.ts
|
|
814
|
+
function hasDiscordV2Components(components) {
|
|
815
|
+
return Boolean(components?.some((component) => "isV2" in component && component.isV2 || "type" in component && component.type !== ComponentType.ActionRow));
|
|
816
|
+
}
|
|
817
|
+
function normalizePayloadFlags(payload) {
|
|
818
|
+
const flags = payload.ephemeral ? (payload.flags ?? 0) | MessageFlags.Ephemeral : payload.flags;
|
|
819
|
+
if (!hasDiscordV2Components(payload.components)) return flags;
|
|
820
|
+
if (payload.content || payload.embeds?.length) throw new Error("Discord Components V2 payloads cannot include content or embeds");
|
|
821
|
+
return (flags ?? 0) | MessageFlags.IsComponentsV2;
|
|
822
|
+
}
|
|
823
|
+
function serializePayload(payload) {
|
|
824
|
+
if (typeof payload === "string") return { content: payload };
|
|
825
|
+
const flags = normalizePayloadFlags(payload);
|
|
826
|
+
return stripUndefinedFields({
|
|
827
|
+
content: payload.content,
|
|
828
|
+
embeds: payload.embeds?.map((entry) => "serialize" in entry ? entry.serialize() : entry),
|
|
829
|
+
components: payload.components?.map((entry) => "serialize" in entry ? entry.serialize() : entry),
|
|
830
|
+
allowed_mentions: payload.allowed_mentions ?? payload.allowedMentions,
|
|
831
|
+
flags,
|
|
832
|
+
tts: payload.tts,
|
|
833
|
+
files: payload.files,
|
|
834
|
+
poll: payload.poll,
|
|
835
|
+
sticker_ids: payload.stickers
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
//#endregion
|
|
839
|
+
//#region extensions/discord/src/internal/component-registry.ts
|
|
840
|
+
var ComponentRegistry = class {
|
|
841
|
+
constructor() {
|
|
842
|
+
this.entries = /* @__PURE__ */ new Map();
|
|
843
|
+
this.oneOffComponents = /* @__PURE__ */ new Map();
|
|
844
|
+
this.wildcardEntries = [];
|
|
845
|
+
}
|
|
846
|
+
register(entry) {
|
|
847
|
+
const key = parseRegistryKey(entry.customId, entry.customIdParser);
|
|
848
|
+
if (key === "*") {
|
|
849
|
+
if (!this.wildcardEntries.includes(entry)) this.wildcardEntries.push(entry);
|
|
850
|
+
return;
|
|
851
|
+
}
|
|
852
|
+
const entries = this.entries.get(key) ?? [];
|
|
853
|
+
if (!entries.includes(entry)) {
|
|
854
|
+
entries.push(entry);
|
|
855
|
+
this.entries.set(key, entries);
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
resolve(customId, options) {
|
|
859
|
+
for (const entries of this.entries.values()) {
|
|
860
|
+
const match = entries.find((entry) => {
|
|
861
|
+
if (options?.componentType !== void 0 && entry.type !== options.componentType) return false;
|
|
862
|
+
const parser = entry.customIdParser ?? parseCustomId;
|
|
863
|
+
return parseRegistryKey(entry.customId, parser) === parseRegistryKey(customId, parser);
|
|
864
|
+
});
|
|
865
|
+
if (match) return match;
|
|
866
|
+
}
|
|
867
|
+
return this.wildcardEntries.find((entry) => {
|
|
868
|
+
if (options?.componentType !== void 0 && entry.type !== options.componentType) return false;
|
|
869
|
+
return true;
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
waitForMessageComponent(message, timeoutMs) {
|
|
873
|
+
const key = createOneOffComponentKey(message.id, message.channelId);
|
|
874
|
+
return new Promise((resolve) => {
|
|
875
|
+
const existing = this.oneOffComponents.get(key);
|
|
876
|
+
if (existing) {
|
|
877
|
+
clearTimeout(existing.timer);
|
|
878
|
+
existing.resolve({
|
|
879
|
+
success: false,
|
|
880
|
+
message: existing.message,
|
|
881
|
+
reason: "timed out"
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
const timer = setTimeout(() => {
|
|
885
|
+
this.oneOffComponents.delete(key);
|
|
886
|
+
resolve({
|
|
887
|
+
success: false,
|
|
888
|
+
message,
|
|
889
|
+
reason: "timed out"
|
|
890
|
+
});
|
|
891
|
+
}, resolveTimerTimeoutMs(timeoutMs, 0, 0));
|
|
892
|
+
timer.unref?.();
|
|
893
|
+
this.oneOffComponents.set(key, {
|
|
894
|
+
message,
|
|
895
|
+
timer,
|
|
896
|
+
resolve
|
|
897
|
+
});
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
resolveOneOffComponent(params) {
|
|
901
|
+
if (!params.messageId || !params.channelId) return false;
|
|
902
|
+
const key = createOneOffComponentKey(params.messageId, params.channelId);
|
|
903
|
+
const entry = this.oneOffComponents.get(key);
|
|
904
|
+
if (!entry) return false;
|
|
905
|
+
clearTimeout(entry.timer);
|
|
906
|
+
this.oneOffComponents.delete(key);
|
|
907
|
+
entry.resolve({
|
|
908
|
+
success: true,
|
|
909
|
+
customId: params.customId,
|
|
910
|
+
message: entry.message,
|
|
911
|
+
values: params.values
|
|
912
|
+
});
|
|
913
|
+
return true;
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
function parseRegistryKey(customId, parser = parseCustomId) {
|
|
917
|
+
return parser(customId).key;
|
|
918
|
+
}
|
|
919
|
+
function createOneOffComponentKey(messageId, channelId) {
|
|
920
|
+
return `${messageId}:${channelId}`;
|
|
921
|
+
}
|
|
922
|
+
//#endregion
|
|
923
|
+
//#region extensions/discord/src/internal/structures.ts
|
|
924
|
+
var Base = class {
|
|
925
|
+
constructor(client) {
|
|
926
|
+
this.client = client;
|
|
927
|
+
}
|
|
928
|
+
};
|
|
929
|
+
var User = class extends Base {
|
|
930
|
+
constructor(client, rawDataOrId) {
|
|
931
|
+
super(client);
|
|
932
|
+
this.rawDataValue = typeof rawDataOrId === "string" ? null : rawDataOrId;
|
|
933
|
+
this.id = typeof rawDataOrId === "string" ? rawDataOrId : rawDataOrId.id;
|
|
934
|
+
}
|
|
935
|
+
get rawData() {
|
|
936
|
+
if (!this.rawDataValue) throw new Error("Partial Discord user has no raw data");
|
|
937
|
+
return this.rawDataValue;
|
|
938
|
+
}
|
|
939
|
+
get partial() {
|
|
940
|
+
return this.rawDataValue === null;
|
|
941
|
+
}
|
|
942
|
+
get username() {
|
|
943
|
+
return this.rawDataValue?.username ?? "";
|
|
944
|
+
}
|
|
945
|
+
get globalName() {
|
|
946
|
+
return this.rawDataValue?.global_name;
|
|
947
|
+
}
|
|
948
|
+
get discriminator() {
|
|
949
|
+
return this.rawDataValue?.discriminator;
|
|
950
|
+
}
|
|
951
|
+
get bot() {
|
|
952
|
+
return this.rawDataValue?.bot;
|
|
953
|
+
}
|
|
954
|
+
get avatar() {
|
|
955
|
+
return this.rawDataValue?.avatar;
|
|
956
|
+
}
|
|
957
|
+
get avatarUrl() {
|
|
958
|
+
return this.avatar ? `https://cdn.discordapp.com/avatars/${this.id}/${this.avatar}.png` : null;
|
|
959
|
+
}
|
|
960
|
+
toString() {
|
|
961
|
+
return `<@${this.id}>`;
|
|
962
|
+
}
|
|
963
|
+
async fetch() {
|
|
964
|
+
return this.client.fetchUser(this.id);
|
|
965
|
+
}
|
|
966
|
+
async createDm() {
|
|
967
|
+
return await createUserDmChannel(this.client.rest, this.id);
|
|
968
|
+
}
|
|
969
|
+
async send(data) {
|
|
970
|
+
const dm = await this.createDm();
|
|
971
|
+
const message = await createChannelMessage(this.client.rest, dm.id, { body: serializePayload(data) });
|
|
972
|
+
return new Message(this.client, message);
|
|
973
|
+
}
|
|
974
|
+
};
|
|
975
|
+
var Role = class extends Base {
|
|
976
|
+
constructor(client, rawDataOrId) {
|
|
977
|
+
super(client);
|
|
978
|
+
this.rawDataValue = typeof rawDataOrId === "string" ? null : rawDataOrId;
|
|
979
|
+
this.id = typeof rawDataOrId === "string" ? rawDataOrId : rawDataOrId.id;
|
|
980
|
+
}
|
|
981
|
+
get name() {
|
|
982
|
+
return this.rawDataValue?.name ?? "";
|
|
983
|
+
}
|
|
984
|
+
};
|
|
985
|
+
var Guild = class extends Base {
|
|
986
|
+
constructor(client, rawDataOrId) {
|
|
987
|
+
super(client);
|
|
988
|
+
this.rawDataValue = typeof rawDataOrId === "string" ? null : rawDataOrId;
|
|
989
|
+
this.id = typeof rawDataOrId === "string" ? rawDataOrId : rawDataOrId.id;
|
|
990
|
+
}
|
|
991
|
+
get name() {
|
|
992
|
+
return this.rawDataValue?.name ?? "";
|
|
993
|
+
}
|
|
994
|
+
get icon() {
|
|
995
|
+
return this.rawDataValue?.icon;
|
|
996
|
+
}
|
|
997
|
+
get iconUrl() {
|
|
998
|
+
return this.icon ? `https://cdn.discordapp.com/icons/${this.id}/${this.icon}.png` : null;
|
|
999
|
+
}
|
|
1000
|
+
};
|
|
1001
|
+
var GuildMember = class extends Base {
|
|
1002
|
+
constructor(client, rawData) {
|
|
1003
|
+
super(client);
|
|
1004
|
+
this.rawData = rawData;
|
|
1005
|
+
}
|
|
1006
|
+
get user() {
|
|
1007
|
+
return this.rawData.user ? new User(this.client, this.rawData.user) : null;
|
|
1008
|
+
}
|
|
1009
|
+
get roles() {
|
|
1010
|
+
return this.rawData.roles ?? [];
|
|
1011
|
+
}
|
|
1012
|
+
get nickname() {
|
|
1013
|
+
return this.rawData.nick ?? void 0;
|
|
1014
|
+
}
|
|
1015
|
+
};
|
|
1016
|
+
var Message = class Message extends Base {
|
|
1017
|
+
constructor(client, rawDataOrIds) {
|
|
1018
|
+
super(client);
|
|
1019
|
+
this.rawDataValue = typeof rawDataOrIds === "string" || !("author" in rawDataOrIds) ? null : rawDataOrIds;
|
|
1020
|
+
this.id = typeof rawDataOrIds === "string" ? rawDataOrIds : rawDataOrIds.id;
|
|
1021
|
+
this.channelId = typeof rawDataOrIds === "string" ? "" : "channel_id" in rawDataOrIds ? rawDataOrIds.channel_id : rawDataOrIds.channelId ?? "";
|
|
1022
|
+
}
|
|
1023
|
+
get rawData() {
|
|
1024
|
+
if (!this.rawDataValue) throw new Error("Partial Discord message has no raw data");
|
|
1025
|
+
return this.rawDataValue;
|
|
1026
|
+
}
|
|
1027
|
+
get partial() {
|
|
1028
|
+
return this.rawDataValue === null;
|
|
1029
|
+
}
|
|
1030
|
+
get message() {
|
|
1031
|
+
return this;
|
|
1032
|
+
}
|
|
1033
|
+
get channel_id() {
|
|
1034
|
+
return this.channelId;
|
|
1035
|
+
}
|
|
1036
|
+
get guild_id() {
|
|
1037
|
+
return this.rawDataValue?.guild_id;
|
|
1038
|
+
}
|
|
1039
|
+
get guild() {
|
|
1040
|
+
return this.guild_id ? new Guild(this.client, this.guild_id) : null;
|
|
1041
|
+
}
|
|
1042
|
+
get webhookId() {
|
|
1043
|
+
return this.webhook_id;
|
|
1044
|
+
}
|
|
1045
|
+
get webhook_id() {
|
|
1046
|
+
return this.rawDataValue?.webhook_id ?? null;
|
|
1047
|
+
}
|
|
1048
|
+
get member() {
|
|
1049
|
+
const member = this.rawDataValue?.member;
|
|
1050
|
+
return member ? new GuildMember(this.client, member) : null;
|
|
1051
|
+
}
|
|
1052
|
+
get rawMember() {
|
|
1053
|
+
return this.rawDataValue?.member;
|
|
1054
|
+
}
|
|
1055
|
+
get content() {
|
|
1056
|
+
return this.rawDataValue?.content ?? "";
|
|
1057
|
+
}
|
|
1058
|
+
get author() {
|
|
1059
|
+
return this.rawDataValue?.author ? new User(this.client, this.rawDataValue.author) : null;
|
|
1060
|
+
}
|
|
1061
|
+
get embeds() {
|
|
1062
|
+
return this.rawDataValue?.embeds ?? [];
|
|
1063
|
+
}
|
|
1064
|
+
get attachments() {
|
|
1065
|
+
return this.rawDataValue?.attachments ?? [];
|
|
1066
|
+
}
|
|
1067
|
+
get stickers() {
|
|
1068
|
+
return this.rawDataValue?.sticker_items ?? [];
|
|
1069
|
+
}
|
|
1070
|
+
get mentionedUsers() {
|
|
1071
|
+
return (this.rawDataValue?.mentions ?? []).map((user) => new User(this.client, user));
|
|
1072
|
+
}
|
|
1073
|
+
get mentionedRoles() {
|
|
1074
|
+
return this.rawDataValue?.mention_roles ?? [];
|
|
1075
|
+
}
|
|
1076
|
+
get mentionedEveryone() {
|
|
1077
|
+
return this.rawDataValue?.mention_everyone ?? false;
|
|
1078
|
+
}
|
|
1079
|
+
get timestamp() {
|
|
1080
|
+
return this.rawDataValue?.timestamp;
|
|
1081
|
+
}
|
|
1082
|
+
get type() {
|
|
1083
|
+
return this.rawDataValue?.type;
|
|
1084
|
+
}
|
|
1085
|
+
get messageReference() {
|
|
1086
|
+
return this.rawDataValue?.message_reference;
|
|
1087
|
+
}
|
|
1088
|
+
get referencedMessage() {
|
|
1089
|
+
return this.rawDataValue?.referenced_message ? new Message(this.client, this.rawDataValue.referenced_message) : null;
|
|
1090
|
+
}
|
|
1091
|
+
get thread() {
|
|
1092
|
+
return this.rawDataValue?.thread ? channelFactory(this.client, this.rawDataValue.thread) : null;
|
|
1093
|
+
}
|
|
1094
|
+
async fetch() {
|
|
1095
|
+
const raw = await getChannelMessage(this.client.rest, this.channelId, this.id);
|
|
1096
|
+
return new Message(this.client, raw);
|
|
1097
|
+
}
|
|
1098
|
+
async delete() {
|
|
1099
|
+
await deleteChannelMessage(this.client.rest, this.channelId, this.id);
|
|
1100
|
+
}
|
|
1101
|
+
async edit(data) {
|
|
1102
|
+
const raw = await editChannelMessage(this.client.rest, this.channelId, this.id, { body: serializePayload(data) });
|
|
1103
|
+
return new Message(this.client, raw);
|
|
1104
|
+
}
|
|
1105
|
+
async reply(data) {
|
|
1106
|
+
const raw = await createChannelMessage(this.client.rest, this.channelId, { body: {
|
|
1107
|
+
...serializePayload(data),
|
|
1108
|
+
message_reference: {
|
|
1109
|
+
message_id: this.id,
|
|
1110
|
+
fail_if_not_exists: false
|
|
1111
|
+
}
|
|
1112
|
+
} });
|
|
1113
|
+
return new Message(this.client, raw);
|
|
1114
|
+
}
|
|
1115
|
+
async pin() {
|
|
1116
|
+
await pinChannelMessage(this.client.rest, this.channelId, this.id);
|
|
1117
|
+
}
|
|
1118
|
+
async unpin() {
|
|
1119
|
+
await unpinChannelMessage(this.client.rest, this.channelId, this.id);
|
|
1120
|
+
}
|
|
1121
|
+
};
|
|
1122
|
+
function channelFactory(clientForTest, channelData, _partial) {
|
|
1123
|
+
return {
|
|
1124
|
+
...channelData,
|
|
1125
|
+
rawData: channelData,
|
|
1126
|
+
guildId: "guild_id" in channelData ? channelData.guild_id : void 0,
|
|
1127
|
+
guild: "guild_id" in channelData && typeof channelData.guild_id === "string" ? new Guild(clientForTest, channelData.guild_id) : void 0,
|
|
1128
|
+
parentId: "parent_id" in channelData ? channelData.parent_id : void 0,
|
|
1129
|
+
ownerId: "owner_id" in channelData ? channelData.owner_id : void 0
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
//#endregion
|
|
1133
|
+
//#region extensions/discord/src/internal/entity-cache.ts
|
|
1134
|
+
const DEFAULT_REST_CACHE_TTL_MS = 3e4;
|
|
1135
|
+
const DEFAULT_MAX_ENTRIES = 5e3;
|
|
1136
|
+
const DEFAULT_SWEEP_INTERVAL_MS = 3e4;
|
|
1137
|
+
var DiscordEntityCache = class {
|
|
1138
|
+
constructor(params) {
|
|
1139
|
+
this.params = params;
|
|
1140
|
+
this.entries = /* @__PURE__ */ new Map();
|
|
1141
|
+
this.lastSweepAt = 0;
|
|
1142
|
+
}
|
|
1143
|
+
get size() {
|
|
1144
|
+
return this.entries.size;
|
|
1145
|
+
}
|
|
1146
|
+
async fetchUser(id) {
|
|
1147
|
+
return await this.fetchCached(`user:${id}`, async () => {
|
|
1148
|
+
const raw = await getUser(this.rest, id);
|
|
1149
|
+
return new User(this.params.client, raw);
|
|
1150
|
+
});
|
|
1151
|
+
}
|
|
1152
|
+
async fetchChannel(id) {
|
|
1153
|
+
return await this.fetchCached(`channel:${id}`, async () => {
|
|
1154
|
+
const raw = await getChannel(this.rest, id);
|
|
1155
|
+
return channelFactory(this.params.client, raw);
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
1158
|
+
async fetchGuild(id) {
|
|
1159
|
+
return await this.fetchCached(`guild:${id}`, async () => {
|
|
1160
|
+
const raw = await getGuild(this.rest, id);
|
|
1161
|
+
return new Guild(this.params.client, raw);
|
|
1162
|
+
});
|
|
1163
|
+
}
|
|
1164
|
+
async fetchMember(guildId, userId) {
|
|
1165
|
+
return await this.fetchCached(`member:${guildId}:${userId}`, async () => {
|
|
1166
|
+
const raw = await getGuildMember(this.rest, guildId, userId);
|
|
1167
|
+
return new GuildMember(this.params.client, raw);
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
async fetchGuildEmojis(guildId, fetcher) {
|
|
1171
|
+
return await this.fetchCached(`guild-emojis:${guildId}`, fetcher);
|
|
1172
|
+
}
|
|
1173
|
+
invalidateForGatewayEvent(type, data) {
|
|
1174
|
+
const raw = data && typeof data === "object" ? data : {};
|
|
1175
|
+
const channelUpdate = GatewayDispatchEvents.ChannelUpdate;
|
|
1176
|
+
const channelDelete = GatewayDispatchEvents.ChannelDelete;
|
|
1177
|
+
const threadUpdate = GatewayDispatchEvents.ThreadUpdate;
|
|
1178
|
+
const threadDelete = GatewayDispatchEvents.ThreadDelete;
|
|
1179
|
+
const guildUpdate = GatewayDispatchEvents.GuildUpdate;
|
|
1180
|
+
const guildEmojisUpdate = GatewayDispatchEvents.GuildEmojisUpdate;
|
|
1181
|
+
const guildMemberAdd = GatewayDispatchEvents.GuildMemberAdd;
|
|
1182
|
+
const guildMemberRemove = GatewayDispatchEvents.GuildMemberRemove;
|
|
1183
|
+
const guildMemberUpdate = GatewayDispatchEvents.GuildMemberUpdate;
|
|
1184
|
+
if (type === channelUpdate || type === channelDelete || type === threadUpdate || type === threadDelete) this.deleteId("channel", raw.id);
|
|
1185
|
+
if (type === guildUpdate) this.deleteId("guild", raw.id);
|
|
1186
|
+
if (type === guildEmojisUpdate) this.deleteId("guild-emojis", raw.guild_id);
|
|
1187
|
+
if (type === guildMemberAdd || type === guildMemberRemove || type === guildMemberUpdate) {
|
|
1188
|
+
const guildId = raw.guild_id;
|
|
1189
|
+
const user = raw.user && typeof raw.user === "object" ? raw.user : {};
|
|
1190
|
+
if (typeof guildId === "string" && typeof user.id === "string") {
|
|
1191
|
+
this.entries.delete(`member:${guildId}:${user.id}`);
|
|
1192
|
+
this.entries.delete(`user:${user.id}`);
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
deleteId(prefix, id) {
|
|
1197
|
+
if (typeof id === "string") this.entries.delete(`${prefix}:${id}`);
|
|
1198
|
+
}
|
|
1199
|
+
async fetchCached(key, fetcher) {
|
|
1200
|
+
const ttl = this.params.ttlMs ?? DEFAULT_REST_CACHE_TTL_MS;
|
|
1201
|
+
const rawNow = Date.now();
|
|
1202
|
+
const now = asDateTimestampMs(rawNow);
|
|
1203
|
+
if (ttl > 0) {
|
|
1204
|
+
const cached = this.entries.get(key);
|
|
1205
|
+
if (cached && now !== void 0 && cached.expiresAt > now) return cached.value;
|
|
1206
|
+
if (cached) this.entries.delete(key);
|
|
1207
|
+
}
|
|
1208
|
+
const value = await fetcher();
|
|
1209
|
+
if (ttl > 0) {
|
|
1210
|
+
const expiresAt = resolveExpiresAtMsFromDurationMs(ttl, { nowMs: rawNow });
|
|
1211
|
+
if (expiresAt !== void 0) {
|
|
1212
|
+
if (now !== void 0) this.maybeSweepExpired(now);
|
|
1213
|
+
this.entries.set(key, {
|
|
1214
|
+
expiresAt,
|
|
1215
|
+
value
|
|
1216
|
+
});
|
|
1217
|
+
this.enforceMaxEntries();
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
return value;
|
|
1221
|
+
}
|
|
1222
|
+
maybeSweepExpired(now) {
|
|
1223
|
+
const interval = this.params.sweepIntervalMs ?? DEFAULT_SWEEP_INTERVAL_MS;
|
|
1224
|
+
if (now - this.lastSweepAt < interval) return;
|
|
1225
|
+
this.lastSweepAt = now;
|
|
1226
|
+
for (const [key, entry] of this.entries) if (entry.expiresAt <= now) this.entries.delete(key);
|
|
1227
|
+
}
|
|
1228
|
+
enforceMaxEntries() {
|
|
1229
|
+
const max = this.params.maxEntries ?? DEFAULT_MAX_ENTRIES;
|
|
1230
|
+
if (this.entries.size <= max) return;
|
|
1231
|
+
const toRemove = this.entries.size - max;
|
|
1232
|
+
let removed = 0;
|
|
1233
|
+
for (const key of this.entries.keys()) {
|
|
1234
|
+
if (removed >= toRemove) break;
|
|
1235
|
+
this.entries.delete(key);
|
|
1236
|
+
removed += 1;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
get rest() {
|
|
1240
|
+
return typeof this.params.rest === "function" ? this.params.rest() : this.params.rest;
|
|
1241
|
+
}
|
|
1242
|
+
};
|
|
1243
|
+
//#endregion
|
|
1244
|
+
//#region extensions/discord/src/internal/event-queue.ts
|
|
1245
|
+
const DEFAULT_MAX_QUEUE_SIZE = 1e4;
|
|
1246
|
+
const DEFAULT_MAX_CONCURRENCY = 50;
|
|
1247
|
+
const DEFAULT_LISTENER_TIMEOUT_MS = 12e4;
|
|
1248
|
+
const DEFAULT_SLOW_LISTENER_THRESHOLD_MS = 3e4;
|
|
1249
|
+
var DiscordEventQueue = class {
|
|
1250
|
+
constructor(options = {}) {
|
|
1251
|
+
this.queue = [];
|
|
1252
|
+
this.queueHead = 0;
|
|
1253
|
+
this.processing = 0;
|
|
1254
|
+
this.processedCount = 0;
|
|
1255
|
+
this.droppedCount = 0;
|
|
1256
|
+
this.timeoutCount = 0;
|
|
1257
|
+
this.options = {
|
|
1258
|
+
maxQueueSize: normalizePositiveInteger(options.maxQueueSize, DEFAULT_MAX_QUEUE_SIZE),
|
|
1259
|
+
maxConcurrency: normalizePositiveInteger(options.maxConcurrency, DEFAULT_MAX_CONCURRENCY),
|
|
1260
|
+
listenerTimeout: normalizePositiveInteger(options.listenerTimeout, DEFAULT_LISTENER_TIMEOUT_MS),
|
|
1261
|
+
slowListenerThreshold: normalizePositiveInteger(options.slowListenerThreshold, DEFAULT_SLOW_LISTENER_THRESHOLD_MS)
|
|
1262
|
+
};
|
|
1263
|
+
}
|
|
1264
|
+
enqueue(params) {
|
|
1265
|
+
if (this.pendingQueueSize >= this.options.maxQueueSize) {
|
|
1266
|
+
this.droppedCount += 1;
|
|
1267
|
+
return Promise.reject(/* @__PURE__ */ new Error(`Discord event queue is full for ${params.eventType}; maxQueueSize=${this.options.maxQueueSize}`));
|
|
1268
|
+
}
|
|
1269
|
+
return new Promise((resolve, reject) => {
|
|
1270
|
+
this.queue.push({
|
|
1271
|
+
...params,
|
|
1272
|
+
resolve,
|
|
1273
|
+
reject
|
|
1274
|
+
});
|
|
1275
|
+
this.processNext();
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
getMetrics() {
|
|
1279
|
+
return {
|
|
1280
|
+
queueSize: this.pendingQueueSize,
|
|
1281
|
+
processing: this.processing,
|
|
1282
|
+
processed: this.processedCount,
|
|
1283
|
+
dropped: this.droppedCount,
|
|
1284
|
+
timeouts: this.timeoutCount,
|
|
1285
|
+
maxQueueSize: this.options.maxQueueSize,
|
|
1286
|
+
maxConcurrency: this.options.maxConcurrency
|
|
1287
|
+
};
|
|
1288
|
+
}
|
|
1289
|
+
get pendingQueueSize() {
|
|
1290
|
+
return Math.max(0, this.queue.length - this.queueHead);
|
|
1291
|
+
}
|
|
1292
|
+
takeNextJob() {
|
|
1293
|
+
if (this.queueHead >= this.queue.length) {
|
|
1294
|
+
this.queue.length = 0;
|
|
1295
|
+
this.queueHead = 0;
|
|
1296
|
+
return;
|
|
1297
|
+
}
|
|
1298
|
+
const job = this.queue[this.queueHead];
|
|
1299
|
+
this.queueHead += 1;
|
|
1300
|
+
if (this.queueHead >= this.queue.length) {
|
|
1301
|
+
this.queue.length = 0;
|
|
1302
|
+
this.queueHead = 0;
|
|
1303
|
+
} else if (this.queueHead > 256 && this.queueHead * 2 > this.queue.length) {
|
|
1304
|
+
this.queue.splice(0, this.queueHead);
|
|
1305
|
+
this.queueHead = 0;
|
|
1306
|
+
}
|
|
1307
|
+
return job;
|
|
1308
|
+
}
|
|
1309
|
+
processNext() {
|
|
1310
|
+
while (this.processing < this.options.maxConcurrency && this.pendingQueueSize > 0) {
|
|
1311
|
+
const job = this.takeNextJob();
|
|
1312
|
+
if (!job) return;
|
|
1313
|
+
this.processing += 1;
|
|
1314
|
+
const listenerPromise = Promise.resolve().then(() => job.run());
|
|
1315
|
+
const runJobPromise = this.runJob(job, listenerPromise);
|
|
1316
|
+
runJobPromise.then(job.resolve, job.reject).finally(() => {
|
|
1317
|
+
this.processedCount += 1;
|
|
1318
|
+
});
|
|
1319
|
+
Promise.allSettled([runJobPromise, listenerPromise]).then(([dispatchResult, listenerResult]) => {
|
|
1320
|
+
if (dispatchResult.status === "fulfilled" && dispatchResult.value === "timed-out" && listenerResult.status === "rejected") console.error(`[EventQueue] Listener ${job.listenerName} failed after timeout for event ${job.eventType}:`, listenerResult.reason);
|
|
1321
|
+
this.processing -= 1;
|
|
1322
|
+
this.processNext();
|
|
1323
|
+
});
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
async runJob(job, listenerPromise) {
|
|
1327
|
+
const startedAt = Date.now();
|
|
1328
|
+
try {
|
|
1329
|
+
await this.runWithTimeout(listenerPromise);
|
|
1330
|
+
this.logSlowListener(job, Date.now() - startedAt);
|
|
1331
|
+
return "completed";
|
|
1332
|
+
} catch (error) {
|
|
1333
|
+
if (isListenerTimeoutError(error)) {
|
|
1334
|
+
this.timeoutCount += 1;
|
|
1335
|
+
console.error(`[EventQueue] Listener ${job.listenerName} timed out after ${this.options.listenerTimeout}ms for event ${job.eventType}`);
|
|
1336
|
+
return "timed-out";
|
|
1337
|
+
}
|
|
1338
|
+
console.error(`[EventQueue] Listener ${job.listenerName} failed for event ${job.eventType}:`, error);
|
|
1339
|
+
return "failed";
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
async runWithTimeout(listenerPromise) {
|
|
1343
|
+
let timeout;
|
|
1344
|
+
try {
|
|
1345
|
+
await Promise.race([listenerPromise, new Promise((_, reject) => {
|
|
1346
|
+
timeout = setTimeout(() => {
|
|
1347
|
+
reject(createListenerTimeoutError(this.options.listenerTimeout));
|
|
1348
|
+
}, this.options.listenerTimeout);
|
|
1349
|
+
timeout.unref?.();
|
|
1350
|
+
})]);
|
|
1351
|
+
} finally {
|
|
1352
|
+
if (timeout) clearTimeout(timeout);
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
logSlowListener(job, durationMs) {
|
|
1356
|
+
if (durationMs < this.options.slowListenerThreshold) return;
|
|
1357
|
+
console.warn(`[EventQueue] Slow listener detected: ${job.listenerName} took ${durationMs}ms for event ${job.eventType}`);
|
|
1358
|
+
}
|
|
1359
|
+
};
|
|
1360
|
+
function normalizePositiveInteger(value, fallback) {
|
|
1361
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value <= 0) return fallback;
|
|
1362
|
+
return Math.max(1, Math.floor(value));
|
|
1363
|
+
}
|
|
1364
|
+
function createListenerTimeoutError(timeoutMs) {
|
|
1365
|
+
const error = /* @__PURE__ */ new Error(`Listener timeout after ${timeoutMs}ms`);
|
|
1366
|
+
error.name = "DiscordEventQueueListenerTimeoutError";
|
|
1367
|
+
return error;
|
|
1368
|
+
}
|
|
1369
|
+
function isListenerTimeoutError(error) {
|
|
1370
|
+
return error instanceof Error && error.name === "DiscordEventQueueListenerTimeoutError";
|
|
1371
|
+
}
|
|
1372
|
+
//#endregion
|
|
1373
|
+
//#region extensions/discord/src/internal/commands.ts
|
|
1374
|
+
function resolveConditionalCommandOption(value, interaction) {
|
|
1375
|
+
return typeof value === "function" ? value(interaction) : value;
|
|
1376
|
+
}
|
|
1377
|
+
async function deferCommandInteractionIfNeeded(command, interaction) {
|
|
1378
|
+
if (!resolveConditionalCommandOption(command.defer, interaction)) return;
|
|
1379
|
+
await interaction.defer({ ephemeral: resolveConditionalCommandOption(command.ephemeral, interaction) });
|
|
1380
|
+
}
|
|
1381
|
+
function readRawCommandOptions(interaction) {
|
|
1382
|
+
const options = interaction.rawData.data?.options;
|
|
1383
|
+
return Array.isArray(options) ? options : [];
|
|
1384
|
+
}
|
|
1385
|
+
function findSelectedSubcommand(subcommands, interaction) {
|
|
1386
|
+
const subcommandName = readRawCommandOptions(interaction).find((option) => option.type === ApplicationCommandOptionType.Subcommand)?.name;
|
|
1387
|
+
return typeof subcommandName === "string" ? subcommands.find((command) => command.name === subcommandName) : void 0;
|
|
1388
|
+
}
|
|
1389
|
+
function findCommandOption(options, name) {
|
|
1390
|
+
if (!name) return;
|
|
1391
|
+
return options?.find((option) => option.name === name);
|
|
1392
|
+
}
|
|
1393
|
+
function resolveFocusedCommandOptionAutocompleteHandler(command, interaction) {
|
|
1394
|
+
const focusedName = interaction.options.getFocused()?.name;
|
|
1395
|
+
const autocomplete = findCommandOption(command.commandKind === "group" ? findSelectedSubcommand(command.subcommands, interaction)?.options : command.options, focusedName)?.autocomplete;
|
|
1396
|
+
return typeof autocomplete === "function" ? autocomplete : void 0;
|
|
1397
|
+
}
|
|
1398
|
+
var BaseCommand = class {
|
|
1399
|
+
constructor() {
|
|
1400
|
+
this.defer = false;
|
|
1401
|
+
this.ephemeral = false;
|
|
1402
|
+
this.integrationTypes = [0, 1];
|
|
1403
|
+
this.contexts = [
|
|
1404
|
+
InteractionContextType.Guild,
|
|
1405
|
+
InteractionContextType.BotDM,
|
|
1406
|
+
InteractionContextType.PrivateChannel
|
|
1407
|
+
];
|
|
1408
|
+
}
|
|
1409
|
+
serialize() {
|
|
1410
|
+
return stripUndefinedFields({
|
|
1411
|
+
name: this.name,
|
|
1412
|
+
name_localizations: this.nameLocalizations,
|
|
1413
|
+
description: this.type === ApplicationCommandType.ChatInput ? this.description ?? "" : void 0,
|
|
1414
|
+
description_localizations: this.descriptionLocalizations,
|
|
1415
|
+
type: this.type,
|
|
1416
|
+
options: this.serializeOptions(),
|
|
1417
|
+
integration_types: this.integrationTypes,
|
|
1418
|
+
contexts: this.contexts,
|
|
1419
|
+
default_member_permissions: Array.isArray(this.permission) ? this.permission.reduce((sum, entry) => sum | entry, 0n).toString() : this.permission ? this.permission.toString() : null
|
|
1420
|
+
});
|
|
1421
|
+
}
|
|
1422
|
+
};
|
|
1423
|
+
var Command = class extends BaseCommand {
|
|
1424
|
+
constructor(..._args) {
|
|
1425
|
+
super(..._args);
|
|
1426
|
+
this.commandKind = "leaf";
|
|
1427
|
+
this.type = ApplicationCommandType.ChatInput;
|
|
1428
|
+
}
|
|
1429
|
+
async autocomplete(interaction) {
|
|
1430
|
+
throw new Error(`The ${interaction.rawData?.data?.name ?? this.name} command does not support autocomplete`);
|
|
1431
|
+
}
|
|
1432
|
+
serializeOptions() {
|
|
1433
|
+
return this.options?.map((option) => {
|
|
1434
|
+
if (typeof option.autocomplete === "function") {
|
|
1435
|
+
const { autocomplete: _autocomplete, ...rest } = option;
|
|
1436
|
+
return {
|
|
1437
|
+
...rest,
|
|
1438
|
+
autocomplete: true
|
|
1439
|
+
};
|
|
1440
|
+
}
|
|
1441
|
+
return option;
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1444
|
+
};
|
|
1445
|
+
var CommandWithSubcommands = class extends BaseCommand {
|
|
1446
|
+
constructor(..._args2) {
|
|
1447
|
+
super(..._args2);
|
|
1448
|
+
this.commandKind = "group";
|
|
1449
|
+
this.type = ApplicationCommandType.ChatInput;
|
|
1450
|
+
}
|
|
1451
|
+
async run(interaction) {
|
|
1452
|
+
const subcommand = findSelectedSubcommand(this.subcommands, interaction);
|
|
1453
|
+
if (!subcommand) {
|
|
1454
|
+
const subcommandName = readRawCommandOptions(interaction).find((option) => option.type === ApplicationCommandOptionType.Subcommand)?.name;
|
|
1455
|
+
throw new Error(`Unknown Discord subcommand: ${typeof subcommandName === "string" ? subcommandName : "<missing>"}`);
|
|
1456
|
+
}
|
|
1457
|
+
await deferCommandInteractionIfNeeded(subcommand, interaction);
|
|
1458
|
+
return await subcommand.run(interaction);
|
|
1459
|
+
}
|
|
1460
|
+
serializeOptions() {
|
|
1461
|
+
return this.subcommands.map((command) => stripUndefinedFields({
|
|
1462
|
+
name: command.name,
|
|
1463
|
+
name_localizations: command.nameLocalizations,
|
|
1464
|
+
description: command.description ?? "",
|
|
1465
|
+
description_localizations: command.descriptionLocalizations,
|
|
1466
|
+
type: ApplicationCommandOptionType.Subcommand,
|
|
1467
|
+
options: command.serializeOptions()
|
|
1468
|
+
}));
|
|
1469
|
+
}
|
|
1470
|
+
};
|
|
1471
|
+
//#endregion
|
|
1472
|
+
//#region extensions/discord/src/internal/interaction-options.ts
|
|
1473
|
+
function readFocusedOption(options) {
|
|
1474
|
+
for (const option of options ?? []) {
|
|
1475
|
+
if ("focused" in option && option.focused) return option;
|
|
1476
|
+
const child = readFocusedOption(readChildOptions(option));
|
|
1477
|
+
if (child) return child;
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
function findOption(options, name) {
|
|
1481
|
+
for (const option of options ?? []) {
|
|
1482
|
+
if (option.name === name) return option;
|
|
1483
|
+
const child = findOption(readChildOptions(option), name);
|
|
1484
|
+
if (child) return child;
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
function readChildOptions(option) {
|
|
1488
|
+
if (!("options" in option) || !Array.isArray(option.options)) return;
|
|
1489
|
+
return option.options;
|
|
1490
|
+
}
|
|
1491
|
+
var OptionsHandler = class {
|
|
1492
|
+
constructor(rawOptions, client, resolvedChannels) {
|
|
1493
|
+
this.rawOptions = rawOptions;
|
|
1494
|
+
this.client = client;
|
|
1495
|
+
this.resolvedChannels = resolvedChannels;
|
|
1496
|
+
}
|
|
1497
|
+
getString(name) {
|
|
1498
|
+
const option = findOption(this.rawOptions, name);
|
|
1499
|
+
const value = option && "value" in option ? option.value : void 0;
|
|
1500
|
+
return typeof value === "string" ? value : null;
|
|
1501
|
+
}
|
|
1502
|
+
getNumber(name) {
|
|
1503
|
+
const option = findOption(this.rawOptions, name);
|
|
1504
|
+
const value = option && "value" in option ? option.value : void 0;
|
|
1505
|
+
return typeof value === "number" ? value : null;
|
|
1506
|
+
}
|
|
1507
|
+
getBoolean(name) {
|
|
1508
|
+
const option = findOption(this.rawOptions, name);
|
|
1509
|
+
const value = option && "value" in option ? option.value : void 0;
|
|
1510
|
+
return typeof value === "boolean" ? value : null;
|
|
1511
|
+
}
|
|
1512
|
+
async getChannel(name, required = false) {
|
|
1513
|
+
const option = findOption(this.rawOptions, name);
|
|
1514
|
+
const value = option && "value" in option ? option.value : void 0;
|
|
1515
|
+
const id = typeof value === "string" ? value : void 0;
|
|
1516
|
+
const resolved = id ? this.resolvedChannels?.[id] : void 0;
|
|
1517
|
+
if (resolved) return channelFactory(this.client, resolved);
|
|
1518
|
+
if (id) return await this.client.fetchChannel(id);
|
|
1519
|
+
if (required) throw new Error(`Missing required channel option ${name}`);
|
|
1520
|
+
return null;
|
|
1521
|
+
}
|
|
1522
|
+
getFocused() {
|
|
1523
|
+
return readFocusedOption(this.rawOptions);
|
|
1524
|
+
}
|
|
1525
|
+
};
|
|
1526
|
+
//#endregion
|
|
1527
|
+
//#region extensions/discord/src/internal/interaction-response.ts
|
|
1528
|
+
var InteractionResponseController = class {
|
|
1529
|
+
constructor() {
|
|
1530
|
+
this.state = "unacknowledged";
|
|
1531
|
+
}
|
|
1532
|
+
get acknowledged() {
|
|
1533
|
+
return this.state !== "unacknowledged";
|
|
1534
|
+
}
|
|
1535
|
+
recordCallback(type) {
|
|
1536
|
+
if (type === InteractionResponseType.DeferredChannelMessageWithSource) {
|
|
1537
|
+
this.state = "deferred";
|
|
1538
|
+
return;
|
|
1539
|
+
}
|
|
1540
|
+
if (type === InteractionResponseType.DeferredMessageUpdate) {
|
|
1541
|
+
this.state = "deferred-update";
|
|
1542
|
+
return;
|
|
1543
|
+
}
|
|
1544
|
+
this.state = "replied";
|
|
1545
|
+
}
|
|
1546
|
+
nextReplyAction() {
|
|
1547
|
+
if (this.state === "deferred" || this.state === "deferred-update") return "edit";
|
|
1548
|
+
if (this.state === "unacknowledged") return "initial";
|
|
1549
|
+
return "follow-up";
|
|
1550
|
+
}
|
|
1551
|
+
recordReplyEdit() {
|
|
1552
|
+
this.state = "replied";
|
|
1553
|
+
}
|
|
1554
|
+
recordReplyDelete() {
|
|
1555
|
+
this.state = "replied";
|
|
1556
|
+
}
|
|
1557
|
+
};
|
|
1558
|
+
function needsComponentsV2Query(body) {
|
|
1559
|
+
return body !== null && typeof body === "object" && "flags" in body && typeof body.flags === "number" && (body.flags & MessageFlags.IsComponentsV2) !== 0;
|
|
1560
|
+
}
|
|
1561
|
+
//#endregion
|
|
1562
|
+
//#region extensions/discord/src/internal/modal-fields.ts
|
|
1563
|
+
function extractModalFields(components) {
|
|
1564
|
+
const out = {};
|
|
1565
|
+
for (const component of flattenModalComponents(components)) {
|
|
1566
|
+
const raw = component;
|
|
1567
|
+
if (typeof raw.custom_id !== "string") continue;
|
|
1568
|
+
if (Array.isArray(raw.values)) out[raw.custom_id] = raw.values.map(String);
|
|
1569
|
+
else if (typeof raw.value === "string" || typeof raw.value === "number" || typeof raw.value === "boolean") out[raw.custom_id] = String(raw.value);
|
|
1570
|
+
}
|
|
1571
|
+
return out;
|
|
1572
|
+
}
|
|
1573
|
+
function flattenModalComponents(components) {
|
|
1574
|
+
const out = [];
|
|
1575
|
+
for (const entry of components) {
|
|
1576
|
+
if (!entry || typeof entry !== "object") continue;
|
|
1577
|
+
const component = entry;
|
|
1578
|
+
if (component.component && typeof component.component === "object") out.push(component.component);
|
|
1579
|
+
if (Array.isArray(component.components)) out.push(...flattenModalComponents(component.components));
|
|
1580
|
+
out.push(entry);
|
|
1581
|
+
}
|
|
1582
|
+
return out;
|
|
1583
|
+
}
|
|
1584
|
+
var ModalFields = class {
|
|
1585
|
+
constructor(values, resolved, client) {
|
|
1586
|
+
this.values = values;
|
|
1587
|
+
this.resolved = resolved;
|
|
1588
|
+
this.client = client;
|
|
1589
|
+
}
|
|
1590
|
+
value(id, required) {
|
|
1591
|
+
const value = this.values[id];
|
|
1592
|
+
if (required && (value === void 0 || Array.isArray(value) && value.length === 0)) throw new Error(`Missing required modal field ${id}`);
|
|
1593
|
+
return value;
|
|
1594
|
+
}
|
|
1595
|
+
getText(id, required = false) {
|
|
1596
|
+
const value = this.value(id, required);
|
|
1597
|
+
return typeof value === "string" ? value : null;
|
|
1598
|
+
}
|
|
1599
|
+
getStringSelect(id, required = false) {
|
|
1600
|
+
const value = this.value(id, required);
|
|
1601
|
+
if (Array.isArray(value)) return value;
|
|
1602
|
+
return typeof value === "string" ? [value] : [];
|
|
1603
|
+
}
|
|
1604
|
+
getRoleSelect(id, required = false) {
|
|
1605
|
+
return this.getStringSelect(id, required).map((roleId) => {
|
|
1606
|
+
const raw = this.resolved?.roles?.[roleId];
|
|
1607
|
+
return raw ? new Role(this.client, {
|
|
1608
|
+
id: roleId,
|
|
1609
|
+
name: raw.name ?? ""
|
|
1610
|
+
}) : new Role(this.client, roleId);
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
getUserSelect(id, required = false) {
|
|
1614
|
+
return this.getStringSelect(id, required).map((userId) => {
|
|
1615
|
+
const raw = this.resolved?.users?.[userId];
|
|
1616
|
+
return new User(this.client, {
|
|
1617
|
+
id: userId,
|
|
1618
|
+
username: raw?.username ?? ""
|
|
1619
|
+
});
|
|
1620
|
+
});
|
|
1621
|
+
}
|
|
1622
|
+
};
|
|
1623
|
+
//#endregion
|
|
1624
|
+
//#region extensions/discord/src/internal/schemas.ts
|
|
1625
|
+
const discordInteractionPayloadSchema = Type.Object({
|
|
1626
|
+
id: Type.String({ minLength: 1 }),
|
|
1627
|
+
token: Type.String({ minLength: 1 }),
|
|
1628
|
+
type: Type.Number()
|
|
1629
|
+
}, { additionalProperties: true });
|
|
1630
|
+
const discordRateLimitBodySchema = Type.Object({
|
|
1631
|
+
message: Type.Optional(Type.String()),
|
|
1632
|
+
retry_after: Type.Optional(Type.Union([Type.Number(), Type.String()])),
|
|
1633
|
+
global: Type.Optional(Type.Boolean()),
|
|
1634
|
+
code: Type.Optional(Type.Union([Type.Number(), Type.String()]))
|
|
1635
|
+
}, { additionalProperties: true });
|
|
1636
|
+
function assertDiscordInteractionPayload(value) {
|
|
1637
|
+
if (!Check(discordInteractionPayloadSchema, value)) throw new Error("Invalid Discord interaction payload");
|
|
1638
|
+
}
|
|
1639
|
+
function isDiscordRateLimitBody(value) {
|
|
1640
|
+
return Check(discordRateLimitBodySchema, value);
|
|
1641
|
+
}
|
|
1642
|
+
//#endregion
|
|
1643
|
+
//#region extensions/discord/src/internal/interactions.ts
|
|
1644
|
+
function toCommandRawInteraction(rawData) {
|
|
1645
|
+
return rawData;
|
|
1646
|
+
}
|
|
1647
|
+
function toMessageComponentRawInteraction(rawData) {
|
|
1648
|
+
return rawData;
|
|
1649
|
+
}
|
|
1650
|
+
function toModalSubmitRawInteraction(rawData) {
|
|
1651
|
+
return rawData;
|
|
1652
|
+
}
|
|
1653
|
+
function readInteractionUser(rawData, client) {
|
|
1654
|
+
const directUser = "user" in rawData ? rawData.user : void 0;
|
|
1655
|
+
if (directUser && typeof directUser === "object" && "id" in directUser) return new User(client, directUser);
|
|
1656
|
+
const memberUser = rawData.member?.user;
|
|
1657
|
+
if (memberUser && typeof memberUser === "object" && typeof memberUser.id === "string") {
|
|
1658
|
+
const user = { ...memberUser };
|
|
1659
|
+
if (typeof user.username !== "string") user.username = "";
|
|
1660
|
+
return new User(client, user);
|
|
1661
|
+
}
|
|
1662
|
+
return null;
|
|
1663
|
+
}
|
|
1664
|
+
var BaseInteraction = class {
|
|
1665
|
+
constructor(client, rawData) {
|
|
1666
|
+
this.client = client;
|
|
1667
|
+
this.rawData = rawData;
|
|
1668
|
+
this.message = null;
|
|
1669
|
+
this.response = new InteractionResponseController();
|
|
1670
|
+
this.pendingResponse = Promise.resolve();
|
|
1671
|
+
this.sentFollowUp = false;
|
|
1672
|
+
this.id = rawData.id;
|
|
1673
|
+
this.token = rawData.token;
|
|
1674
|
+
this.user = readInteractionUser(rawData, client);
|
|
1675
|
+
this.userId = this.user?.id ?? "";
|
|
1676
|
+
this.guild = rawData.guild_id ? new Guild(client, rawData.guild_id) : null;
|
|
1677
|
+
this.channel = "channel" in rawData && rawData.channel ? channelFactory(client, rawData.channel) : null;
|
|
1678
|
+
}
|
|
1679
|
+
get acknowledged() {
|
|
1680
|
+
return this.response.acknowledged;
|
|
1681
|
+
}
|
|
1682
|
+
get responseState() {
|
|
1683
|
+
return this.response.state;
|
|
1684
|
+
}
|
|
1685
|
+
set responseState(nextState) {
|
|
1686
|
+
this.response.state = nextState;
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* True once a follow-up message has been delivered. Follow-ups are visible to
|
|
1690
|
+
* the user but never advance `responseState`, so this is the only record that
|
|
1691
|
+
* the interaction has already produced output.
|
|
1692
|
+
*/
|
|
1693
|
+
get hasSentFollowUp() {
|
|
1694
|
+
return this.sentFollowUp;
|
|
1695
|
+
}
|
|
1696
|
+
enqueueResponse(operation) {
|
|
1697
|
+
const result = this.pendingResponse.then(operation);
|
|
1698
|
+
this.pendingResponse = result.then(() => void 0, () => void 0);
|
|
1699
|
+
return result;
|
|
1700
|
+
}
|
|
1701
|
+
async performCallback(type, data) {
|
|
1702
|
+
if (this.response.acknowledged) throw new Error("Discord interaction has already been acknowledged.");
|
|
1703
|
+
const result = await createInteractionCallback(this.client.rest, this.id, this.token, data === void 0 ? { type } : {
|
|
1704
|
+
type,
|
|
1705
|
+
data
|
|
1706
|
+
});
|
|
1707
|
+
this.response.recordCallback(type);
|
|
1708
|
+
return result;
|
|
1709
|
+
}
|
|
1710
|
+
async callback(type, data) {
|
|
1711
|
+
return await this.enqueueResponse(() => this.performCallback(type, data));
|
|
1712
|
+
}
|
|
1713
|
+
async reply(payload) {
|
|
1714
|
+
return await this.enqueueResponse(async () => {
|
|
1715
|
+
const action = this.response.nextReplyAction();
|
|
1716
|
+
if (action === "edit") return await this.performReplyEdit(payload);
|
|
1717
|
+
if (action === "follow-up") return await this.performFollowUp(payload);
|
|
1718
|
+
return await this.performCallback(InteractionResponseType.ChannelMessageWithSource, serializePayload(payload));
|
|
1719
|
+
});
|
|
1720
|
+
}
|
|
1721
|
+
async defer(options) {
|
|
1722
|
+
return await this.callback(InteractionResponseType.DeferredChannelMessageWithSource, options?.ephemeral ? { flags: 64 } : void 0);
|
|
1723
|
+
}
|
|
1724
|
+
async acknowledge() {
|
|
1725
|
+
return await this.defer();
|
|
1726
|
+
}
|
|
1727
|
+
async editReply(payload) {
|
|
1728
|
+
return await this.enqueueResponse(() => this.performReplyEdit(payload));
|
|
1729
|
+
}
|
|
1730
|
+
/**
|
|
1731
|
+
* Edits the deferred placeholder only if this interaction is still an
|
|
1732
|
+
* unanswered spinner when the queue reaches this operation.
|
|
1733
|
+
*
|
|
1734
|
+
* Both conditions are re-read inside the queue. A follow-up that was still in
|
|
1735
|
+
* flight when the caller decided to report will have settled — and recorded
|
|
1736
|
+
* itself in `sentFollowUp` — by the time this runs, so the decision cannot be
|
|
1737
|
+
* made against state that is about to change.
|
|
1738
|
+
*
|
|
1739
|
+
* Resolves true when the edit was sent.
|
|
1740
|
+
*/
|
|
1741
|
+
async editDeferredPlaceholderIfUnanswered(payload) {
|
|
1742
|
+
return await this.enqueueResponse(async () => {
|
|
1743
|
+
if (this.responseState !== "deferred" || this.sentFollowUp) return false;
|
|
1744
|
+
await this.performReplyEdit(payload);
|
|
1745
|
+
return true;
|
|
1746
|
+
});
|
|
1747
|
+
}
|
|
1748
|
+
async performReplyEdit(payload) {
|
|
1749
|
+
const body = serializePayload(payload);
|
|
1750
|
+
const query = needsComponentsV2Query(body) ? { with_components: true } : void 0;
|
|
1751
|
+
const result = query ? await editWebhookMessage(this.client.rest, this.client.options.clientId, this.token, "@original", { body }, query) : await editWebhookMessage(this.client.rest, this.client.options.clientId, this.token, "@original", { body });
|
|
1752
|
+
this.response.recordReplyEdit();
|
|
1753
|
+
return result;
|
|
1754
|
+
}
|
|
1755
|
+
async deleteReply() {
|
|
1756
|
+
return await this.enqueueResponse(async () => {
|
|
1757
|
+
const result = await deleteWebhookMessage(this.client.rest, this.client.options.clientId, this.token, "@original");
|
|
1758
|
+
this.response.recordReplyDelete();
|
|
1759
|
+
return result;
|
|
1760
|
+
});
|
|
1761
|
+
}
|
|
1762
|
+
async fetchReply() {
|
|
1763
|
+
return await this.enqueueResponse(() => getWebhookMessage(this.client.rest, this.client.options.clientId, this.token, "@original"));
|
|
1764
|
+
}
|
|
1765
|
+
async replyAndWaitForComponent(payload, timeoutMs = 3e5) {
|
|
1766
|
+
const result = await this.reply(payload);
|
|
1767
|
+
const rawMessage = isRawMessage(result) ? result : await this.fetchReply();
|
|
1768
|
+
if (!isRawMessage(rawMessage)) throw new Error("Discord interaction reply did not return a message");
|
|
1769
|
+
const message = new Message(this.client, rawMessage);
|
|
1770
|
+
return await this.client.componentHandler.waitForMessageComponent(message, timeoutMs);
|
|
1771
|
+
}
|
|
1772
|
+
async followUp(payload) {
|
|
1773
|
+
return await this.enqueueResponse(() => this.performFollowUp(payload));
|
|
1774
|
+
}
|
|
1775
|
+
async performFollowUp(payload) {
|
|
1776
|
+
const body = serializePayload(payload);
|
|
1777
|
+
const result = await createWebhookMessage(this.client.rest, this.client.options.clientId, this.token, { body }, needsComponentsV2Query(body) ? { with_components: true } : void 0);
|
|
1778
|
+
this.sentFollowUp = true;
|
|
1779
|
+
return result;
|
|
1780
|
+
}
|
|
1781
|
+
};
|
|
1782
|
+
var CommandInteraction = class extends BaseInteraction {
|
|
1783
|
+
constructor(client, rawData) {
|
|
1784
|
+
super(client, rawData);
|
|
1785
|
+
this.options = new OptionsHandler(rawData.data.options, client, rawData.data.resolved?.channels);
|
|
1786
|
+
}
|
|
1787
|
+
};
|
|
1788
|
+
var AutocompleteInteraction = class extends CommandInteraction {
|
|
1789
|
+
async respond(choices) {
|
|
1790
|
+
return await this.callback(InteractionResponseType.ApplicationCommandAutocompleteResult, { choices });
|
|
1791
|
+
}
|
|
1792
|
+
};
|
|
1793
|
+
var BaseComponentInteraction = class extends BaseInteraction {
|
|
1794
|
+
constructor(client, rawData) {
|
|
1795
|
+
super(client, rawData);
|
|
1796
|
+
this.message = rawData.message && typeof rawData.message === "object" ? new Message(client, rawData.message) : null;
|
|
1797
|
+
this.values = Array.isArray(rawData.data.values) ? rawData.data.values.map(String) : [];
|
|
1798
|
+
}
|
|
1799
|
+
async update(payload) {
|
|
1800
|
+
return await this.callback(InteractionResponseType.UpdateMessage, serializePayload(payload));
|
|
1801
|
+
}
|
|
1802
|
+
async acknowledge() {
|
|
1803
|
+
return await this.callback(InteractionResponseType.DeferredMessageUpdate);
|
|
1804
|
+
}
|
|
1805
|
+
async showModal(modal) {
|
|
1806
|
+
return await this.callback(InteractionResponseType.Modal, modal.serialize());
|
|
1807
|
+
}
|
|
1808
|
+
async launchActivity() {
|
|
1809
|
+
return await this.callback(InteractionResponseType.LaunchActivity);
|
|
1810
|
+
}
|
|
1811
|
+
};
|
|
1812
|
+
var ButtonInteraction = class extends BaseComponentInteraction {};
|
|
1813
|
+
var StringSelectMenuInteraction = class extends BaseComponentInteraction {};
|
|
1814
|
+
var UserSelectMenuInteraction = class extends BaseComponentInteraction {};
|
|
1815
|
+
var RoleSelectMenuInteraction = class extends BaseComponentInteraction {};
|
|
1816
|
+
var MentionableSelectMenuInteraction = class extends BaseComponentInteraction {};
|
|
1817
|
+
var ChannelSelectMenuInteraction = class extends BaseComponentInteraction {};
|
|
1818
|
+
var ModalInteraction = class extends BaseInteraction {
|
|
1819
|
+
constructor(client, rawData) {
|
|
1820
|
+
super(client, rawData);
|
|
1821
|
+
this.fields = new ModalFields(extractModalFields(rawData.data.components ?? []), rawData.data.resolved, client);
|
|
1822
|
+
}
|
|
1823
|
+
async acknowledge() {
|
|
1824
|
+
return await this.callback(InteractionResponseType.DeferredMessageUpdate);
|
|
1825
|
+
}
|
|
1826
|
+
};
|
|
1827
|
+
function createInteraction(client, rawData) {
|
|
1828
|
+
assertDiscordInteractionPayload(rawData);
|
|
1829
|
+
if (rawData.type === InteractionType.ApplicationCommandAutocomplete) return new AutocompleteInteraction(client, toCommandRawInteraction(rawData));
|
|
1830
|
+
if (rawData.type === InteractionType.ApplicationCommand) return new CommandInteraction(client, toCommandRawInteraction(rawData));
|
|
1831
|
+
if (rawData.type === InteractionType.ModalSubmit) return new ModalInteraction(client, toModalSubmitRawInteraction(rawData));
|
|
1832
|
+
if (rawData.type === InteractionType.MessageComponent) {
|
|
1833
|
+
const componentRawData = toMessageComponentRawInteraction(rawData);
|
|
1834
|
+
switch (rawData.data?.component_type) {
|
|
1835
|
+
case ComponentType.Button: return new ButtonInteraction(client, componentRawData);
|
|
1836
|
+
case ComponentType.StringSelect: return new StringSelectMenuInteraction(client, componentRawData);
|
|
1837
|
+
case ComponentType.UserSelect: return new UserSelectMenuInteraction(client, componentRawData);
|
|
1838
|
+
case ComponentType.RoleSelect: return new RoleSelectMenuInteraction(client, componentRawData);
|
|
1839
|
+
case ComponentType.MentionableSelect: return new MentionableSelectMenuInteraction(client, componentRawData);
|
|
1840
|
+
case ComponentType.ChannelSelect: return new ChannelSelectMenuInteraction(client, componentRawData);
|
|
1841
|
+
default: return new BaseComponentInteraction(client, componentRawData);
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
return new BaseInteraction(client, rawData);
|
|
1845
|
+
}
|
|
1846
|
+
function parseComponentInteractionData(component, customId) {
|
|
1847
|
+
return component.customIdParser(customId).data;
|
|
1848
|
+
}
|
|
1849
|
+
function isRawMessage(value) {
|
|
1850
|
+
return Boolean(value) && typeof value === "object" && typeof value.id === "string" && typeof value.channel_id === "string";
|
|
1851
|
+
}
|
|
1852
|
+
//#endregion
|
|
1853
|
+
//#region extensions/discord/src/internal/interaction-dispatch.ts
|
|
1854
|
+
async function dispatchInteraction(client, rawData) {
|
|
1855
|
+
const interaction = createInteraction(client, rawData);
|
|
1856
|
+
if (rawData.type === InteractionType.ApplicationCommandAutocomplete) {
|
|
1857
|
+
const command = client.commands.find((entry) => entry.name === readInteractionName(rawData));
|
|
1858
|
+
if (!command) return;
|
|
1859
|
+
const autocompleteInteraction = interaction;
|
|
1860
|
+
const optionAutocomplete = resolveFocusedCommandOptionAutocompleteHandler(command, autocompleteInteraction);
|
|
1861
|
+
if (optionAutocomplete) {
|
|
1862
|
+
await optionAutocomplete(autocompleteInteraction);
|
|
1863
|
+
return;
|
|
1864
|
+
}
|
|
1865
|
+
if (command.commandKind === "leaf") await command.autocomplete(autocompleteInteraction);
|
|
1866
|
+
return;
|
|
1867
|
+
}
|
|
1868
|
+
try {
|
|
1869
|
+
await dispatchAcknowledgeableInteraction(client, rawData, interaction);
|
|
1870
|
+
} catch (error) {
|
|
1871
|
+
await reportInteractionFailure(interaction);
|
|
1872
|
+
throw error;
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
async function dispatchAcknowledgeableInteraction(client, rawData, interaction) {
|
|
1876
|
+
if (rawData.type === InteractionType.ApplicationCommand) {
|
|
1877
|
+
const command = client.commands.find((entry) => entry.name === readInteractionName(rawData));
|
|
1878
|
+
if (command) {
|
|
1879
|
+
await deferCommandInteractionIfNeeded(command, interaction);
|
|
1880
|
+
await command.run(interaction);
|
|
1881
|
+
}
|
|
1882
|
+
return;
|
|
1883
|
+
}
|
|
1884
|
+
if (rawData.type === InteractionType.MessageComponent) {
|
|
1885
|
+
const customId = readCustomId(rawData);
|
|
1886
|
+
if (!customId) return;
|
|
1887
|
+
const componentInteraction = interaction;
|
|
1888
|
+
if (client.componentHandler.resolveOneOffComponent({
|
|
1889
|
+
channelId: readMessageChannelId(rawData),
|
|
1890
|
+
customId,
|
|
1891
|
+
messageId: readMessageId(rawData),
|
|
1892
|
+
values: readComponentValues(rawData)
|
|
1893
|
+
})) {
|
|
1894
|
+
await componentInteraction.acknowledge();
|
|
1895
|
+
return;
|
|
1896
|
+
}
|
|
1897
|
+
const component = client.componentHandler.resolve(customId, { componentType: rawData.data?.component_type });
|
|
1898
|
+
if (component) {
|
|
1899
|
+
await deferComponentInteractionIfNeeded(component, componentInteraction);
|
|
1900
|
+
await component.run(componentInteraction, parseComponentInteractionData(component, customId));
|
|
1901
|
+
}
|
|
1902
|
+
return;
|
|
1903
|
+
}
|
|
1904
|
+
if (rawData.type === InteractionType.ModalSubmit) {
|
|
1905
|
+
const customId = readCustomId(rawData);
|
|
1906
|
+
if (!customId) return;
|
|
1907
|
+
const modal = client.modalHandler.resolve(customId);
|
|
1908
|
+
if (modal) await modal.run(interaction, modal.customIdParser(customId).data);
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
/**
|
|
1912
|
+
* Fixed text. The thrown error is deliberately not echoed here: an interaction
|
|
1913
|
+
* response is visible to the whole channel, and handler exceptions routinely
|
|
1914
|
+
* carry absolute paths, config keys, and provider responses. The rethrow keeps
|
|
1915
|
+
* the detail in the Gateway log where operators already look for it.
|
|
1916
|
+
*/
|
|
1917
|
+
const INTERACTION_FAILURE_NOTICE = "Command failed. Check the Gateway logs for details.";
|
|
1918
|
+
/**
|
|
1919
|
+
* Best-effort user-visible notice for a failed interaction. Never throws: a
|
|
1920
|
+
* reporting failure must not mask the original error.
|
|
1921
|
+
*
|
|
1922
|
+
* Deliberately narrow. It reports only for `deferred`, where a spinner is known
|
|
1923
|
+
* to exist and the original response is a placeholder this dispatch created:
|
|
1924
|
+
*
|
|
1925
|
+
* - `deferred` the deferring callback succeeded (state advances only
|
|
1926
|
+
* after a REST success), so editing the original response
|
|
1927
|
+
* resolves a spinner that would otherwise hang forever.
|
|
1928
|
+
* - `deferred-update` a component acknowledgement. Discord leaves no spinner,
|
|
1929
|
+
* and the original response is the message the component is
|
|
1930
|
+
* attached to, so editing it would overwrite content the
|
|
1931
|
+
* user is still reading.
|
|
1932
|
+
* - `unacknowledged` nothing is known to have reached Discord. A second
|
|
1933
|
+
* initial callback risks "already acknowledged" if the
|
|
1934
|
+
* first one landed after all, and Discord already shows its
|
|
1935
|
+
* own "did not respond" notice.
|
|
1936
|
+
* - `replied` the user has seen a message, and nextReplyAction() would
|
|
1937
|
+
* turn this into a contradictory follow-up beside it.
|
|
1938
|
+
*/
|
|
1939
|
+
async function reportInteractionFailure(interaction) {
|
|
1940
|
+
if (interaction.responseState !== "deferred") return;
|
|
1941
|
+
if (interaction.hasSentFollowUp) return;
|
|
1942
|
+
try {
|
|
1943
|
+
await interaction.editDeferredPlaceholderIfUnanswered({
|
|
1944
|
+
content: INTERACTION_FAILURE_NOTICE,
|
|
1945
|
+
allowed_mentions: { parse: [] }
|
|
1946
|
+
});
|
|
1947
|
+
} catch {}
|
|
1948
|
+
}
|
|
1949
|
+
function resolveConditionalComponentOption(value, interaction) {
|
|
1950
|
+
return typeof value === "function" ? value(interaction) : value;
|
|
1951
|
+
}
|
|
1952
|
+
async function deferComponentInteractionIfNeeded(component, interaction) {
|
|
1953
|
+
if (!resolveConditionalComponentOption(component.defer, interaction)) return;
|
|
1954
|
+
if (resolveConditionalComponentOption(component.ephemeral, interaction)) {
|
|
1955
|
+
await interaction.defer({ ephemeral: true });
|
|
1956
|
+
return;
|
|
1957
|
+
}
|
|
1958
|
+
await interaction.acknowledge();
|
|
1959
|
+
}
|
|
1960
|
+
function readInteractionName(rawData) {
|
|
1961
|
+
return rawData.data?.name;
|
|
1962
|
+
}
|
|
1963
|
+
function readCustomId(rawData) {
|
|
1964
|
+
return rawData.data?.custom_id;
|
|
1965
|
+
}
|
|
1966
|
+
function readComponentValues(rawData) {
|
|
1967
|
+
const values = rawData.data?.values;
|
|
1968
|
+
return Array.isArray(values) ? values.map(String) : void 0;
|
|
1969
|
+
}
|
|
1970
|
+
function readMessageId(rawData) {
|
|
1971
|
+
const messageId = rawData.message?.id;
|
|
1972
|
+
return typeof messageId === "string" ? messageId : void 0;
|
|
1973
|
+
}
|
|
1974
|
+
function readMessageChannelId(rawData) {
|
|
1975
|
+
const channelId = rawData.message?.channel_id;
|
|
1976
|
+
return typeof channelId === "string" ? channelId : void 0;
|
|
1977
|
+
}
|
|
1978
|
+
//#endregion
|
|
1979
|
+
//#region extensions/discord/src/internal/rest-body.ts
|
|
1980
|
+
function serializeRequestBody(data, headers) {
|
|
1981
|
+
if (data?.headers) for (const [key, value] of Object.entries(data.headers)) headers.set(key, value);
|
|
1982
|
+
if (data?.body == null) return;
|
|
1983
|
+
if (typeof data.body === "object") {
|
|
1984
|
+
const bodyObject = data.body;
|
|
1985
|
+
const topLevelFiles = Array.isArray(bodyObject.files) ? bodyObject.files : void 0;
|
|
1986
|
+
const nestedData = bodyObject.data && typeof bodyObject.data === "object" ? bodyObject.data : void 0;
|
|
1987
|
+
const nestedFiles = nestedData && Array.isArray(nestedData.files) ? nestedData.files : void 0;
|
|
1988
|
+
const files = topLevelFiles ?? nestedFiles;
|
|
1989
|
+
const filesContainer = topLevelFiles ? bodyObject : nestedFiles ? nestedData : void 0;
|
|
1990
|
+
if (files?.length && filesContainer) {
|
|
1991
|
+
if (data.multipartStyle === "form") {
|
|
1992
|
+
const formData = new FormData();
|
|
1993
|
+
for (const [key, value] of Object.entries(filesContainer)) {
|
|
1994
|
+
if (key === "files" || value === void 0 || value === null) continue;
|
|
1995
|
+
formData.append(key, typeof value === "string" ? value : JSON.stringify(value));
|
|
1996
|
+
}
|
|
1997
|
+
for (const file of files) {
|
|
1998
|
+
const item = file;
|
|
1999
|
+
const name = typeof item.name === "string" && item.name ? item.name : "file";
|
|
2000
|
+
const blob = item.data instanceof Blob ? item.data : new Blob([item.data], { type: typeof item.contentType === "string" ? item.contentType : void 0 });
|
|
2001
|
+
formData.append(typeof item.fieldName === "string" && item.fieldName ? item.fieldName : "file", blob, name);
|
|
2002
|
+
}
|
|
2003
|
+
return formData;
|
|
2004
|
+
}
|
|
2005
|
+
const payloadJson = topLevelFiles ? { ...bodyObject } : {
|
|
2006
|
+
...bodyObject,
|
|
2007
|
+
data: { ...nestedData }
|
|
2008
|
+
};
|
|
2009
|
+
const payloadFilesContainer = topLevelFiles ? payloadJson : payloadJson.data ?? {};
|
|
2010
|
+
const formData = new FormData();
|
|
2011
|
+
const existingAttachments = Array.isArray(payloadFilesContainer.attachments) ? [...payloadFilesContainer.attachments] : [];
|
|
2012
|
+
const uploaded = files.map((file, index) => {
|
|
2013
|
+
const item = file;
|
|
2014
|
+
const name = typeof item.name === "string" && item.name ? item.name : `file-${index}`;
|
|
2015
|
+
const blob = item.data instanceof Blob ? item.data : new Blob([item.data], { type: typeof item.contentType === "string" ? item.contentType : void 0 });
|
|
2016
|
+
const id = existingAttachments.length + index;
|
|
2017
|
+
formData.append(`files[${id}]`, blob, name);
|
|
2018
|
+
const attachment = {
|
|
2019
|
+
id,
|
|
2020
|
+
filename: name
|
|
2021
|
+
};
|
|
2022
|
+
if (typeof item.description === "string") attachment.description = item.description;
|
|
2023
|
+
if (typeof item.duration_secs === "number") attachment.duration_secs = item.duration_secs;
|
|
2024
|
+
if (typeof item.waveform === "string") attachment.waveform = item.waveform;
|
|
2025
|
+
return attachment;
|
|
2026
|
+
});
|
|
2027
|
+
payloadFilesContainer.attachments = [...existingAttachments, ...uploaded];
|
|
2028
|
+
delete payloadFilesContainer.files;
|
|
2029
|
+
formData.append("payload_json", JSON.stringify(payloadJson));
|
|
2030
|
+
return formData;
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
if (!data.rawBody) headers.set("Content-Type", "application/json");
|
|
2034
|
+
return data.rawBody ? data.body : JSON.stringify(data.body);
|
|
2035
|
+
}
|
|
2036
|
+
//#endregion
|
|
2037
|
+
//#region extensions/discord/src/internal/rest-errors.ts
|
|
2038
|
+
const DISCORD_UNKNOWN_VOICE_STATE = 10065;
|
|
2039
|
+
const DISCORD_ERROR_BODY_MAX_DEPTH = 64;
|
|
2040
|
+
const DISCORD_ERROR_BODY_MAX_NODES = 1e4;
|
|
2041
|
+
const DISCORD_ERROR_BODY_MAX_DEPTH_MARKER = "[Discord error body redacted: maximum depth exceeded]";
|
|
2042
|
+
const DISCORD_ERROR_BODY_MAX_NODES_MARKER = "[Discord error body redacted: node limit exceeded]";
|
|
2043
|
+
const DISCORD_ERROR_BODY_PRIORITY_KEYS = /* @__PURE__ */ new Set([
|
|
2044
|
+
"message",
|
|
2045
|
+
"code",
|
|
2046
|
+
"retry_after",
|
|
2047
|
+
"global"
|
|
2048
|
+
]);
|
|
2049
|
+
const DISCORD_RATE_LIMIT_SCOPES = /* @__PURE__ */ new Set([
|
|
2050
|
+
"user",
|
|
2051
|
+
"global",
|
|
2052
|
+
"shared"
|
|
2053
|
+
]);
|
|
2054
|
+
function isSensitiveDiscordErrorKey(key) {
|
|
2055
|
+
return redactSensitiveFieldValue(key, "") !== "";
|
|
2056
|
+
}
|
|
2057
|
+
function reserveRedactedKey(key, usedKeys, collisionCounts) {
|
|
2058
|
+
let count = (collisionCounts.get(key) ?? 0) + 1;
|
|
2059
|
+
let candidate = count === 1 ? key : `${key} [${count}]`;
|
|
2060
|
+
while (usedKeys.has(candidate)) {
|
|
2061
|
+
count += 1;
|
|
2062
|
+
candidate = `${key} [${count}]`;
|
|
2063
|
+
}
|
|
2064
|
+
collisionCounts.set(key, count);
|
|
2065
|
+
usedKeys.add(candidate);
|
|
2066
|
+
return candidate;
|
|
2067
|
+
}
|
|
2068
|
+
function redactDiscordErrorBody(body, fieldKey = "", sensitiveAncestorKey, state = {
|
|
2069
|
+
seen: /* @__PURE__ */ new WeakSet(),
|
|
2070
|
+
remainingNodes: DISCORD_ERROR_BODY_MAX_NODES
|
|
2071
|
+
}, depth = 0) {
|
|
2072
|
+
if (state.remainingNodes <= 0) return DISCORD_ERROR_BODY_MAX_NODES_MARKER;
|
|
2073
|
+
state.remainingNodes -= 1;
|
|
2074
|
+
if (typeof body === "string") return redactSensitiveFieldValue(sensitiveAncestorKey ?? fieldKey, body);
|
|
2075
|
+
if (sensitiveAncestorKey && (typeof body === "number" || typeof body === "boolean" || typeof body === "bigint")) return redactSensitiveFieldValue(sensitiveAncestorKey, String(body));
|
|
2076
|
+
if (!body || typeof body !== "object") return body;
|
|
2077
|
+
if (depth >= DISCORD_ERROR_BODY_MAX_DEPTH) return DISCORD_ERROR_BODY_MAX_DEPTH_MARKER;
|
|
2078
|
+
if (state.seen.has(body)) return "[Circular]";
|
|
2079
|
+
state.seen.add(body);
|
|
2080
|
+
let redacted;
|
|
2081
|
+
if (Array.isArray(body)) {
|
|
2082
|
+
const items = [];
|
|
2083
|
+
for (const entry of body) {
|
|
2084
|
+
if (state.remainingNodes <= 0) {
|
|
2085
|
+
items.push(DISCORD_ERROR_BODY_MAX_NODES_MARKER);
|
|
2086
|
+
break;
|
|
2087
|
+
}
|
|
2088
|
+
items.push(redactDiscordErrorBody(entry, fieldKey, sensitiveAncestorKey, state, depth + 1));
|
|
2089
|
+
}
|
|
2090
|
+
redacted = items;
|
|
2091
|
+
} else {
|
|
2092
|
+
const usedKeys = /* @__PURE__ */ new Set();
|
|
2093
|
+
const collisionCounts = /* @__PURE__ */ new Map();
|
|
2094
|
+
const entries = [];
|
|
2095
|
+
const appendEntry = (nestedKey) => {
|
|
2096
|
+
if (state.remainingNodes <= 0) return false;
|
|
2097
|
+
const outputKey = reserveRedactedKey(redactSensitiveFieldValue(sensitiveAncestorKey ?? "", nestedKey), usedKeys, collisionCounts);
|
|
2098
|
+
const nestedSensitiveKey = isSensitiveDiscordErrorKey(nestedKey) ? nestedKey : sensitiveAncestorKey;
|
|
2099
|
+
entries.push([outputKey, redactDiscordErrorBody(body[nestedKey], nestedKey, nestedSensitiveKey, state, depth + 1)]);
|
|
2100
|
+
return true;
|
|
2101
|
+
};
|
|
2102
|
+
let truncated = false;
|
|
2103
|
+
for (const priorityKey of DISCORD_ERROR_BODY_PRIORITY_KEYS) if (Object.hasOwn(body, priorityKey) && !appendEntry(priorityKey)) {
|
|
2104
|
+
truncated = true;
|
|
2105
|
+
break;
|
|
2106
|
+
}
|
|
2107
|
+
if (!truncated) for (const nestedKey in body) {
|
|
2108
|
+
if (!Object.hasOwn(body, nestedKey) || DISCORD_ERROR_BODY_PRIORITY_KEYS.has(nestedKey)) continue;
|
|
2109
|
+
if (!appendEntry(nestedKey)) {
|
|
2110
|
+
truncated = true;
|
|
2111
|
+
break;
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
if (truncated) {
|
|
2115
|
+
const markerKey = reserveRedactedKey(DISCORD_ERROR_BODY_MAX_NODES_MARKER, usedKeys, collisionCounts);
|
|
2116
|
+
entries.push([markerKey, DISCORD_ERROR_BODY_MAX_NODES_MARKER]);
|
|
2117
|
+
}
|
|
2118
|
+
redacted = Object.fromEntries(entries);
|
|
2119
|
+
}
|
|
2120
|
+
state.seen.delete(body);
|
|
2121
|
+
return redacted;
|
|
2122
|
+
}
|
|
2123
|
+
function readDiscordCode(body) {
|
|
2124
|
+
const value = body && typeof body === "object" && "code" in body ? body.code : void 0;
|
|
2125
|
+
return parseStrictNonNegativeInteger(value);
|
|
2126
|
+
}
|
|
2127
|
+
function readDiscordMessage(body, fallback) {
|
|
2128
|
+
const value = body && typeof body === "object" && "message" in body ? body.message : void 0;
|
|
2129
|
+
return typeof value === "string" && value.trim() ? value : fallback;
|
|
2130
|
+
}
|
|
2131
|
+
function isUnknownDiscordVoiceStateError(err) {
|
|
2132
|
+
return (err && typeof err === "object" && "discordCode" in err ? parseStrictNonNegativeInteger(err.discordCode) : void 0) === DISCORD_UNKNOWN_VOICE_STATE || /unknown voice state/i.test(formatErrorMessage(err));
|
|
2133
|
+
}
|
|
2134
|
+
function readRetryAfter(body, response, fallbackSeconds = 0) {
|
|
2135
|
+
const bodyValue = body && typeof body === "object" && "retry_after" in body ? body.retry_after : void 0;
|
|
2136
|
+
return parseDiscordRetryAfterBodySeconds(bodyValue) ?? parseRetryAfterHeaderSeconds(response.headers.get("Retry-After")) ?? fallbackSeconds;
|
|
2137
|
+
}
|
|
2138
|
+
function readDiscordRateLimitBucket(response) {
|
|
2139
|
+
const value = response.headers.get("X-RateLimit-Bucket")?.trim();
|
|
2140
|
+
return value ? redactIdentifier(value, { len: 32 }) : null;
|
|
2141
|
+
}
|
|
2142
|
+
function readDiscordRateLimitScope(response) {
|
|
2143
|
+
const value = response.headers.get("X-RateLimit-Scope");
|
|
2144
|
+
return value && DISCORD_RATE_LIMIT_SCOPES.has(value) ? value : null;
|
|
2145
|
+
}
|
|
2146
|
+
var DiscordError = class extends Error {
|
|
2147
|
+
constructor(response, body) {
|
|
2148
|
+
const fallbackMessage = `Discord API request failed (${response.status})`;
|
|
2149
|
+
const redactedMessage = redactSensitiveFieldValue("message", readDiscordMessage(body, fallbackMessage));
|
|
2150
|
+
const redactedBody = redactDiscordErrorBody(body);
|
|
2151
|
+
super(redactedMessage);
|
|
2152
|
+
this.name = "DiscordError";
|
|
2153
|
+
this.status = response.status;
|
|
2154
|
+
this.statusCode = response.status;
|
|
2155
|
+
this.rawBody = redactedBody;
|
|
2156
|
+
this.rawError = redactedBody;
|
|
2157
|
+
this.discordCode = readDiscordCode(body);
|
|
2158
|
+
}
|
|
2159
|
+
};
|
|
2160
|
+
var RateLimitError = class extends DiscordError {
|
|
2161
|
+
constructor(response, body) {
|
|
2162
|
+
super(response, body);
|
|
2163
|
+
this.name = "RateLimitError";
|
|
2164
|
+
this.retryAfter = readRetryAfter(body, response, 1);
|
|
2165
|
+
this.scope = body.global ? "global" : readDiscordRateLimitScope(response);
|
|
2166
|
+
this.bucket = readDiscordRateLimitBucket(response);
|
|
2167
|
+
}
|
|
2168
|
+
};
|
|
2169
|
+
//#endregion
|
|
2170
|
+
//#region extensions/discord/src/internal/rest-routes.ts
|
|
2171
|
+
const RATE_LIMIT_HEADER_NUMBER_RE = /^\d+(?:\.\d+)?$/;
|
|
2172
|
+
const DISCORD_ROUTE_IDENTIFIER_HASH_LENGTH = 32;
|
|
2173
|
+
function redactWebhookTokenInPath(path) {
|
|
2174
|
+
const hasLeadingSlash = path.startsWith("/");
|
|
2175
|
+
const segments = path.replace(/^\/+/, "").split("/");
|
|
2176
|
+
if (segments[0] !== "webhooks" || !segments[1] || !segments[2]) return path;
|
|
2177
|
+
segments[2] = redactIdentifier(segments[2], { len: DISCORD_ROUTE_IDENTIFIER_HASH_LENGTH });
|
|
2178
|
+
return `${hasLeadingSlash ? "/" : ""}${segments.join("/")}`;
|
|
2179
|
+
}
|
|
2180
|
+
function createRouteKey(method, path) {
|
|
2181
|
+
const pathname = path.split("?")[0] ?? path;
|
|
2182
|
+
return `${method.toUpperCase()} ${redactWebhookTokenInPath(pathname)}`;
|
|
2183
|
+
}
|
|
2184
|
+
function readTopLevelRouteKey(path) {
|
|
2185
|
+
const [pathname = path] = path.split("?");
|
|
2186
|
+
const [first, id, token] = pathname.replace(/^\/+/, "").split("/");
|
|
2187
|
+
if (!first || !id) return pathname;
|
|
2188
|
+
if (first === "channels" || first === "guilds" || first === "webhooks") return first === "webhooks" && token ? `${first}/${id}/${redactIdentifier(token, { len: DISCORD_ROUTE_IDENTIFIER_HASH_LENGTH })}` : `${first}/${id}`;
|
|
2189
|
+
return first;
|
|
2190
|
+
}
|
|
2191
|
+
function createBucketKey(bucket, path) {
|
|
2192
|
+
return `${bucket}:${readTopLevelRouteKey(path)}`;
|
|
2193
|
+
}
|
|
2194
|
+
function readHeaderNumber(headers, name) {
|
|
2195
|
+
const value = headers.get(name);
|
|
2196
|
+
if (!value) return;
|
|
2197
|
+
const trimmed = value.trim();
|
|
2198
|
+
if (!RATE_LIMIT_HEADER_NUMBER_RE.test(trimmed)) return;
|
|
2199
|
+
const parsed = Number(trimmed);
|
|
2200
|
+
return Number.isFinite(parsed) && Math.abs(parsed) <= Number.MAX_SAFE_INTEGER ? parsed : void 0;
|
|
2201
|
+
}
|
|
2202
|
+
function resolveRateLimitResetAt(delayMs) {
|
|
2203
|
+
const clampedDelayMs = Math.ceil(Math.max(0, delayMs));
|
|
2204
|
+
if (!Number.isSafeInteger(clampedDelayMs)) return;
|
|
2205
|
+
if (clampedDelayMs === 0) return asDateTimestampMs(Date.now());
|
|
2206
|
+
return resolveExpiresAtMsFromDurationMs(clampedDelayMs);
|
|
2207
|
+
}
|
|
2208
|
+
function readResetAt(response) {
|
|
2209
|
+
const resetAfter = readHeaderNumber(response.headers, "X-RateLimit-Reset-After");
|
|
2210
|
+
if (resetAfter !== void 0) return resolveRateLimitResetAt(resetAfter * 1e3);
|
|
2211
|
+
const reset = readHeaderNumber(response.headers, "X-RateLimit-Reset");
|
|
2212
|
+
return reset !== void 0 ? asDateTimestampMs(reset * 1e3) : void 0;
|
|
2213
|
+
}
|
|
2214
|
+
function appendQuery(path, query) {
|
|
2215
|
+
if (!query || Object.keys(query).length === 0) return path;
|
|
2216
|
+
const search = new URLSearchParams();
|
|
2217
|
+
for (const [key, value] of Object.entries(query)) search.set(key, String(value));
|
|
2218
|
+
return `${path}?${search.toString()}`;
|
|
2219
|
+
}
|
|
2220
|
+
//#endregion
|
|
2221
|
+
//#region extensions/discord/src/internal/rest-scheduler.ts
|
|
2222
|
+
const INVALID_REQUEST_WINDOW_MS = 6e5;
|
|
2223
|
+
const requestPriorities = [
|
|
2224
|
+
"critical",
|
|
2225
|
+
"standard",
|
|
2226
|
+
"background"
|
|
2227
|
+
];
|
|
2228
|
+
function normalizeRestSchedulerOptions(options) {
|
|
2229
|
+
return {
|
|
2230
|
+
lanes: {
|
|
2231
|
+
critical: normalizeLaneOptions(options.lanes.critical),
|
|
2232
|
+
standard: normalizeLaneOptions(options.lanes.standard),
|
|
2233
|
+
background: normalizeLaneOptions(options.lanes.background)
|
|
2234
|
+
},
|
|
2235
|
+
maxConcurrency: resolveIntegerOption(options.maxConcurrency, 1, { min: 1 }),
|
|
2236
|
+
maxQueueSize: resolveIntegerOption(options.maxQueueSize, 1, { min: 1 }),
|
|
2237
|
+
maxRateLimitRetries: resolveIntegerOption(options.maxRateLimitRetries, 0, { min: 0 })
|
|
2238
|
+
};
|
|
2239
|
+
}
|
|
2240
|
+
function normalizeLaneOptions(options) {
|
|
2241
|
+
return {
|
|
2242
|
+
maxQueueSize: resolveIntegerOption(options.maxQueueSize, 1, { min: 1 }),
|
|
2243
|
+
...options.staleAfterMs === void 0 ? {} : { staleAfterMs: resolveIntegerOption(options.staleAfterMs, 0, { min: 0 }) },
|
|
2244
|
+
weight: resolveIntegerOption(options.weight, 1, { min: 1 })
|
|
2245
|
+
};
|
|
2246
|
+
}
|
|
2247
|
+
function createLaneQueues() {
|
|
2248
|
+
return {
|
|
2249
|
+
critical: [],
|
|
2250
|
+
standard: [],
|
|
2251
|
+
background: []
|
|
2252
|
+
};
|
|
2253
|
+
}
|
|
2254
|
+
function countPending(bucket) {
|
|
2255
|
+
return requestPriorities.reduce((count, lane) => count + bucket.pending[lane].length, 0);
|
|
2256
|
+
}
|
|
2257
|
+
var RestScheduler = class {
|
|
2258
|
+
constructor(options, executor) {
|
|
2259
|
+
this.executor = executor;
|
|
2260
|
+
this.activeWorkers = 0;
|
|
2261
|
+
this.buckets = /* @__PURE__ */ new Map();
|
|
2262
|
+
this.globalRateLimitUntil = 0;
|
|
2263
|
+
this.invalidRequestTimestamps = [];
|
|
2264
|
+
this.laneCursor = 0;
|
|
2265
|
+
this.laneDropped = {
|
|
2266
|
+
critical: 0,
|
|
2267
|
+
standard: 0,
|
|
2268
|
+
background: 0
|
|
2269
|
+
};
|
|
2270
|
+
this.queuedByLane = {
|
|
2271
|
+
critical: 0,
|
|
2272
|
+
standard: 0,
|
|
2273
|
+
background: 0
|
|
2274
|
+
};
|
|
2275
|
+
this.queueGeneration = 0;
|
|
2276
|
+
this.queuedRequests = 0;
|
|
2277
|
+
this.routeBuckets = /* @__PURE__ */ new Map();
|
|
2278
|
+
this.options = normalizeRestSchedulerOptions(options);
|
|
2279
|
+
this.laneSchedule = this.buildLaneSchedule(this.options.lanes);
|
|
2280
|
+
}
|
|
2281
|
+
enqueue(params) {
|
|
2282
|
+
if (this.queuedRequests >= this.options.maxQueueSize) throw new Error("Discord request queue is full");
|
|
2283
|
+
const laneOptions = this.options.lanes[params.priority];
|
|
2284
|
+
if (this.queuedByLane[params.priority] >= laneOptions.maxQueueSize) {
|
|
2285
|
+
this.laneDropped[params.priority] += 1;
|
|
2286
|
+
throw new Error(`Discord ${params.priority} request queue is full (${this.queuedByLane[params.priority]} / ${laneOptions.maxQueueSize})`);
|
|
2287
|
+
}
|
|
2288
|
+
const routeKey = createRouteKey(params.method, params.path);
|
|
2289
|
+
const bucket = this.getBucket(this.routeBuckets.get(routeKey) ?? routeKey);
|
|
2290
|
+
return new Promise((resolve, reject) => {
|
|
2291
|
+
this.queuedRequests += 1;
|
|
2292
|
+
this.queuedByLane[params.priority] += 1;
|
|
2293
|
+
bucket.pending[params.priority].push({
|
|
2294
|
+
...params,
|
|
2295
|
+
enqueuedAt: Date.now(),
|
|
2296
|
+
generation: this.queueGeneration,
|
|
2297
|
+
routeKey,
|
|
2298
|
+
retryCount: 0,
|
|
2299
|
+
resolve,
|
|
2300
|
+
reject
|
|
2301
|
+
});
|
|
2302
|
+
this.drainQueues();
|
|
2303
|
+
});
|
|
2304
|
+
}
|
|
2305
|
+
recordResponse(routeKey, path, response, parsed) {
|
|
2306
|
+
this.updateRateLimitState(routeKey, path, response, parsed);
|
|
2307
|
+
this.recordInvalidRequest(routeKey, path, response);
|
|
2308
|
+
}
|
|
2309
|
+
clearQueue() {
|
|
2310
|
+
this.queueGeneration += 1;
|
|
2311
|
+
if (this.drainTimer) {
|
|
2312
|
+
clearTimeout(this.drainTimer);
|
|
2313
|
+
this.drainTimer = void 0;
|
|
2314
|
+
}
|
|
2315
|
+
this.rejectPending(/* @__PURE__ */ new Error("Discord request queue cleared"));
|
|
2316
|
+
}
|
|
2317
|
+
abortPending() {
|
|
2318
|
+
this.queueGeneration += 1;
|
|
2319
|
+
this.rejectPending(new DOMException("Aborted", "AbortError"));
|
|
2320
|
+
}
|
|
2321
|
+
get queueSize() {
|
|
2322
|
+
return this.queuedRequests;
|
|
2323
|
+
}
|
|
2324
|
+
getMetrics() {
|
|
2325
|
+
this.pruneInvalidRequests();
|
|
2326
|
+
return {
|
|
2327
|
+
globalRateLimitUntil: this.globalRateLimitUntil,
|
|
2328
|
+
activeBuckets: this.buckets.size,
|
|
2329
|
+
routeBucketMappings: this.routeBuckets.size,
|
|
2330
|
+
buckets: Array.from(this.buckets.entries()).map(([key, bucket]) => ({
|
|
2331
|
+
key,
|
|
2332
|
+
active: bucket.active,
|
|
2333
|
+
bucket: bucket.bucket,
|
|
2334
|
+
invalidRequests: bucket.invalidRequests,
|
|
2335
|
+
pending: countPending(bucket),
|
|
2336
|
+
pendingByLane: Object.fromEntries(requestPriorities.map((lane) => [lane, bucket.pending[lane].length])),
|
|
2337
|
+
rateLimitHits: bucket.rateLimitHits,
|
|
2338
|
+
remaining: bucket.remaining,
|
|
2339
|
+
resetAt: bucket.resetAt,
|
|
2340
|
+
routeKeyCount: bucket.routeKeys.size
|
|
2341
|
+
})),
|
|
2342
|
+
invalidRequestCount: this.invalidRequestTimestamps.length,
|
|
2343
|
+
invalidRequestCountByStatus: this.invalidRequestTimestamps.reduce((counts, entry) => {
|
|
2344
|
+
counts[entry.status] = (counts[entry.status] ?? 0) + 1;
|
|
2345
|
+
return counts;
|
|
2346
|
+
}, {}),
|
|
2347
|
+
queueSize: this.queueSize,
|
|
2348
|
+
queueSizeByLane: { ...this.queuedByLane },
|
|
2349
|
+
droppedByLane: { ...this.laneDropped },
|
|
2350
|
+
oldestQueuedByLane: Object.fromEntries(requestPriorities.map((lane) => [lane, this.getOldestQueuedAge(lane)])),
|
|
2351
|
+
activeWorkers: this.activeWorkers,
|
|
2352
|
+
maxConcurrentWorkers: this.maxConcurrentWorkers
|
|
2353
|
+
};
|
|
2354
|
+
}
|
|
2355
|
+
get maxConcurrentWorkers() {
|
|
2356
|
+
return this.options.maxConcurrency;
|
|
2357
|
+
}
|
|
2358
|
+
get maxRateLimitRetries() {
|
|
2359
|
+
return this.options.maxRateLimitRetries;
|
|
2360
|
+
}
|
|
2361
|
+
getBucket(key) {
|
|
2362
|
+
const existing = this.buckets.get(key);
|
|
2363
|
+
if (existing) return existing;
|
|
2364
|
+
const bucket = {
|
|
2365
|
+
active: 0,
|
|
2366
|
+
invalidRequests: 0,
|
|
2367
|
+
pending: createLaneQueues(),
|
|
2368
|
+
rateLimitHits: 0,
|
|
2369
|
+
resetAt: 0,
|
|
2370
|
+
routeKeys: /* @__PURE__ */ new Set([key])
|
|
2371
|
+
};
|
|
2372
|
+
this.buckets.set(key, bucket);
|
|
2373
|
+
return bucket;
|
|
2374
|
+
}
|
|
2375
|
+
hasBucketReference(key) {
|
|
2376
|
+
for (const bucketKey of this.routeBuckets.values()) if (bucketKey === key) return true;
|
|
2377
|
+
return false;
|
|
2378
|
+
}
|
|
2379
|
+
isBucketRateLimited(bucket, now = Date.now()) {
|
|
2380
|
+
return bucket.remaining === 0 && bucket.resetAt > now;
|
|
2381
|
+
}
|
|
2382
|
+
pruneRouteMapping(routeKey) {
|
|
2383
|
+
const bucketKey = this.routeBuckets.get(routeKey);
|
|
2384
|
+
if (!bucketKey) return;
|
|
2385
|
+
this.routeBuckets.delete(routeKey);
|
|
2386
|
+
this.buckets.get(bucketKey)?.routeKeys.delete(routeKey);
|
|
2387
|
+
}
|
|
2388
|
+
pruneIdleRouteMappings(bucketKey, bucket, now = Date.now()) {
|
|
2389
|
+
if (bucket.active > 0 || countPending(bucket) > 0 || this.isBucketRateLimited(bucket, now)) return;
|
|
2390
|
+
for (const routeKey of Array.from(bucket.routeKeys)) if (this.routeBuckets.get(routeKey) === bucketKey) this.pruneRouteMapping(routeKey);
|
|
2391
|
+
}
|
|
2392
|
+
shouldPruneIdleBucket(key) {
|
|
2393
|
+
return this.routeBuckets.get(key) !== key && !this.hasBucketReference(key);
|
|
2394
|
+
}
|
|
2395
|
+
bindRouteToBucket(routeKey, bucketKey) {
|
|
2396
|
+
const target = this.getBucket(bucketKey);
|
|
2397
|
+
target.routeKeys.add(routeKey);
|
|
2398
|
+
this.routeBuckets.set(routeKey, bucketKey);
|
|
2399
|
+
const routeBucket = this.buckets.get(routeKey);
|
|
2400
|
+
if (routeBucket && routeBucket !== target) {
|
|
2401
|
+
for (const lane of requestPriorities) {
|
|
2402
|
+
target.pending[lane].push(...routeBucket.pending[lane]);
|
|
2403
|
+
routeBucket.pending[lane] = [];
|
|
2404
|
+
}
|
|
2405
|
+
if (routeBucket.active === 0) this.buckets.delete(routeKey);
|
|
2406
|
+
}
|
|
2407
|
+
return target;
|
|
2408
|
+
}
|
|
2409
|
+
updateRateLimitState(routeKey, path, response, parsed) {
|
|
2410
|
+
const bucketHeader = readDiscordRateLimitBucket(response);
|
|
2411
|
+
const bucket = bucketHeader ? this.bindRouteToBucket(routeKey, createBucketKey(bucketHeader, path)) : this.getBucket(this.routeBuckets.get(routeKey) ?? routeKey);
|
|
2412
|
+
bucket.bucket = bucketHeader ?? bucket.bucket;
|
|
2413
|
+
const limit = readHeaderNumber(response.headers, "X-RateLimit-Limit");
|
|
2414
|
+
if (limit !== void 0) bucket.limit = limit;
|
|
2415
|
+
const remaining = readHeaderNumber(response.headers, "X-RateLimit-Remaining");
|
|
2416
|
+
if (remaining !== void 0) bucket.remaining = remaining;
|
|
2417
|
+
const resetAt = readResetAt(response);
|
|
2418
|
+
if (resetAt !== void 0) bucket.resetAt = resetAt;
|
|
2419
|
+
if (response.status !== 429) return;
|
|
2420
|
+
bucket.rateLimitHits += 1;
|
|
2421
|
+
const retryAt = resolveRateLimitResetAt(Math.max(0, readRetryAfter(parsed, response, 1) * 1e3));
|
|
2422
|
+
if (retryAt === void 0) return;
|
|
2423
|
+
if (response.headers.get("X-RateLimit-Global") === "true" || isGlobalRateLimit(parsed)) {
|
|
2424
|
+
this.globalRateLimitUntil = Math.max(this.globalRateLimitUntil, retryAt);
|
|
2425
|
+
return;
|
|
2426
|
+
}
|
|
2427
|
+
bucket.remaining = 0;
|
|
2428
|
+
bucket.resetAt = Math.max(bucket.resetAt, retryAt);
|
|
2429
|
+
}
|
|
2430
|
+
recordInvalidRequest(routeKey, path, response) {
|
|
2431
|
+
if (response.status !== 401 && response.status !== 403 && response.status !== 429) return;
|
|
2432
|
+
if (response.status === 429 && response.headers.get("X-RateLimit-Scope") === "shared") return;
|
|
2433
|
+
const now = Date.now();
|
|
2434
|
+
this.invalidRequestTimestamps.push({
|
|
2435
|
+
at: now,
|
|
2436
|
+
status: response.status
|
|
2437
|
+
});
|
|
2438
|
+
this.pruneInvalidRequests(now);
|
|
2439
|
+
const bucketHeader = readDiscordRateLimitBucket(response);
|
|
2440
|
+
const bucketKey = bucketHeader ? createBucketKey(bucketHeader, path) : this.routeBuckets.get(routeKey) ?? routeKey;
|
|
2441
|
+
const bucket = this.buckets.get(bucketKey);
|
|
2442
|
+
if (bucket) bucket.invalidRequests += 1;
|
|
2443
|
+
}
|
|
2444
|
+
pruneInvalidRequests(now = Date.now()) {
|
|
2445
|
+
const cutoff = now - INVALID_REQUEST_WINDOW_MS;
|
|
2446
|
+
while (this.invalidRequestTimestamps.length > 0 && (this.invalidRequestTimestamps[0]?.at ?? 0) <= cutoff) this.invalidRequestTimestamps.shift();
|
|
2447
|
+
}
|
|
2448
|
+
getBucketWaitMs(bucket, now) {
|
|
2449
|
+
if (bucket.remaining === 0 && bucket.resetAt > now) return bucket.resetAt - now;
|
|
2450
|
+
if (bucket.remaining === 0 && bucket.resetAt <= now) bucket.remaining = bucket.limit;
|
|
2451
|
+
return 0;
|
|
2452
|
+
}
|
|
2453
|
+
scheduleDrain(delayMs = 0) {
|
|
2454
|
+
if (this.drainTimer) return;
|
|
2455
|
+
this.drainTimer = setTimeout(() => {
|
|
2456
|
+
this.drainTimer = void 0;
|
|
2457
|
+
this.drainQueues();
|
|
2458
|
+
}, resolveTimerTimeoutMs(delayMs, 0, 0));
|
|
2459
|
+
this.drainTimer.unref?.();
|
|
2460
|
+
}
|
|
2461
|
+
drainQueues() {
|
|
2462
|
+
let nextDelayMs = Number.POSITIVE_INFINITY;
|
|
2463
|
+
while (this.activeWorkers < this.maxConcurrentWorkers) {
|
|
2464
|
+
const next = this.takeNextQueuedRequest();
|
|
2465
|
+
if (!next.queued) {
|
|
2466
|
+
if (next.waitMs !== void 0) nextDelayMs = Math.min(nextDelayMs, next.waitMs);
|
|
2467
|
+
break;
|
|
2468
|
+
}
|
|
2469
|
+
const { bucket, queued } = next;
|
|
2470
|
+
if (bucket.remaining !== void 0 && bucket.remaining > 0) bucket.remaining -= 1;
|
|
2471
|
+
bucket.active += 1;
|
|
2472
|
+
this.activeWorkers += 1;
|
|
2473
|
+
this.runQueuedRequest(queued, bucket);
|
|
2474
|
+
}
|
|
2475
|
+
if (Number.isFinite(nextDelayMs)) this.scheduleDrain(nextDelayMs);
|
|
2476
|
+
}
|
|
2477
|
+
takeNextQueuedRequest() {
|
|
2478
|
+
const now = Date.now();
|
|
2479
|
+
if (this.globalRateLimitUntil > now) return { waitMs: this.globalRateLimitUntil - now };
|
|
2480
|
+
this.pruneIdleBuckets(now);
|
|
2481
|
+
let nextDelayMs;
|
|
2482
|
+
const buckets = Array.from(this.buckets.values()).filter((bucket) => countPending(bucket) > 0);
|
|
2483
|
+
if (buckets.length === 0) return {};
|
|
2484
|
+
for (let laneOffset = 0; laneOffset < this.laneSchedule.length; laneOffset += 1) {
|
|
2485
|
+
const lane = this.laneSchedule[(this.laneCursor + laneOffset) % this.laneSchedule.length];
|
|
2486
|
+
if (!lane || this.queuedByLane[lane] <= 0) continue;
|
|
2487
|
+
for (const bucket of buckets) {
|
|
2488
|
+
const queue = bucket.pending[lane];
|
|
2489
|
+
this.dropStaleHeadRequests(queue, lane, now);
|
|
2490
|
+
if (queue.length === 0) continue;
|
|
2491
|
+
if (bucket.active > 0) continue;
|
|
2492
|
+
const waitMs = this.getBucketWaitMs(bucket, now);
|
|
2493
|
+
if (waitMs > 0) {
|
|
2494
|
+
nextDelayMs = Math.min(nextDelayMs ?? waitMs, waitMs);
|
|
2495
|
+
continue;
|
|
2496
|
+
}
|
|
2497
|
+
const queued = queue.shift();
|
|
2498
|
+
if (!queued) continue;
|
|
2499
|
+
this.queuedByLane[lane] = Math.max(0, this.queuedByLane[lane] - 1);
|
|
2500
|
+
this.laneCursor = (this.laneCursor + laneOffset + 1) % this.laneSchedule.length;
|
|
2501
|
+
return {
|
|
2502
|
+
bucket,
|
|
2503
|
+
queued
|
|
2504
|
+
};
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
return { waitMs: nextDelayMs };
|
|
2508
|
+
}
|
|
2509
|
+
dropStaleHeadRequests(queue, lane, now) {
|
|
2510
|
+
if (lane !== "background") return;
|
|
2511
|
+
const staleAfterMs = this.options.lanes[lane].staleAfterMs;
|
|
2512
|
+
if (!staleAfterMs || staleAfterMs <= 0) return;
|
|
2513
|
+
while (queue.length > 0 && now - (queue[0]?.enqueuedAt ?? now) > staleAfterMs) {
|
|
2514
|
+
const stale = queue.shift();
|
|
2515
|
+
if (!stale) continue;
|
|
2516
|
+
this.queuedRequests = Math.max(0, this.queuedRequests - 1);
|
|
2517
|
+
this.queuedByLane[lane] = Math.max(0, this.queuedByLane[lane] - 1);
|
|
2518
|
+
this.laneDropped[lane] += 1;
|
|
2519
|
+
stale.reject(/* @__PURE__ */ new Error(`Dropped stale ${lane} request after ${now - stale.enqueuedAt}ms`));
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
pruneIdleBuckets(now = Date.now()) {
|
|
2523
|
+
for (const [key, bucket] of this.buckets) {
|
|
2524
|
+
if (bucket.active !== 0 || countPending(bucket) > 0) continue;
|
|
2525
|
+
if (this.isBucketRateLimited(bucket, now)) continue;
|
|
2526
|
+
this.pruneIdleRouteMappings(key, bucket, now);
|
|
2527
|
+
if (this.shouldPruneIdleBucket(key)) this.buckets.delete(key);
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
async runQueuedRequest(queued, bucket) {
|
|
2531
|
+
let requeued = false;
|
|
2532
|
+
try {
|
|
2533
|
+
queued.resolve(await this.executor(queued));
|
|
2534
|
+
} catch (error) {
|
|
2535
|
+
if (error instanceof RateLimitError && this.requeueRateLimitedRequest(queued)) {
|
|
2536
|
+
requeued = true;
|
|
2537
|
+
return;
|
|
2538
|
+
}
|
|
2539
|
+
queued.reject(error);
|
|
2540
|
+
} finally {
|
|
2541
|
+
bucket.active = Math.max(0, bucket.active - 1);
|
|
2542
|
+
this.activeWorkers = Math.max(0, this.activeWorkers - 1);
|
|
2543
|
+
if (!requeued) this.queuedRequests = Math.max(0, this.queuedRequests - 1);
|
|
2544
|
+
if (bucket.active === 0 && countPending(bucket) === 0) {
|
|
2545
|
+
for (const routeKey of bucket.routeKeys) if (this.routeBuckets.get(routeKey) === routeKey) this.routeBuckets.delete(routeKey);
|
|
2546
|
+
}
|
|
2547
|
+
this.drainQueues();
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
requeueRateLimitedRequest(queued) {
|
|
2551
|
+
if (queued.generation !== this.queueGeneration || queued.retryCount >= this.maxRateLimitRetries) return false;
|
|
2552
|
+
const bucketKey = this.routeBuckets.get(queued.routeKey) ?? queued.routeKey;
|
|
2553
|
+
this.getBucket(bucketKey).pending[queued.priority].push({
|
|
2554
|
+
...queued,
|
|
2555
|
+
enqueuedAt: Date.now(),
|
|
2556
|
+
retryCount: queued.retryCount + 1
|
|
2557
|
+
});
|
|
2558
|
+
this.queuedByLane[queued.priority] += 1;
|
|
2559
|
+
return true;
|
|
2560
|
+
}
|
|
2561
|
+
rejectPending(error) {
|
|
2562
|
+
for (const bucket of this.buckets.values()) for (const lane of requestPriorities) for (const queued of bucket.pending[lane].splice(0)) {
|
|
2563
|
+
queued.reject(error);
|
|
2564
|
+
this.queuedRequests = Math.max(0, this.queuedRequests - 1);
|
|
2565
|
+
this.queuedByLane[lane] = Math.max(0, this.queuedByLane[lane] - 1);
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2568
|
+
buildLaneSchedule(lanes) {
|
|
2569
|
+
const schedule = [];
|
|
2570
|
+
for (const lane of requestPriorities) {
|
|
2571
|
+
const weight = lanes[lane].weight;
|
|
2572
|
+
for (let i = 0; i < weight; i += 1) schedule.push(lane);
|
|
2573
|
+
}
|
|
2574
|
+
return schedule.length > 0 ? schedule : [...requestPriorities];
|
|
2575
|
+
}
|
|
2576
|
+
getOldestQueuedAge(lane) {
|
|
2577
|
+
const now = Date.now();
|
|
2578
|
+
let oldest = 0;
|
|
2579
|
+
for (const bucket of this.buckets.values()) {
|
|
2580
|
+
const queued = bucket.pending[lane][0];
|
|
2581
|
+
if (!queued) continue;
|
|
2582
|
+
oldest = Math.max(oldest, now - queued.enqueuedAt);
|
|
2583
|
+
}
|
|
2584
|
+
return oldest;
|
|
2585
|
+
}
|
|
2586
|
+
};
|
|
2587
|
+
function isGlobalRateLimit(parsed) {
|
|
2588
|
+
return parsed && typeof parsed === "object" && "global" in parsed ? Boolean(parsed.global) : false;
|
|
2589
|
+
}
|
|
2590
|
+
//#endregion
|
|
2591
|
+
//#region extensions/discord/src/internal/rest.ts
|
|
2592
|
+
const defaultOptions = {
|
|
2593
|
+
tokenHeader: "Bot",
|
|
2594
|
+
baseUrl: "https://discord.com/api",
|
|
2595
|
+
apiVersion: 10,
|
|
2596
|
+
userAgent: "OpenClaw Discord",
|
|
2597
|
+
timeout: 15e3,
|
|
2598
|
+
queueRequests: true,
|
|
2599
|
+
maxQueueSize: 1e3,
|
|
2600
|
+
runtimeProfile: "persistent"
|
|
2601
|
+
};
|
|
2602
|
+
const DEFAULT_MAX_CONCURRENT_WORKERS = 4;
|
|
2603
|
+
const defaultLaneOptions = {
|
|
2604
|
+
critical: { weight: 6 },
|
|
2605
|
+
standard: { weight: 3 },
|
|
2606
|
+
background: {
|
|
2607
|
+
staleAfterMs: 2e4,
|
|
2608
|
+
weight: 1
|
|
2609
|
+
}
|
|
2610
|
+
};
|
|
2611
|
+
const DISCORD_REST_RESPONSE_BODY_MAX_BYTES = 8388608;
|
|
2612
|
+
const GZIP_MAGIC = [31, 139];
|
|
2613
|
+
function createResponseBodyOverflowError(size) {
|
|
2614
|
+
return /* @__PURE__ */ new Error(`Discord REST response body exceeds ${DISCORD_REST_RESPONSE_BODY_MAX_BYTES} bytes (received ${size})`);
|
|
2615
|
+
}
|
|
2616
|
+
async function readResponseBodyText(response, idleTimeoutMs) {
|
|
2617
|
+
return decodeResponseBody(await readResponseWithLimit(response, DISCORD_REST_RESPONSE_BODY_MAX_BYTES, {
|
|
2618
|
+
chunkTimeoutMs: idleTimeoutMs,
|
|
2619
|
+
onOverflow: ({ size }) => createResponseBodyOverflowError(size),
|
|
2620
|
+
onIdleTimeout: ({ chunkTimeoutMs }) => /* @__PURE__ */ new Error(`Discord REST response stalled: no data received for ${chunkTimeoutMs}ms`)
|
|
2621
|
+
}));
|
|
2622
|
+
}
|
|
2623
|
+
function coerceResponseBody(raw) {
|
|
2624
|
+
if (!raw) return;
|
|
2625
|
+
try {
|
|
2626
|
+
return JSON.parse(raw);
|
|
2627
|
+
} catch {
|
|
2628
|
+
return raw;
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
function decodeResponseBody(buffer) {
|
|
2632
|
+
if (!buffer.byteLength) return "";
|
|
2633
|
+
if (buffer[0] === GZIP_MAGIC[0] && buffer[1] === GZIP_MAGIC[1]) try {
|
|
2634
|
+
return gunzipSync(buffer, { maxOutputLength: DISCORD_REST_RESPONSE_BODY_MAX_BYTES }).toString("utf8");
|
|
2635
|
+
} catch (err) {
|
|
2636
|
+
if (isZlibMaxOutputLengthError(err)) throw createResponseBodyOverflowError("decompressed output");
|
|
2637
|
+
throw err;
|
|
2638
|
+
}
|
|
2639
|
+
return buffer.toString("utf8");
|
|
2640
|
+
}
|
|
2641
|
+
function isZlibMaxOutputLengthError(err) {
|
|
2642
|
+
return err instanceof RangeError && "code" in err && err.code === "ERR_BUFFER_TOO_LARGE";
|
|
2643
|
+
}
|
|
2644
|
+
var RequestClient = class {
|
|
2645
|
+
constructor(token, options) {
|
|
2646
|
+
this.requestControllers = /* @__PURE__ */ new Set();
|
|
2647
|
+
this.token = token.replace(/^Bot\s+/i, "");
|
|
2648
|
+
this.customFetch = options?.fetch;
|
|
2649
|
+
this.options = normalizeRequestClientOptions(options);
|
|
2650
|
+
this.scheduler = new RestScheduler({
|
|
2651
|
+
lanes: normalizeSchedulerLanes(this.options.maxQueueSize, this.options.scheduler?.lanes),
|
|
2652
|
+
maxConcurrency: resolveIntegerOption(this.options.scheduler?.maxConcurrency, DEFAULT_MAX_CONCURRENT_WORKERS, { min: 1 }),
|
|
2653
|
+
maxQueueSize: this.options.maxQueueSize,
|
|
2654
|
+
maxRateLimitRetries: resolveIntegerOption(this.options.scheduler?.maxRateLimitRetries, 3, { min: 0 })
|
|
2655
|
+
}, async (request) => await this.executeRequest(request.method, request.path, {
|
|
2656
|
+
data: request.data,
|
|
2657
|
+
query: request.query
|
|
2658
|
+
}, request.routeKey));
|
|
2659
|
+
}
|
|
2660
|
+
async get(path, query) {
|
|
2661
|
+
return await this.request("GET", path, { query });
|
|
2662
|
+
}
|
|
2663
|
+
async post(path, data, query) {
|
|
2664
|
+
return await this.request("POST", path, {
|
|
2665
|
+
data,
|
|
2666
|
+
query
|
|
2667
|
+
});
|
|
2668
|
+
}
|
|
2669
|
+
async patch(path, data, query) {
|
|
2670
|
+
return await this.request("PATCH", path, {
|
|
2671
|
+
data,
|
|
2672
|
+
query
|
|
2673
|
+
});
|
|
2674
|
+
}
|
|
2675
|
+
async put(path, data, query) {
|
|
2676
|
+
return await this.request("PUT", path, {
|
|
2677
|
+
data,
|
|
2678
|
+
query
|
|
2679
|
+
});
|
|
2680
|
+
}
|
|
2681
|
+
async delete(path, data, query) {
|
|
2682
|
+
return await this.request("DELETE", path, {
|
|
2683
|
+
data,
|
|
2684
|
+
query
|
|
2685
|
+
});
|
|
2686
|
+
}
|
|
2687
|
+
async request(method, path, params) {
|
|
2688
|
+
const routeKey = createRouteKey(method, path);
|
|
2689
|
+
if (!this.options.queueRequests) return await this.executeRequest(method, path, params, routeKey);
|
|
2690
|
+
return await this.scheduler.enqueue({
|
|
2691
|
+
method,
|
|
2692
|
+
path,
|
|
2693
|
+
priority: getRequestPriority(method, path),
|
|
2694
|
+
...params
|
|
2695
|
+
});
|
|
2696
|
+
}
|
|
2697
|
+
async executeRequest(method, path, params, routeKey = createRouteKey(method, path)) {
|
|
2698
|
+
const url = `${this.options.baseUrl}/v${this.options.apiVersion}${appendQuery(path, params.query)}`;
|
|
2699
|
+
const headers = new Headers({ "User-Agent": this.options.userAgent ?? defaultOptions.userAgent });
|
|
2700
|
+
if (this.token !== "webhook") headers.set("Authorization", `${this.options.tokenHeader ?? "Bot"} ${this.token}`);
|
|
2701
|
+
const body = serializeRequestBody(params.data, headers);
|
|
2702
|
+
const controller = new AbortController();
|
|
2703
|
+
const timeout = setTimeout(() => controller.abort(), this.options.timeout ?? 15e3);
|
|
2704
|
+
timeout.unref?.();
|
|
2705
|
+
const signal = this.options.signal ? AbortSignal.any([this.options.signal, controller.signal]) : controller.signal;
|
|
2706
|
+
this.requestControllers.add(controller);
|
|
2707
|
+
try {
|
|
2708
|
+
const response = await (this.customFetch ?? fetch)(url, {
|
|
2709
|
+
method,
|
|
2710
|
+
headers,
|
|
2711
|
+
body,
|
|
2712
|
+
signal
|
|
2713
|
+
});
|
|
2714
|
+
const parsed = coerceResponseBody(await readResponseBodyText(response, this.options.timeout ?? 15e3));
|
|
2715
|
+
this.scheduler.recordResponse(routeKey, path, response, parsed);
|
|
2716
|
+
if (response.status === 204) return;
|
|
2717
|
+
if (response.status === 429) {
|
|
2718
|
+
const rateLimitBody = isDiscordRateLimitBody(parsed) ? parsed : void 0;
|
|
2719
|
+
throw new RateLimitError(response, {
|
|
2720
|
+
message: readDiscordMessage(rateLimitBody, "Rate limited"),
|
|
2721
|
+
retry_after: readRetryAfter(rateLimitBody, response, 1),
|
|
2722
|
+
code: readDiscordCode(rateLimitBody),
|
|
2723
|
+
global: Boolean(rateLimitBody?.global)
|
|
2724
|
+
});
|
|
2725
|
+
}
|
|
2726
|
+
if (!response.ok) throw new DiscordError(response, parsed);
|
|
2727
|
+
return parsed;
|
|
2728
|
+
} catch (error) {
|
|
2729
|
+
if (error instanceof DOMException && error.name === "AbortError") throw error;
|
|
2730
|
+
if (error instanceof Error) throw error;
|
|
2731
|
+
throw new Error(`Discord request failed: ${inspect(error)}`, { cause: error });
|
|
2732
|
+
} finally {
|
|
2733
|
+
clearTimeout(timeout);
|
|
2734
|
+
this.requestControllers.delete(controller);
|
|
2735
|
+
}
|
|
2736
|
+
}
|
|
2737
|
+
clearQueue() {
|
|
2738
|
+
this.scheduler.clearQueue();
|
|
2739
|
+
}
|
|
2740
|
+
get queueSize() {
|
|
2741
|
+
return this.scheduler.queueSize;
|
|
2742
|
+
}
|
|
2743
|
+
getSchedulerMetrics() {
|
|
2744
|
+
return this.scheduler.getMetrics();
|
|
2745
|
+
}
|
|
2746
|
+
abortAllRequests() {
|
|
2747
|
+
this.scheduler.abortPending();
|
|
2748
|
+
for (const controller of this.requestControllers) controller.abort();
|
|
2749
|
+
this.requestControllers.clear();
|
|
2750
|
+
}
|
|
2751
|
+
};
|
|
2752
|
+
function normalizeRequestClientOptions(options) {
|
|
2753
|
+
const merged = {
|
|
2754
|
+
...defaultOptions,
|
|
2755
|
+
...options
|
|
2756
|
+
};
|
|
2757
|
+
return {
|
|
2758
|
+
...merged,
|
|
2759
|
+
apiVersion: resolveIntegerOption(merged.apiVersion, defaultOptions.apiVersion, { min: 1 }),
|
|
2760
|
+
timeout: clampTimerTimeoutMs(merged.timeout, 1) ?? resolveTimerTimeoutMs(defaultOptions.timeout, 1),
|
|
2761
|
+
maxQueueSize: resolveIntegerOption(merged.maxQueueSize, defaultOptions.maxQueueSize, { min: 1 })
|
|
2762
|
+
};
|
|
2763
|
+
}
|
|
2764
|
+
function normalizeSchedulerLanes(maxQueueSize, lanes) {
|
|
2765
|
+
const fallbackMaxQueueSize = resolveIntegerOption(maxQueueSize, defaultOptions.maxQueueSize, { min: 1 });
|
|
2766
|
+
return {
|
|
2767
|
+
critical: normalizeSchedulerLane("critical", fallbackMaxQueueSize, lanes?.critical),
|
|
2768
|
+
standard: normalizeSchedulerLane("standard", fallbackMaxQueueSize, lanes?.standard),
|
|
2769
|
+
background: normalizeSchedulerLane("background", fallbackMaxQueueSize, lanes?.background)
|
|
2770
|
+
};
|
|
2771
|
+
}
|
|
2772
|
+
function normalizeSchedulerLane(lane, maxQueueSize, options) {
|
|
2773
|
+
const defaults = defaultLaneOptions[lane];
|
|
2774
|
+
const staleAfterMs = options?.staleAfterMs !== void 0 ? resolveIntegerOption(options.staleAfterMs, defaults.staleAfterMs ?? 0, { min: 0 }) : defaults.staleAfterMs;
|
|
2775
|
+
return {
|
|
2776
|
+
maxQueueSize: options?.maxQueueSize !== void 0 ? resolveIntegerOption(options.maxQueueSize, maxQueueSize, { min: 1 }) : maxQueueSize,
|
|
2777
|
+
...staleAfterMs !== void 0 ? { staleAfterMs } : {},
|
|
2778
|
+
weight: options?.weight !== void 0 ? resolveIntegerOption(options.weight, defaults.weight, { min: 1 }) : defaults.weight
|
|
2779
|
+
};
|
|
2780
|
+
}
|
|
2781
|
+
function getRequestPriority(method, path) {
|
|
2782
|
+
const normalizedMethod = method.toUpperCase();
|
|
2783
|
+
const normalizedPath = path.toLowerCase();
|
|
2784
|
+
if (/^\/interactions\/\d+\/[^/]+\/callback$/.test(normalizedPath)) return "critical";
|
|
2785
|
+
return normalizedMethod === "GET" ? "background" : "standard";
|
|
2786
|
+
}
|
|
2787
|
+
//#endregion
|
|
2788
|
+
//#region extensions/discord/src/internal/client.ts
|
|
2789
|
+
var Plugin = class {};
|
|
2790
|
+
var Client = class {
|
|
2791
|
+
constructor(options, handlers, plugins = []) {
|
|
2792
|
+
this.routes = [];
|
|
2793
|
+
this.plugins = [];
|
|
2794
|
+
this.componentHandler = new ComponentRegistry();
|
|
2795
|
+
this.modalHandler = new ComponentRegistry();
|
|
2796
|
+
if (!options.clientId) throw new Error("Missing Discord application ID");
|
|
2797
|
+
if (!options.token) throw new Error("Missing Discord bot token");
|
|
2798
|
+
this.options = {
|
|
2799
|
+
...options,
|
|
2800
|
+
baseUrl: options.baseUrl.replace(/\/+$/, "")
|
|
2801
|
+
};
|
|
2802
|
+
this.commands = handlers.commands ?? [];
|
|
2803
|
+
this.listeners = handlers.listeners ?? [];
|
|
2804
|
+
this.rest = new RequestClient(options.token, options.requestOptions);
|
|
2805
|
+
this.eventQueue = this.options.eventQueue ? new DiscordEventQueue(this.options.eventQueue) : void 0;
|
|
2806
|
+
this.entityCache = new DiscordEntityCache({
|
|
2807
|
+
client: this,
|
|
2808
|
+
rest: () => this.rest,
|
|
2809
|
+
ttlMs: this.options.restCacheTtlMs
|
|
2810
|
+
});
|
|
2811
|
+
this.commandDeployer = new DiscordCommandDeployer({
|
|
2812
|
+
clientId: this.options.clientId,
|
|
2813
|
+
commands: this.commands,
|
|
2814
|
+
devGuilds: this.options.devGuilds,
|
|
2815
|
+
hashStore: this.options.commandDeployHashStore,
|
|
2816
|
+
rest: () => this.rest
|
|
2817
|
+
});
|
|
2818
|
+
for (const component of handlers.components ?? []) this.componentHandler.register(component);
|
|
2819
|
+
for (const command of this.commands) for (const component of command.components ?? []) this.componentHandler.register(component);
|
|
2820
|
+
for (const modal of handlers.modals ?? []) this.modalHandler.register(modal);
|
|
2821
|
+
for (const plugin of plugins) {
|
|
2822
|
+
plugin.registerClient?.(this);
|
|
2823
|
+
plugin.registerRoutes?.(this);
|
|
2824
|
+
this.plugins.push({
|
|
2825
|
+
id: plugin.id,
|
|
2826
|
+
plugin
|
|
2827
|
+
});
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
getPlugin(id) {
|
|
2831
|
+
return this.plugins.find((entry) => entry.id === id)?.plugin;
|
|
2832
|
+
}
|
|
2833
|
+
registerListener(listener) {
|
|
2834
|
+
if (!this.listeners.includes(listener)) this.listeners.push(listener);
|
|
2835
|
+
return listener;
|
|
2836
|
+
}
|
|
2837
|
+
unregisterListener(listener) {
|
|
2838
|
+
const index = this.listeners.indexOf(listener);
|
|
2839
|
+
if (index < 0) return false;
|
|
2840
|
+
this.listeners.splice(index, 1);
|
|
2841
|
+
return true;
|
|
2842
|
+
}
|
|
2843
|
+
getRuntimeMetrics() {
|
|
2844
|
+
return {
|
|
2845
|
+
request: this.rest.getSchedulerMetrics(),
|
|
2846
|
+
eventQueue: this.eventQueue?.getMetrics()
|
|
2847
|
+
};
|
|
2848
|
+
}
|
|
2849
|
+
async fetchUser(id) {
|
|
2850
|
+
return await this.entityCache.fetchUser(id);
|
|
2851
|
+
}
|
|
2852
|
+
async fetchChannel(id) {
|
|
2853
|
+
return await this.entityCache.fetchChannel(id);
|
|
2854
|
+
}
|
|
2855
|
+
async fetchGuild(id) {
|
|
2856
|
+
return await this.entityCache.fetchGuild(id);
|
|
2857
|
+
}
|
|
2858
|
+
async fetchMember(guildId, userId) {
|
|
2859
|
+
return await this.entityCache.fetchMember(guildId, userId);
|
|
2860
|
+
}
|
|
2861
|
+
async fetchGuildEmojis(guildId, fetcher) {
|
|
2862
|
+
return await this.entityCache.fetchGuildEmojis(guildId, fetcher);
|
|
2863
|
+
}
|
|
2864
|
+
async deployCommands(options = {}) {
|
|
2865
|
+
return await this.commandDeployer.deploy(options);
|
|
2866
|
+
}
|
|
2867
|
+
async handleInteraction(rawData, _ctx) {
|
|
2868
|
+
await dispatchInteraction(this, rawData);
|
|
2869
|
+
}
|
|
2870
|
+
async dispatchGatewayEvent(type, data) {
|
|
2871
|
+
this.entityCache.invalidateForGatewayEvent(type, data);
|
|
2872
|
+
const listeners = this.listeners.filter((entry) => entry.type === type);
|
|
2873
|
+
if (!this.eventQueue) {
|
|
2874
|
+
for (const listener of listeners) await listener.handle(data, this);
|
|
2875
|
+
return;
|
|
2876
|
+
}
|
|
2877
|
+
await Promise.all(listeners.map((listener) => this.eventQueue.enqueue({
|
|
2878
|
+
eventType: type,
|
|
2879
|
+
listenerName: listener.constructor.name || "AnonymousListener",
|
|
2880
|
+
run: async () => {
|
|
2881
|
+
await listener.handle(data, this);
|
|
2882
|
+
}
|
|
2883
|
+
})));
|
|
2884
|
+
}
|
|
2885
|
+
};
|
|
2886
|
+
//#endregion
|
|
2887
|
+
//#region extensions/discord/src/internal/listeners.ts
|
|
2888
|
+
var BaseListener = class {};
|
|
2889
|
+
var ReadyListener = class extends BaseListener {
|
|
2890
|
+
constructor(..._args) {
|
|
2891
|
+
super(..._args);
|
|
2892
|
+
this.type = GatewayDispatchEvents.Ready;
|
|
2893
|
+
}
|
|
2894
|
+
};
|
|
2895
|
+
var ResumedListener = class extends BaseListener {
|
|
2896
|
+
constructor(..._args2) {
|
|
2897
|
+
super(..._args2);
|
|
2898
|
+
this.type = GatewayDispatchEvents.Resumed;
|
|
2899
|
+
}
|
|
2900
|
+
};
|
|
2901
|
+
var GuildCreateListener = class extends BaseListener {
|
|
2902
|
+
constructor(..._args3) {
|
|
2903
|
+
super(..._args3);
|
|
2904
|
+
this.type = GatewayDispatchEvents.GuildCreate;
|
|
2905
|
+
}
|
|
2906
|
+
};
|
|
2907
|
+
var GuildDeleteListener = class extends BaseListener {
|
|
2908
|
+
constructor(..._args4) {
|
|
2909
|
+
super(..._args4);
|
|
2910
|
+
this.type = GatewayDispatchEvents.GuildDelete;
|
|
2911
|
+
}
|
|
2912
|
+
};
|
|
2913
|
+
var MessageCreateListener = class extends BaseListener {
|
|
2914
|
+
constructor(..._args5) {
|
|
2915
|
+
super(..._args5);
|
|
2916
|
+
this.type = GatewayDispatchEvents.MessageCreate;
|
|
2917
|
+
}
|
|
2918
|
+
};
|
|
2919
|
+
var InteractionCreateListener = class extends BaseListener {
|
|
2920
|
+
constructor(..._args6) {
|
|
2921
|
+
super(..._args6);
|
|
2922
|
+
this.type = GatewayDispatchEvents.InteractionCreate;
|
|
2923
|
+
}
|
|
2924
|
+
};
|
|
2925
|
+
var MessageReactionAddListener = class extends BaseListener {
|
|
2926
|
+
constructor(..._args7) {
|
|
2927
|
+
super(..._args7);
|
|
2928
|
+
this.type = GatewayDispatchEvents.MessageReactionAdd;
|
|
2929
|
+
}
|
|
2930
|
+
};
|
|
2931
|
+
var MessageReactionRemoveListener = class extends BaseListener {
|
|
2932
|
+
constructor(..._args8) {
|
|
2933
|
+
super(..._args8);
|
|
2934
|
+
this.type = GatewayDispatchEvents.MessageReactionRemove;
|
|
2935
|
+
}
|
|
2936
|
+
};
|
|
2937
|
+
var PresenceUpdateListener = class extends BaseListener {
|
|
2938
|
+
constructor(..._args9) {
|
|
2939
|
+
super(..._args9);
|
|
2940
|
+
this.type = GatewayDispatchEvents.PresenceUpdate;
|
|
2941
|
+
}
|
|
2942
|
+
};
|
|
2943
|
+
var VoiceStateUpdateListener = class extends BaseListener {
|
|
2944
|
+
constructor(..._args10) {
|
|
2945
|
+
super(..._args10);
|
|
2946
|
+
this.type = GatewayDispatchEvents.VoiceStateUpdate;
|
|
2947
|
+
}
|
|
2948
|
+
};
|
|
2949
|
+
var ThreadUpdateListener = class extends BaseListener {
|
|
2950
|
+
constructor(..._args11) {
|
|
2951
|
+
super(..._args11);
|
|
2952
|
+
this.type = GatewayDispatchEvents.ThreadUpdate;
|
|
2953
|
+
}
|
|
2954
|
+
};
|
|
2955
|
+
var ThreadDeleteListener = class extends BaseListener {
|
|
2956
|
+
constructor(..._args12) {
|
|
2957
|
+
super(..._args12);
|
|
2958
|
+
this.type = GatewayDispatchEvents.ThreadDelete;
|
|
2959
|
+
}
|
|
2960
|
+
};
|
|
2961
|
+
//#endregion
|
|
2962
|
+
//#region extensions/discord/src/internal/discord.ts
|
|
2963
|
+
var discord_exports = /* @__PURE__ */ __exportAll({
|
|
2964
|
+
AutocompleteInteraction: () => AutocompleteInteraction,
|
|
2965
|
+
BaseCommand: () => BaseCommand,
|
|
2966
|
+
BaseComponentInteraction: () => BaseComponentInteraction,
|
|
2967
|
+
BaseMessageInteractiveComponent: () => BaseMessageInteractiveComponent,
|
|
2968
|
+
Button: () => Button,
|
|
2969
|
+
ButtonInteraction: () => ButtonInteraction,
|
|
2970
|
+
ChannelSelectMenu: () => ChannelSelectMenu,
|
|
2971
|
+
ChannelSelectMenuInteraction: () => ChannelSelectMenuInteraction,
|
|
2972
|
+
CheckboxGroup: () => CheckboxGroup,
|
|
2973
|
+
Client: () => Client,
|
|
2974
|
+
Command: () => Command,
|
|
2975
|
+
CommandInteraction: () => CommandInteraction,
|
|
2976
|
+
CommandWithSubcommands: () => CommandWithSubcommands,
|
|
2977
|
+
Container: () => Container,
|
|
2978
|
+
DiscordError: () => DiscordError,
|
|
2979
|
+
Embed: () => Embed,
|
|
2980
|
+
File: () => File,
|
|
2981
|
+
Guild: () => Guild,
|
|
2982
|
+
GuildCreateListener: () => GuildCreateListener,
|
|
2983
|
+
GuildDeleteListener: () => GuildDeleteListener,
|
|
2984
|
+
GuildMember: () => GuildMember,
|
|
2985
|
+
InteractionCreateListener: () => InteractionCreateListener,
|
|
2986
|
+
Label: () => Label,
|
|
2987
|
+
LinkButton: () => LinkButton,
|
|
2988
|
+
MediaGallery: () => MediaGallery,
|
|
2989
|
+
MentionableSelectMenu: () => MentionableSelectMenu,
|
|
2990
|
+
MentionableSelectMenuInteraction: () => MentionableSelectMenuInteraction,
|
|
2991
|
+
Message: () => Message,
|
|
2992
|
+
MessageCreateListener: () => MessageCreateListener,
|
|
2993
|
+
MessageReactionAddListener: () => MessageReactionAddListener,
|
|
2994
|
+
MessageReactionRemoveListener: () => MessageReactionRemoveListener,
|
|
2995
|
+
Modal: () => Modal,
|
|
2996
|
+
ModalInteraction: () => ModalInteraction,
|
|
2997
|
+
Plugin: () => Plugin,
|
|
2998
|
+
PresenceUpdateListener: () => PresenceUpdateListener,
|
|
2999
|
+
RadioGroup: () => RadioGroup,
|
|
3000
|
+
RateLimitError: () => RateLimitError,
|
|
3001
|
+
ReadyListener: () => ReadyListener,
|
|
3002
|
+
RequestClient: () => RequestClient,
|
|
3003
|
+
ResumedListener: () => ResumedListener,
|
|
3004
|
+
Role: () => Role,
|
|
3005
|
+
RoleSelectMenu: () => RoleSelectMenu,
|
|
3006
|
+
RoleSelectMenuInteraction: () => RoleSelectMenuInteraction,
|
|
3007
|
+
Row: () => Row,
|
|
3008
|
+
Section: () => Section,
|
|
3009
|
+
Separator: () => Separator,
|
|
3010
|
+
StringSelectMenu: () => StringSelectMenu,
|
|
3011
|
+
StringSelectMenuInteraction: () => StringSelectMenuInteraction,
|
|
3012
|
+
TextDisplay: () => TextDisplay,
|
|
3013
|
+
TextInput: () => TextInput,
|
|
3014
|
+
ThreadDeleteListener: () => ThreadDeleteListener,
|
|
3015
|
+
ThreadUpdateListener: () => ThreadUpdateListener,
|
|
3016
|
+
Thumbnail: () => Thumbnail,
|
|
3017
|
+
User: () => User,
|
|
3018
|
+
UserSelectMenu: () => UserSelectMenu,
|
|
3019
|
+
UserSelectMenuInteraction: () => UserSelectMenuInteraction,
|
|
3020
|
+
VoiceStateUpdateListener: () => VoiceStateUpdateListener,
|
|
3021
|
+
addGuildMemberRole: () => addGuildMemberRole,
|
|
3022
|
+
channelFactory: () => channelFactory,
|
|
3023
|
+
createApplicationCommand: () => createApplicationCommand,
|
|
3024
|
+
createChannelMessage: () => createChannelMessage,
|
|
3025
|
+
createChannelWebhook: () => createChannelWebhook,
|
|
3026
|
+
createGuildBan: () => createGuildBan,
|
|
3027
|
+
createGuildChannel: () => createGuildChannel,
|
|
3028
|
+
createGuildEmoji: () => createGuildEmoji,
|
|
3029
|
+
createGuildScheduledEvent: () => createGuildScheduledEvent,
|
|
3030
|
+
createGuildSticker: () => createGuildSticker,
|
|
3031
|
+
createInteraction: () => createInteraction,
|
|
3032
|
+
createInteractionCallback: () => createInteractionCallback,
|
|
3033
|
+
createOwnMessageReaction: () => createOwnMessageReaction,
|
|
3034
|
+
createThread: () => createThread,
|
|
3035
|
+
createUserDmChannel: () => createUserDmChannel,
|
|
3036
|
+
createWebhookMessage: () => createWebhookMessage,
|
|
3037
|
+
deferCommandInteractionIfNeeded: () => deferCommandInteractionIfNeeded,
|
|
3038
|
+
deleteApplicationCommand: () => deleteApplicationCommand,
|
|
3039
|
+
deleteChannel: () => deleteChannel,
|
|
3040
|
+
deleteChannelMessage: () => deleteChannelMessage,
|
|
3041
|
+
deleteChannelPermission: () => deleteChannelPermission,
|
|
3042
|
+
deleteOwnMessageReaction: () => deleteOwnMessageReaction,
|
|
3043
|
+
deleteWebhookMessage: () => deleteWebhookMessage,
|
|
3044
|
+
editApplicationCommand: () => editApplicationCommand,
|
|
3045
|
+
editChannel: () => editChannel,
|
|
3046
|
+
editChannelMessage: () => editChannelMessage,
|
|
3047
|
+
editWebhookMessage: () => editWebhookMessage,
|
|
3048
|
+
getChannel: () => getChannel,
|
|
3049
|
+
getChannelMessage: () => getChannelMessage,
|
|
3050
|
+
getCurrentUser: () => getCurrentUser,
|
|
3051
|
+
getGuild: () => getGuild,
|
|
3052
|
+
getGuildMember: () => getGuildMember,
|
|
3053
|
+
getGuildVoiceState: () => getGuildVoiceState,
|
|
3054
|
+
getThreadMember: () => getThreadMember,
|
|
3055
|
+
getUser: () => getUser,
|
|
3056
|
+
getWebhookMessage: () => getWebhookMessage,
|
|
3057
|
+
hasDiscordV2Components: () => hasDiscordV2Components,
|
|
3058
|
+
isUnknownDiscordVoiceStateError: () => isUnknownDiscordVoiceStateError,
|
|
3059
|
+
listApplicationCommands: () => listApplicationCommands,
|
|
3060
|
+
listChannelArchivedThreads: () => listChannelArchivedThreads,
|
|
3061
|
+
listChannelMessages: () => listChannelMessages,
|
|
3062
|
+
listChannelPins: () => listChannelPins,
|
|
3063
|
+
listGuildActiveThreads: () => listGuildActiveThreads,
|
|
3064
|
+
listGuildChannels: () => listGuildChannels,
|
|
3065
|
+
listGuildEmojis: () => listGuildEmojis,
|
|
3066
|
+
listGuildRoles: () => listGuildRoles,
|
|
3067
|
+
listGuildScheduledEvents: () => listGuildScheduledEvents,
|
|
3068
|
+
listMessageReactionUsers: () => listMessageReactionUsers,
|
|
3069
|
+
moveGuildChannels: () => moveGuildChannels,
|
|
3070
|
+
overwriteApplicationCommands: () => overwriteApplicationCommands,
|
|
3071
|
+
overwriteGuildApplicationCommands: () => overwriteGuildApplicationCommands,
|
|
3072
|
+
parseComponentInteractionData: () => parseComponentInteractionData,
|
|
3073
|
+
parseCustomId: () => parseCustomId,
|
|
3074
|
+
pinChannelMessage: () => pinChannelMessage,
|
|
3075
|
+
putChannelPermission: () => putChannelPermission,
|
|
3076
|
+
removeGuildMember: () => removeGuildMember,
|
|
3077
|
+
removeGuildMemberRole: () => removeGuildMemberRole,
|
|
3078
|
+
resolveFocusedCommandOptionAutocompleteHandler: () => resolveFocusedCommandOptionAutocompleteHandler,
|
|
3079
|
+
searchGuildMessages: () => searchGuildMessages,
|
|
3080
|
+
sendChannelTyping: () => sendChannelTyping,
|
|
3081
|
+
serializePayload: () => serializePayload,
|
|
3082
|
+
timeoutGuildMember: () => timeoutGuildMember,
|
|
3083
|
+
unpinChannelMessage: () => unpinChannelMessage
|
|
3084
|
+
});
|
|
3085
|
+
import * as import_discord_api_types_v10 from "discord-api-types/v10";
|
|
3086
|
+
__reExport(discord_exports, import_discord_api_types_v10);
|
|
3087
|
+
//#endregion
|
|
3088
|
+
export { stripUndefinedFields as $, Embed as A, getGuildMember as At, LinkButton as B, removeGuildMemberRole as Bt, Command as C, createGuildBan as Ct, User as D, createGuildSticker as Dt, Message as E, createGuildScheduledEvent as Et, TextInput as F, listGuildRoles as Ft, Section as G, MentionableSelectMenu as H, __exportAll as Ht, Button as I, listGuildScheduledEvents as It, TextDisplay as J, Separator as K, ChannelSelectMenu as L, moveGuildChannels as Lt, Label as M, listGuildActiveThreads as Mt, Modal as N, listGuildChannels as Nt, hasDiscordV2Components as O, deleteChannelPermission as Ot, RadioGroup as P, listGuildEmojis as Pt, parseCustomId as Q, Container as R, putChannelPermission as Rt, readRetryAfter as S, addGuildMemberRole as St, Guild as T, createGuildEmoji as Tt, RoleSelectMenu as U, MediaGallery as V, timeoutGuildMember as Vt, Row as W, UserSelectMenu as X, Thumbnail as Y, BaseMessageInteractiveComponent as Z, DiscordError as _, listChannelPins as _t, MessageCreateListener as a, listMessageReactionUsers as at, readDiscordCode as b, sendChannelTyping as bt, PresenceUpdateListener as c, deleteChannel as ct, ThreadDeleteListener as d, editChannelMessage as dt, createChannelWebhook as et, ThreadUpdateListener as f, getChannel as ft, RequestClient as g, listChannelMessages as gt, Plugin as h, listChannelArchivedThreads as ht, InteractionCreateListener as i, deleteOwnMessageReaction as it, CheckboxGroup as j, getGuildVoiceState as jt, serializePayload as k, getGuild as kt, ReadyListener as l, deleteChannelMessage as lt, Client as m, getThreadMember as mt, GuildCreateListener as n, getCurrentUser as nt, MessageReactionAddListener as o, createChannelMessage as ot, VoiceStateUpdateListener as p, getChannelMessage as pt, StringSelectMenu as q, GuildDeleteListener as r, createOwnMessageReaction as rt, MessageReactionRemoveListener as s, createThread as st, discord_exports as t, createUserDmChannel as tt, ResumedListener as u, editChannel as ut, RateLimitError as v, pinChannelMessage as vt, CommandWithSubcommands as w, createGuildChannel as wt, readDiscordMessage as x, unpinChannelMessage as xt, isUnknownDiscordVoiceStateError as y, searchGuildMessages as yt, File as z, removeGuildMember as zt };
|