@buape/carbon 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +8 -7
- package/dist/src/abstracts/AnySelectMenu.d.ts +2 -2
- package/dist/src/abstracts/AnySelectMenu.d.ts.map +1 -1
- package/dist/src/abstracts/AnySelectMenu.js +2 -2
- package/dist/src/abstracts/AnySelectMenu.js.map +1 -1
- package/dist/src/abstracts/BaseChannel.d.ts +2 -2
- package/dist/src/abstracts/BaseChannel.d.ts.map +1 -1
- package/dist/src/abstracts/BaseChannel.js +2 -1
- package/dist/src/abstracts/BaseChannel.js.map +1 -1
- package/dist/src/abstracts/BaseCommand.d.ts +2 -2
- package/dist/src/abstracts/BaseCommand.d.ts.map +1 -1
- package/dist/src/abstracts/BaseCommand.js.map +1 -1
- package/dist/src/abstracts/BaseComponent.d.ts +10 -24
- package/dist/src/abstracts/BaseComponent.d.ts.map +1 -1
- package/dist/src/abstracts/BaseComponent.js +5 -25
- package/dist/src/abstracts/BaseComponent.js.map +1 -1
- package/dist/src/abstracts/BaseComponentInteraction.d.ts +3 -3
- package/dist/src/abstracts/BaseComponentInteraction.d.ts.map +1 -1
- package/dist/src/abstracts/BaseComponentInteraction.js +2 -3
- package/dist/src/abstracts/BaseComponentInteraction.js.map +1 -1
- package/dist/src/abstracts/BaseGuildChannel.d.ts +1 -1
- package/dist/src/abstracts/BaseGuildChannel.d.ts.map +1 -1
- package/dist/src/abstracts/BaseInteraction.d.ts +5 -35
- package/dist/src/abstracts/BaseInteraction.d.ts.map +1 -1
- package/dist/src/abstracts/BaseInteraction.js +10 -24
- package/dist/src/abstracts/BaseInteraction.js.map +1 -1
- package/dist/src/abstracts/BaseListener.d.ts +13 -0
- package/dist/src/abstracts/BaseListener.d.ts.map +1 -0
- package/dist/src/abstracts/BaseListener.js +8 -0
- package/dist/src/abstracts/BaseListener.js.map +1 -0
- package/dist/src/abstracts/BaseMessageInteractiveComponent.d.ts +33 -0
- package/dist/src/abstracts/BaseMessageInteractiveComponent.d.ts.map +1 -0
- package/dist/src/abstracts/BaseMessageInteractiveComponent.js +33 -0
- package/dist/src/abstracts/BaseMessageInteractiveComponent.js.map +1 -0
- package/dist/src/abstracts/BaseModalComponent.d.ts +23 -0
- package/dist/src/abstracts/BaseModalComponent.d.ts.map +1 -0
- package/dist/src/abstracts/BaseModalComponent.js +25 -0
- package/dist/src/abstracts/BaseModalComponent.js.map +1 -0
- package/dist/src/abstracts/GuildThreadOnlyChannel.d.ts +1 -1
- package/dist/src/abstracts/GuildThreadOnlyChannel.d.ts.map +1 -1
- package/dist/src/abstracts/Plugin.d.ts +6 -2
- package/dist/src/abstracts/Plugin.d.ts.map +1 -1
- package/dist/src/abstracts/Plugin.js.map +1 -1
- package/dist/src/classes/Client.d.ts +15 -6
- package/dist/src/classes/Client.d.ts.map +1 -1
- package/dist/src/classes/Client.js +36 -11
- package/dist/src/classes/Client.js.map +1 -1
- package/dist/src/classes/Listener.d.ts +356 -5
- package/dist/src/classes/Listener.d.ts.map +1 -1
- package/dist/src/classes/Listener.js +909 -1
- package/dist/src/classes/Listener.js.map +1 -1
- package/dist/src/classes/Modal.d.ts +3 -3
- package/dist/src/classes/Modal.d.ts.map +1 -1
- package/dist/src/classes/Modal.js.map +1 -1
- package/dist/src/classes/RequestClient.d.ts +77 -0
- package/dist/src/classes/RequestClient.d.ts.map +1 -0
- package/dist/src/classes/RequestClient.js +213 -0
- package/dist/src/classes/RequestClient.js.map +1 -0
- package/dist/src/classes/{Button.d.ts → components/Button.d.ts} +5 -4
- package/dist/src/classes/components/Button.d.ts.map +1 -0
- package/dist/src/classes/{Button.js → components/Button.js} +3 -2
- package/dist/src/classes/components/Button.js.map +1 -0
- package/dist/src/classes/{ChannelSelectMenu.d.ts → components/ChannelSelectMenu.d.ts} +4 -3
- package/dist/src/classes/components/ChannelSelectMenu.d.ts.map +1 -0
- package/dist/src/classes/{ChannelSelectMenu.js → components/ChannelSelectMenu.js} +2 -1
- package/dist/src/classes/components/ChannelSelectMenu.js.map +1 -0
- package/dist/src/classes/components/Container.d.ts +26 -0
- package/dist/src/classes/components/Container.d.ts.map +1 -0
- package/dist/src/classes/components/Container.js +30 -0
- package/dist/src/classes/components/Container.js.map +1 -0
- package/dist/src/classes/components/File.d.ts +21 -0
- package/dist/src/classes/components/File.d.ts.map +1 -0
- package/dist/src/classes/components/File.js +33 -0
- package/dist/src/classes/components/File.js.map +1 -0
- package/dist/src/classes/components/MediaGallery.d.ts +27 -0
- package/dist/src/classes/components/MediaGallery.d.ts.map +1 -0
- package/dist/src/classes/components/MediaGallery.js +27 -0
- package/dist/src/classes/components/MediaGallery.js.map +1 -0
- package/dist/src/classes/{MentionableSelectMenu.d.ts → components/MentionableSelectMenu.d.ts} +4 -3
- package/dist/src/classes/components/MentionableSelectMenu.d.ts.map +1 -0
- package/dist/src/classes/{MentionableSelectMenu.js → components/MentionableSelectMenu.js} +2 -1
- package/dist/src/classes/components/MentionableSelectMenu.js.map +1 -0
- package/dist/src/classes/{RoleSelectMenu.d.ts → components/RoleSelectMenu.d.ts} +4 -3
- package/dist/src/classes/components/RoleSelectMenu.d.ts.map +1 -0
- package/dist/src/classes/{RoleSelectMenu.js → components/RoleSelectMenu.js} +2 -1
- package/dist/src/classes/components/RoleSelectMenu.js.map +1 -0
- package/dist/src/classes/components/Row.d.ts +29 -0
- package/dist/src/classes/components/Row.d.ts.map +1 -0
- package/dist/src/classes/{Row.js → components/Row.js} +8 -2
- package/dist/src/classes/components/Row.js.map +1 -0
- package/dist/src/classes/components/Section.d.ts +22 -0
- package/dist/src/classes/components/Section.d.ts.map +1 -0
- package/dist/src/classes/components/Section.js +15 -0
- package/dist/src/classes/components/Section.js.map +1 -0
- package/dist/src/classes/components/Separator.d.ts +22 -0
- package/dist/src/classes/components/Separator.d.ts.map +1 -0
- package/dist/src/classes/components/Separator.js +33 -0
- package/dist/src/classes/components/Separator.js.map +1 -0
- package/dist/src/classes/{StringSelectMenu.d.ts → components/StringSelectMenu.d.ts} +4 -3
- package/dist/src/classes/components/StringSelectMenu.d.ts.map +1 -0
- package/dist/src/classes/{StringSelectMenu.js → components/StringSelectMenu.js} +2 -1
- package/dist/src/classes/components/StringSelectMenu.js.map +1 -0
- package/dist/src/classes/components/TextDisplay.d.ts +10 -0
- package/dist/src/classes/components/TextDisplay.d.ts.map +1 -0
- package/dist/src/classes/components/TextDisplay.js +19 -0
- package/dist/src/classes/components/TextDisplay.js.map +1 -0
- package/dist/src/classes/{TextInput.d.ts → components/TextInput.d.ts} +4 -3
- package/dist/src/classes/components/TextInput.d.ts.map +1 -0
- package/dist/src/classes/{TextInput.js → components/TextInput.js} +3 -2
- package/dist/src/classes/components/TextInput.js.map +1 -0
- package/dist/src/classes/components/Thumbnail.d.ts +13 -0
- package/dist/src/classes/components/Thumbnail.d.ts.map +1 -0
- package/dist/src/classes/components/Thumbnail.js +16 -0
- package/dist/src/classes/components/Thumbnail.js.map +1 -0
- package/dist/src/classes/{UserSelectMenu.d.ts → components/UserSelectMenu.d.ts} +4 -3
- package/dist/src/classes/components/UserSelectMenu.d.ts.map +1 -0
- package/dist/src/classes/{UserSelectMenu.js → components/UserSelectMenu.js} +2 -1
- package/dist/src/classes/components/UserSelectMenu.js.map +1 -0
- package/dist/src/errors/BaseError.d.ts +3 -0
- package/dist/src/errors/BaseError.d.ts.map +1 -0
- package/dist/src/errors/BaseError.js +3 -0
- package/dist/src/errors/BaseError.js.map +1 -0
- package/dist/src/errors/DiscordError.d.ts +25 -0
- package/dist/src/errors/DiscordError.d.ts.map +1 -0
- package/dist/src/errors/DiscordError.js +31 -0
- package/dist/src/errors/DiscordError.js.map +1 -0
- package/dist/src/errors/RatelimitError.d.ts +15 -0
- package/dist/src/errors/RatelimitError.d.ts.map +1 -0
- package/dist/src/errors/RatelimitError.js +18 -0
- package/dist/src/errors/RatelimitError.js.map +1 -0
- package/dist/src/{factories → functions}/channelFactory.d.ts +3 -2
- package/dist/src/functions/channelFactory.d.ts.map +1 -0
- package/dist/src/functions/channelFactory.js.map +1 -0
- package/dist/src/functions/errorsMapper.d.ts +14 -0
- package/dist/src/functions/errorsMapper.d.ts.map +1 -0
- package/dist/src/functions/errorsMapper.js +34 -0
- package/dist/src/functions/errorsMapper.js.map +1 -0
- package/dist/src/index.d.ts +25 -10
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +27 -11
- package/dist/src/index.js.map +1 -1
- package/dist/src/internals/AutocompleteInteraction.d.ts +6 -2
- package/dist/src/internals/AutocompleteInteraction.d.ts.map +1 -1
- package/dist/src/internals/AutocompleteInteraction.js +14 -12
- package/dist/src/internals/AutocompleteInteraction.js.map +1 -1
- package/dist/src/internals/ComponentHandler.d.ts +3 -3
- package/dist/src/internals/ComponentHandler.d.ts.map +1 -1
- package/dist/src/internals/ComponentHandler.js +6 -6
- package/dist/src/internals/ComponentHandler.js.map +1 -1
- package/dist/src/internals/EventHandler.d.ts +7 -5
- package/dist/src/internals/EventHandler.d.ts.map +1 -1
- package/dist/src/internals/EventHandler.js +13 -11
- package/dist/src/internals/EventHandler.js.map +1 -1
- package/dist/src/internals/ModalInteraction.d.ts +2 -3
- package/dist/src/internals/ModalInteraction.d.ts.map +1 -1
- package/dist/src/internals/ModalInteraction.js +2 -3
- package/dist/src/internals/ModalInteraction.js.map +1 -1
- package/dist/src/plugins/gateway/GatewayPlugin.d.ts +41 -0
- package/dist/src/plugins/gateway/GatewayPlugin.d.ts.map +1 -0
- package/dist/src/plugins/gateway/GatewayPlugin.js +249 -0
- package/dist/src/plugins/gateway/GatewayPlugin.js.map +1 -0
- package/dist/src/plugins/gateway/index.d.ts +6 -0
- package/dist/src/plugins/gateway/index.d.ts.map +1 -0
- package/dist/src/plugins/gateway/index.js +6 -0
- package/dist/src/plugins/gateway/index.js.map +1 -0
- package/dist/src/plugins/gateway/types.d.ts +62 -0
- package/dist/src/plugins/gateway/types.d.ts.map +1 -0
- package/dist/src/plugins/gateway/types.js +5 -0
- package/dist/src/plugins/gateway/types.js.map +1 -0
- package/dist/src/plugins/gateway/utils/heartbeat.d.ts +17 -0
- package/dist/src/plugins/gateway/utils/heartbeat.d.ts.map +1 -0
- package/dist/src/plugins/gateway/utils/heartbeat.js +28 -0
- package/dist/src/plugins/gateway/utils/heartbeat.js.map +1 -0
- package/dist/src/plugins/gateway/utils/monitor.d.ts +35 -0
- package/dist/src/plugins/gateway/utils/monitor.d.ts.map +1 -0
- package/dist/src/plugins/gateway/utils/monitor.js +79 -0
- package/dist/src/plugins/gateway/utils/monitor.js.map +1 -0
- package/dist/src/plugins/gateway/utils/payload.d.ts +21 -0
- package/dist/src/plugins/gateway/utils/payload.d.ts.map +1 -0
- package/dist/src/plugins/gateway/utils/payload.js +46 -0
- package/dist/src/plugins/gateway/utils/payload.js.map +1 -0
- package/dist/src/plugins/gateway-forwarder/GatewayForwarderPlugin.d.ts +26 -0
- package/dist/src/plugins/gateway-forwarder/GatewayForwarderPlugin.d.ts.map +1 -0
- package/dist/src/plugins/gateway-forwarder/GatewayForwarderPlugin.js +74 -0
- package/dist/src/plugins/gateway-forwarder/GatewayForwarderPlugin.js.map +1 -0
- package/dist/src/plugins/gateway-forwarder/index.d.ts +3 -0
- package/dist/src/plugins/gateway-forwarder/index.d.ts.map +1 -0
- package/dist/src/plugins/gateway-forwarder/index.js +3 -0
- package/dist/src/plugins/gateway-forwarder/index.js.map +1 -0
- package/dist/src/plugins/linked-roles/LinkedRoles.d.ts +1 -0
- package/dist/src/plugins/linked-roles/LinkedRoles.d.ts.map +1 -1
- package/dist/src/plugins/linked-roles/LinkedRoles.js +1 -0
- package/dist/src/plugins/linked-roles/LinkedRoles.js.map +1 -1
- package/dist/src/plugins/sharding/ShardingPlugin.d.ts +42 -0
- package/dist/src/plugins/sharding/ShardingPlugin.d.ts.map +1 -0
- package/dist/src/plugins/sharding/ShardingPlugin.js +110 -0
- package/dist/src/plugins/sharding/ShardingPlugin.js.map +1 -0
- package/dist/src/plugins/sharding/index.d.ts +3 -0
- package/dist/src/plugins/sharding/index.d.ts.map +1 -0
- package/dist/src/plugins/sharding/index.js +3 -0
- package/dist/src/plugins/sharding/index.js.map +1 -0
- package/dist/src/structures/DmChannel.d.ts +1 -1
- package/dist/src/structures/DmChannel.d.ts.map +1 -1
- package/dist/src/structures/Guild.d.ts +2 -1
- package/dist/src/structures/Guild.d.ts.map +1 -1
- package/dist/src/structures/Guild.js +3 -1
- package/dist/src/structures/Guild.js.map +1 -1
- package/dist/src/structures/Message.d.ts +10 -12
- package/dist/src/structures/Message.d.ts.map +1 -1
- package/dist/src/structures/Message.js +57 -8
- package/dist/src/structures/Message.js.map +1 -1
- package/dist/src/structures/Role.d.ts +2 -1
- package/dist/src/structures/Role.d.ts.map +1 -1
- package/dist/src/structures/Role.js +2 -0
- package/dist/src/structures/Role.js.map +1 -1
- package/dist/src/structures/User.d.ts +3 -2
- package/dist/src/structures/User.d.ts.map +1 -1
- package/dist/src/structures/User.js +2 -0
- package/dist/src/structures/User.js.map +1 -1
- package/dist/src/types/index.d.ts +67 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/index.js +2 -0
- package/dist/src/types/index.js.map +1 -0
- package/dist/src/types/listeners.d.ts +539 -0
- package/dist/src/types/listeners.d.ts.map +1 -0
- package/dist/src/types/listeners.js +12 -0
- package/dist/src/types/listeners.js.map +1 -0
- package/dist/src/utils.d.ts +3 -21
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +17 -1
- package/dist/src/utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -7
- package/dist/src/adapters/cloudflare/index.d.ts +0 -16
- package/dist/src/adapters/cloudflare/index.d.ts.map +0 -1
- package/dist/src/adapters/cloudflare/index.js +0 -17
- package/dist/src/adapters/cloudflare/index.js.map +0 -1
- package/dist/src/adapters/next/index.d.ts +0 -14
- package/dist/src/adapters/next/index.d.ts.map +0 -1
- package/dist/src/adapters/next/index.js +0 -17
- package/dist/src/adapters/next/index.js.map +0 -1
- package/dist/src/adapters/shared.d.ts +0 -10
- package/dist/src/adapters/shared.d.ts.map +0 -1
- package/dist/src/adapters/shared.js +0 -2
- package/dist/src/adapters/shared.js.map +0 -1
- package/dist/src/classes/Button.d.ts.map +0 -1
- package/dist/src/classes/Button.js.map +0 -1
- package/dist/src/classes/ChannelSelectMenu.d.ts.map +0 -1
- package/dist/src/classes/ChannelSelectMenu.js.map +0 -1
- package/dist/src/classes/MentionableSelectMenu.d.ts.map +0 -1
- package/dist/src/classes/MentionableSelectMenu.js.map +0 -1
- package/dist/src/classes/RoleSelectMenu.d.ts.map +0 -1
- package/dist/src/classes/RoleSelectMenu.js.map +0 -1
- package/dist/src/classes/Row.d.ts +0 -25
- package/dist/src/classes/Row.d.ts.map +0 -1
- package/dist/src/classes/Row.js.map +0 -1
- package/dist/src/classes/StringSelectMenu.d.ts.map +0 -1
- package/dist/src/classes/StringSelectMenu.js.map +0 -1
- package/dist/src/classes/TextInput.d.ts.map +0 -1
- package/dist/src/classes/TextInput.js.map +0 -1
- package/dist/src/classes/UserSelectMenu.d.ts.map +0 -1
- package/dist/src/classes/UserSelectMenu.js.map +0 -1
- package/dist/src/createHandle.d.ts +0 -20
- package/dist/src/createHandle.d.ts.map +0 -1
- package/dist/src/createHandle.js +0 -57
- package/dist/src/createHandle.js.map +0 -1
- package/dist/src/factories/channelFactory.d.ts.map +0 -1
- package/dist/src/factories/channelFactory.js.map +0 -1
- package/dist/src/types/messagePayload.d.ts +0 -37
- package/dist/src/types/messagePayload.d.ts.map +0 -1
- package/dist/src/types/messagePayload.js +0 -2
- package/dist/src/types/messagePayload.js.map +0 -1
- package/dist/src/types.d.ts +0 -38
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/types.js +0 -2
- package/dist/src/types.js.map +0 -1
- /package/dist/src/{factories → functions}/channelFactory.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buape/carbon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"repository": "github:buape/carbon",
|
|
@@ -20,14 +20,15 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@types/node": "^22.
|
|
24
|
-
"discord-api-types": "0.
|
|
25
|
-
"@buape/carbon-request": "0.2.0"
|
|
23
|
+
"@types/node": "^22.14.1",
|
|
24
|
+
"discord-api-types": "0.38.1"
|
|
26
25
|
},
|
|
27
26
|
"optionalDependencies": {
|
|
28
|
-
"@cloudflare/workers-types": "4.
|
|
29
|
-
"@hono/node-server": "1.
|
|
30
|
-
"@types/bun": "1.
|
|
27
|
+
"@cloudflare/workers-types": "4.20250414.0",
|
|
28
|
+
"@hono/node-server": "1.14.1",
|
|
29
|
+
"@types/bun": "1.2.9",
|
|
30
|
+
"@types/ws": "8.18.1",
|
|
31
|
+
"ws": "8.18.1"
|
|
31
32
|
},
|
|
32
33
|
"files": [
|
|
33
34
|
"dist",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ExecutionContext } from "@cloudflare/workers-types";
|
|
2
|
-
import type { Handle } from "../../createHandle.js";
|
|
3
|
-
import type { PartialEnv } from "../shared.js";
|
|
4
|
-
export type Handler = (req: Request, env: PartialEnv, ctx: ExecutionContext) => Promise<Response>;
|
|
5
|
-
/**
|
|
6
|
-
* Creates a Cloudflare handler function using the provided handle and handler options
|
|
7
|
-
* @param handle - The handle function to process requests
|
|
8
|
-
* @returns The created handler function
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const handler = createHandler(handle, { ... })
|
|
12
|
-
* export default { fetch: handler }
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare function createHandler(handle: Handle): Handler;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/adapters/cloudflare/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C,MAAM,MAAM,OAAO,GAAG,CACrB,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,UAAU,EACf,GAAG,EAAE,gBAAgB,KACjB,OAAO,CAAC,QAAQ,CAAC,CAAA;AAEtB;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAKrD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a Cloudflare handler function using the provided handle and handler options
|
|
3
|
-
* @param handle - The handle function to process requests
|
|
4
|
-
* @returns The created handler function
|
|
5
|
-
* @example
|
|
6
|
-
* ```ts
|
|
7
|
-
* const handler = createHandler(handle, { ... })
|
|
8
|
-
* export default { fetch: handler }
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
export function createHandler(handle) {
|
|
12
|
-
return (req, env, ctx) => {
|
|
13
|
-
const fetch = handle(env);
|
|
14
|
-
return fetch(req, ctx);
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapters/cloudflare/index.ts"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAAC,MAAc;IAC3C,OAAO,CAAC,GAAY,EAAE,GAAe,EAAE,GAAqB,EAAE,EAAE;QAC/D,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAA;QACzB,OAAO,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;IACvB,CAAC,CAAA;AACF,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Handle } from "../../createHandle.js";
|
|
2
|
-
export type Handler = (req: Request) => Promise<Response>;
|
|
3
|
-
/**
|
|
4
|
-
* Creates a Next.js handler function using the provided handle and handler options
|
|
5
|
-
* @param handle - The handle function to process requests
|
|
6
|
-
* @returns The created handler function
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* const handler = createHandler(handle, { ... })
|
|
10
|
-
* export { handler as GET, handler as POST }
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
export declare function createHandler(handle: Handle): Handler;
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/adapters/next/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAEnD,MAAM,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;AAEzD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAKrD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a Next.js handler function using the provided handle and handler options
|
|
3
|
-
* @param handle - The handle function to process requests
|
|
4
|
-
* @returns The created handler function
|
|
5
|
-
* @example
|
|
6
|
-
* ```ts
|
|
7
|
-
* const handler = createHandler(handle, { ... })
|
|
8
|
-
* export { handler as GET, handler as POST }
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
export function createHandler(handle) {
|
|
12
|
-
return (req) => {
|
|
13
|
-
const fetch = handle(process.env);
|
|
14
|
-
return fetch(req);
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapters/next/index.ts"],"names":[],"mappings":"AAIA;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAAC,MAAc;IAC3C,OAAO,CAAC,GAAY,EAAE,EAAE;QACvB,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;QACjC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAA;IAClB,CAAC,CAAA;AACF,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type PartialEnv = Record<string, string | undefined>;
|
|
2
|
-
export interface SharedOptions {
|
|
3
|
-
}
|
|
4
|
-
export interface ServerOptions extends SharedOptions {
|
|
5
|
-
port: number;
|
|
6
|
-
hostname?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface HandlerOptions extends SharedOptions {
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/adapters/shared.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;AAG3D,MAAM,WAAW,aAAa;CAAG;AAEjC,MAAM,WAAW,aAAc,SAAQ,aAAa;IACnD,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,cAAe,SAAQ,aAAa;CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/adapters/shared.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/classes/Button.ts"],"names":[],"mappings":"AAAA,OAAO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KAAK;SACjB,CAAA;IACF,CAAC,CAAA;CACD;AAED,MAAM,OAAgB,aAAc,SAAQ,UAAU;IACrD,KAAK,GAAwB,WAAW,CAAC,OAAO,CAAA;IAOhD,SAAS,GAAG,GAAgC,EAAE;QAC7C,OAAO;YACN,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,aAAa,CAAC,MAAM;YAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM,EAAE,IAAI,CAAC,MAAM;SACnB,CAAA;IACF,CAAC,CAAA;CACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelSelectMenu.d.ts","sourceRoot":"","sources":["../../../src/classes/ChannelSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,yBAAyB,EAC9B,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAA;AAEhG,8BAAsB,iBAAkB,SAAQ,aAAa;IAC5D,IAAI,EAAE,aAAa,CAAC,aAAa,CAA8B;IAC/D,YAAY,CAAC,EAAE,yBAAyB,CAAC,eAAe,CAAC,CAAA;IACzD,aAAa,CAAC,EAAE,yBAAyB,CAAC,gBAAgB,CAAC,CAAA;IAC3D,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC;IAEtE,gBAAgB;;;;;CAOhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelSelectMenu.js","sourceRoot":"","sources":["../../../src/classes/ChannelSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAG7D,MAAM,OAAgB,iBAAkB,SAAQ,aAAa;IAC5D,IAAI,GAAgC,aAAa,CAAC,aAAa,CAAA;IAC/D,YAAY,CAA6C;IACzD,aAAa,CAA8C;IAG3D,gBAAgB;QACf,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,cAAc,EAAE,IAAI,CAAC,aAAa;YAClC,aAAa,EAAE,IAAI,CAAC,YAAY;SAChC,CAAA;IACF,CAAC;CACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MentionableSelectMenu.d.ts","sourceRoot":"","sources":["../../../src/classes/MentionableSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,6BAA6B,EAClC,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAA;AAExG,8BAAsB,qBAAsB,SAAQ,aAAa;IAChE,IAAI,EAAE,aAAa,CAAC,iBAAiB,CAAkC;IACvE,aAAa,CAAC,EAAE,6BAA6B,CAAC,gBAAgB,CAAC,CAAA;IAC/D,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,gCAAgC,GAAG,OAAO,CAAC,IAAI,CAAC;IAE1E,gBAAgB;;;;CAMhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MentionableSelectMenu.js","sourceRoot":"","sources":["../../../src/classes/MentionableSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAG7D,MAAM,OAAgB,qBAAsB,SAAQ,aAAa;IAChE,IAAI,GAAoC,aAAa,CAAC,iBAAiB,CAAA;IACvE,aAAa,CAAkD;IAG/D,gBAAgB;QACf,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,cAAc,EAAE,IAAI,CAAC,aAAa;SAClC,CAAA;IACF,CAAC;CACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RoleSelectMenu.d.ts","sourceRoot":"","sources":["../../../src/classes/RoleSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,sBAAsB,EAC3B,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AAE1F,8BAAsB,cAAe,SAAQ,aAAa;IACzD,IAAI,EAAE,aAAa,CAAC,UAAU,CAA2B;IACzD,aAAa,CAAC,EAAE,sBAAsB,CAAC,gBAAgB,CAAC,CAAA;IACxD,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAEnE,gBAAgB;;;;CAMhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RoleSelectMenu.js","sourceRoot":"","sources":["../../../src/classes/RoleSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAG7D,MAAM,OAAgB,cAAe,SAAQ,aAAa;IACzD,IAAI,GAA6B,aAAa,CAAC,UAAU,CAAA;IACzD,aAAa,CAA2C;IAGxD,gBAAgB;QACf,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,cAAc,EAAE,IAAI,CAAC,aAAa;SAClC,CAAA;IACF,CAAC;CACD"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { APIActionRowComponent, APIActionRowComponentTypes } from "discord-api-types/v10";
|
|
2
|
-
import type { BaseComponent } from "../abstracts/BaseComponent.js";
|
|
3
|
-
export declare class Row<T extends BaseComponent = BaseComponent> {
|
|
4
|
-
/**
|
|
5
|
-
* The components in the action row
|
|
6
|
-
*/
|
|
7
|
-
components: T[];
|
|
8
|
-
constructor(components?: T[]);
|
|
9
|
-
/**
|
|
10
|
-
* Add a component to the action row
|
|
11
|
-
* @param component The component to add
|
|
12
|
-
*/
|
|
13
|
-
addComponent(component: T): void;
|
|
14
|
-
/**
|
|
15
|
-
* Remove a component from the action row
|
|
16
|
-
* @param component The component to remove
|
|
17
|
-
*/
|
|
18
|
-
removeComponent(component: T): void;
|
|
19
|
-
/**
|
|
20
|
-
* Remove all components from the action row
|
|
21
|
-
*/
|
|
22
|
-
removeAllComponents(): void;
|
|
23
|
-
serialize: () => APIActionRowComponent<APIActionRowComponentTypes>;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=Row.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../src/classes/Row.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,qBAAqB,EACrB,0BAA0B,EAC1B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAElE,qBAAa,GAAG,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa;IACvD;;OAEG;IACH,UAAU,EAAE,CAAC,EAAE,CAAK;gBAER,UAAU,CAAC,EAAE,CAAC,EAAE;IAI5B;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,CAAC;IAIzB;;;OAGG;IACH,eAAe,CAAC,SAAS,EAAE,CAAC;IAM5B;;OAEG;IACH,mBAAmB;IAInB,SAAS,QAAO,qBAAqB,CAAC,0BAA0B,CAAC,CAOhE;CACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Row.js","sourceRoot":"","sources":["../../../src/classes/Row.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,GAAG;IACf;;OAEG;IACH,UAAU,GAAQ,EAAE,CAAA;IAEpB,YAAY,UAAgB;QAC3B,IAAI,UAAU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AC;IAErE,gBAAgB;;;;CAMhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StringSelectMenu.js","sourceRoot":"","sources":["../../../src/classes/StringSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAG7D,MAAM,OAAgB,gBAAiB,SAAQ,aAAa;IAC3D,IAAI,GAA+B,aAAa,CAAC,YAAY,CAAA;IAI7D,gBAAgB;QACf,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;SACrB,CAAA;IACF,CAAC;CACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/classes/TextInput.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,qBAAqB,EAC1B,aAAa,EACb,cAAc,EACd,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAE7D,8BAAsB,SAAU,SAAQ,aAAa;IACpD,IAAI,gBAA0B;IAE9B;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IAEtB;;;OAGG;IACH,KAAK,EAAE,cAAc,CAAuB;IAE5C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,SAAS,QAAO,qBAAqB,CAYpC;CACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.js","sourceRoot":"","sources":["../../../src/classes/TextInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,cAAc,EACd,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAE7D,MAAM,OAAgB,SAAU,SAAQ,aAAa;IACpD,IAAI,GAAG,aAAa,CAAC,SAAS,CAAA;IAY9B;;;OAGG;IACH,KAAK,GAAmB,cAAc,CAAC,KAAK,CAAA;IAE5C;;OAEG;IACH,SAAS,CAAS;IAElB;;OAEG;IACH,SAAS,CAAS;IAElB;;OAEG;IACH,QAAQ,CAAU;IAElB;;OAEG;IACH,KAAK,CAAS;IAEd;;OAEG;IACH,WAAW,CAAS;IAEpB,SAAS,GAAG,GAA0B,EAAE;QACvC,OAAO;YACN,IAAI,EAAE,aAAa,CAAC,SAAS;YAC7B,SAAS,EAAE,IAAI,CAAC,QAAQ;YACxB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,UAAU,EAAE,IAAI,CAAC,SAAS;YAC1B,UAAU,EAAE,IAAI,CAAC,SAAS;YAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;SAC7B,CAAA;IACF,CAAC,CAAA;CACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserSelectMenu.d.ts","sourceRoot":"","sources":["../../../src/classes/UserSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,sBAAsB,EAC3B,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AAE1F,8BAAsB,cAAe,SAAQ,aAAa;IACzD,IAAI,EAAE,aAAa,CAAC,UAAU,CAA2B;IACzD,aAAa,CAAC,EAAE,sBAAsB,CAAC,gBAAgB,CAAC,CAAA;IACxD,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC;IAEnE,gBAAgB;;;;CAMhB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserSelectMenu.js","sourceRoot":"","sources":["../../../src/classes/UserSelectMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,aAAa,EACb,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAG7D,MAAM,OAAgB,cAAe,SAAQ,aAAa;IACzD,IAAI,GAA6B,aAAa,CAAC,UAAU,CAAA;IACzD,aAAa,CAA2C;IAGxD,gBAAgB;QACf,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,cAAc,EAAE,IAAI,CAAC,aAAa;SAClC,CAAA;IACF,CAAC;CACD"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Context, Plugin } from "./abstracts/Plugin.js";
|
|
2
|
-
import type { PartialEnv } from "./adapters/shared.js";
|
|
3
|
-
import type { Client } from "./classes/Client.js";
|
|
4
|
-
/**
|
|
5
|
-
* Creates a handle function that can be used to handle requests
|
|
6
|
-
* @param factory The factory function that creates the plugins
|
|
7
|
-
* @returns The handle function
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const handle = createHandle((env) => {
|
|
11
|
-
* const client = new Client({ ... }, [ ... ])
|
|
12
|
-
* const linkedRoles = new LinkedRoles(client, { ... })
|
|
13
|
-
* return [client, linkedRoles]
|
|
14
|
-
* })
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export declare function createHandle<Env extends PartialEnv = PartialEnv>(factory: (env: Env) => [Client, ...Plugin[]]): Handle<Env>;
|
|
18
|
-
export type Fetch = (req: Request, ctx?: Context) => Promise<Response>;
|
|
19
|
-
export type Handle<Env extends PartialEnv = PartialEnv> = (env: Env) => Fetch;
|
|
20
|
-
//# sourceMappingURL=createHandle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createHandle.d.ts","sourceRoot":"","sources":["../../src/createHandle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAS,MAAM,uBAAuB,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,GAAG,SAAS,UAAU,GAAG,UAAU,EAC/D,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,GAC1C,MAAM,CAAC,GAAG,CAAC,CAsCb;AAUD,MAAM,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;AACtE,MAAM,MAAM,MAAM,CAAC,GAAG,SAAS,UAAU,GAAG,UAAU,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,KAAK,CAAA"}
|
package/dist/src/createHandle.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a handle function that can be used to handle requests
|
|
3
|
-
* @param factory The factory function that creates the plugins
|
|
4
|
-
* @returns The handle function
|
|
5
|
-
* @example
|
|
6
|
-
* ```ts
|
|
7
|
-
* const handle = createHandle((env) => {
|
|
8
|
-
* const client = new Client({ ... }, [ ... ])
|
|
9
|
-
* const linkedRoles = new LinkedRoles(client, { ... })
|
|
10
|
-
* return [client, linkedRoles]
|
|
11
|
-
* })
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
export function createHandle(factory) {
|
|
15
|
-
return (env) => {
|
|
16
|
-
const [client, ...plugins] = factory(env);
|
|
17
|
-
const routes = [client, ...plugins].flatMap((plugin) => plugin.routes);
|
|
18
|
-
return async (req, ctx) => {
|
|
19
|
-
const method = req.method;
|
|
20
|
-
const url = new URL(req.url, "http://localhost");
|
|
21
|
-
const pathname = //
|
|
22
|
-
resolveRequestPathname(new URL(client.options.baseUrl), url);
|
|
23
|
-
if (!pathname)
|
|
24
|
-
return new Response("Not Found", { status: 404 });
|
|
25
|
-
const matchedRoutesByPath = //
|
|
26
|
-
routes.filter((r) => r.path === pathname && !r.disabled);
|
|
27
|
-
const matchedRoutesByMethod = //
|
|
28
|
-
matchedRoutesByPath.filter((r) => r.method === method);
|
|
29
|
-
if (matchedRoutesByMethod.length === 0) {
|
|
30
|
-
if (matchedRoutesByPath.length > 0)
|
|
31
|
-
return new Response("Method Not Allowed", { status: 405 });
|
|
32
|
-
return new Response("Not Found", { status: 404 });
|
|
33
|
-
}
|
|
34
|
-
// Use the last matched route by method to allow for overriding
|
|
35
|
-
const route = matchedRoutesByMethod.at(-1);
|
|
36
|
-
const passedSecret = url.searchParams.get("secret");
|
|
37
|
-
if (route.protected && client.options.deploySecret !== passedSecret)
|
|
38
|
-
return new Response("Unauthorized", { status: 401 });
|
|
39
|
-
try {
|
|
40
|
-
return await route.handler(req, ctx);
|
|
41
|
-
}
|
|
42
|
-
catch (error) {
|
|
43
|
-
console.error(error);
|
|
44
|
-
return new Response("Internal Server Error", { status: 500 });
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function resolveRequestPathname(baseUrl, reqUrl) {
|
|
50
|
-
// Need to use pathname only due to host name being different in Cloudflare Tunnel
|
|
51
|
-
const basePathname = baseUrl.pathname.replace(/\/$/, "");
|
|
52
|
-
const reqPathname = reqUrl.pathname.replace(/\/$/, "");
|
|
53
|
-
if (!reqPathname.startsWith(basePathname))
|
|
54
|
-
return null;
|
|
55
|
-
return reqPathname.slice(basePathname.length);
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=createHandle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createHandle.js","sourceRoot":"","sources":["../../src/createHandle.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,YAAY,CAC3B,OAA4C;IAE5C,OAAO,CAAC,GAAQ,EAAE,EAAE;QACnB,MAAM,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;QACzC,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;QAEtE,OAAO,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,EAAE;YAC5C,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAA;YACzB,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAA;YAChD,MAAM,QAAQ,GAAG,EAAE;aAClB,sBAAsB,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,CAAA;YAC7D,IAAI,CAAC,QAAQ;gBAAE,OAAO,IAAI,QAAQ,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAA;YAEhE,MAAM,mBAAmB,GAAG,EAAE;aAC7B,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,QAAQ,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAA;YACzD,MAAM,qBAAqB,GAAG,EAAE;aAC/B,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC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D,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,OAAO,IAAI,CAAA;IACtD,OAAO,WAAW,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA;AAC9C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"channelFactory.d.ts","sourceRoot":"","sources":["../../../src/factories/channelFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,uBAAuB,CAAA;AACpE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAA;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AACtE,OAAO,EACN,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,2CAA2C,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AAExE,eAAO,MAAM,cAAc,WAAY,MAAM,eAAe,UAAU,kUA2BrE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"channelFactory.js","sourceRoot":"","sources":["../../../src/factories/channelFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAA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OAAO,IAAI,iBAAiB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;QAClD,KAAK,WAAW,CAAC,UAAU;YAC1B,OAAO,IAAI,iBAAiB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;QAClD,KAAK,WAAW,CAAC,UAAU;YAC1B,OAAO,IAAI,iBAAiB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;QAClD;YACC,OAAO,IAAI,CAAA;IACb,CAAC;AACF,CAAC,CAAA"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { Embed } from "./classes/Embed.js";
|
|
2
|
-
import type { Row } from "./classes/Row.js";
|
|
3
|
-
/**
|
|
4
|
-
* The data that is sent to Discord when sending a message.
|
|
5
|
-
* If you pass just a string, it will be treated as the content of the message.
|
|
6
|
-
*/
|
|
7
|
-
export type MessagePayload = {
|
|
8
|
-
/**
|
|
9
|
-
* The content of the message
|
|
10
|
-
*/
|
|
11
|
-
content?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The embeds of the message
|
|
14
|
-
*/
|
|
15
|
-
embeds?: Embed[];
|
|
16
|
-
/**
|
|
17
|
-
* The components to send in the message, listed in rows
|
|
18
|
-
*/
|
|
19
|
-
components?: Row[];
|
|
20
|
-
/**
|
|
21
|
-
* The settings for which mentions are allowed in the message
|
|
22
|
-
*/
|
|
23
|
-
allowedMentions?: {
|
|
24
|
-
parse?: ("roles" | "users" | "everyone")[];
|
|
25
|
-
roles?: string[];
|
|
26
|
-
users?: string[];
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* The flags for the message
|
|
30
|
-
*/
|
|
31
|
-
flags?: number;
|
|
32
|
-
/**
|
|
33
|
-
* Whether the message should be TTS
|
|
34
|
-
*/
|
|
35
|
-
tts?: boolean;
|
|
36
|
-
} | string;
|
|
37
|
-
//# sourceMappingURL=messagePayload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messagePayload.d.ts","sourceRoot":"","sources":["../../../src/types/messagePayload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C;;;GAGG;AACH,MAAM,MAAM,cAAc,GACvB;IACA;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,GAAG,EAAE,CAAA;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE;QACjB,KAAK,CAAC,EAAE,CAAC,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC,EAAE,CAAA;QAC1C,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;QAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;KAChB,CAAA;IACD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;CACZ,GACD,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messagePayload.js","sourceRoot":"","sources":["../../../src/types/messagePayload.ts"],"names":[],"mappings":""}
|
package/dist/src/types.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { Embed } from "./classes/Embed.js";
|
|
2
|
-
import type { Row } from "./classes/Row.js";
|
|
3
|
-
/**
|
|
4
|
-
* The data that is sent to Discord when sending a message.
|
|
5
|
-
* If you pass just a string, it will be treated as the content of the message.
|
|
6
|
-
*/
|
|
7
|
-
export type MessagePayload = {
|
|
8
|
-
/**
|
|
9
|
-
* The content of the message
|
|
10
|
-
*/
|
|
11
|
-
content?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The embeds of the message
|
|
14
|
-
*/
|
|
15
|
-
embeds?: Embed[];
|
|
16
|
-
/**
|
|
17
|
-
* The components to send in the message, listed in rows
|
|
18
|
-
*/
|
|
19
|
-
components?: Row[];
|
|
20
|
-
/**
|
|
21
|
-
* The settings for which mentions are allowed in the message
|
|
22
|
-
*/
|
|
23
|
-
allowedMentions?: {
|
|
24
|
-
parse?: ("roles" | "users" | "everyone")[];
|
|
25
|
-
roles?: string[];
|
|
26
|
-
users?: string[];
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* The flags for the message
|
|
30
|
-
*/
|
|
31
|
-
flags?: number;
|
|
32
|
-
/**
|
|
33
|
-
* Whether the message should be TTS
|
|
34
|
-
*/
|
|
35
|
-
tts?: boolean;
|
|
36
|
-
} | string;
|
|
37
|
-
export type ArrayOrSingle<T> = T | T[];
|
|
38
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/src/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C;;;GAGG;AACH,MAAM,MAAM,cAAc,GACvB;IACA;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,GAAG,EAAE,CAAA;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE;QACjB,KAAK,CAAC,EAAE,CAAC,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC,EAAE,CAAA;QAC1C,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;QAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;KAChB,CAAA;IACD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;CACZ,GACD,MAAM,CAAA;AAET,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAA"}
|
package/dist/src/types.js
DELETED
package/dist/src/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
|
|
File without changes
|