@neontechspace/fluxerly 1000.0.0-nightly.12
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/CHANGELOG.md +833 -0
- package/LICENSE +201 -0
- package/README.md +129 -0
- package/agents/AGENTS.md +195 -0
- package/dist/api/default/application.d.ts +34 -0
- package/dist/api/default/application.d.ts.map +1 -0
- package/dist/api/default/application.js +2 -0
- package/dist/api/default/application.js.map +1 -0
- package/dist/api/default/attachments.d.ts +89 -0
- package/dist/api/default/attachments.d.ts.map +1 -0
- package/dist/api/default/attachments.js +2 -0
- package/dist/api/default/attachments.js.map +1 -0
- package/dist/api/default/audit-logs.d.ts +48 -0
- package/dist/api/default/audit-logs.d.ts.map +1 -0
- package/dist/api/default/audit-logs.js +2 -0
- package/dist/api/default/audit-logs.js.map +1 -0
- package/dist/api/default/bot.d.ts +200 -0
- package/dist/api/default/bot.d.ts.map +1 -0
- package/dist/api/default/bot.js +309 -0
- package/dist/api/default/bot.js.map +1 -0
- package/dist/api/default/cache.d.ts +105 -0
- package/dist/api/default/cache.d.ts.map +1 -0
- package/dist/api/default/cache.js +2 -0
- package/dist/api/default/cache.js.map +1 -0
- package/dist/api/default/channels.d.ts +249 -0
- package/dist/api/default/channels.d.ts.map +1 -0
- package/dist/api/default/channels.js +2 -0
- package/dist/api/default/channels.js.map +1 -0
- package/dist/api/default/client.d.ts +528 -0
- package/dist/api/default/client.d.ts.map +1 -0
- package/dist/api/default/client.js +301 -0
- package/dist/api/default/client.js.map +1 -0
- package/dist/api/default/collectors.d.ts +76 -0
- package/dist/api/default/collectors.d.ts.map +1 -0
- package/dist/api/default/collectors.js +2 -0
- package/dist/api/default/collectors.js.map +1 -0
- package/dist/api/default/commands.d.ts +91 -0
- package/dist/api/default/commands.d.ts.map +1 -0
- package/dist/api/default/commands.js +92 -0
- package/dist/api/default/commands.js.map +1 -0
- package/dist/api/default/direct-messages.d.ts +111 -0
- package/dist/api/default/direct-messages.d.ts.map +1 -0
- package/dist/api/default/direct-messages.js +2 -0
- package/dist/api/default/direct-messages.js.map +1 -0
- package/dist/api/default/discovery.d.ts +76 -0
- package/dist/api/default/discovery.d.ts.map +1 -0
- package/dist/api/default/discovery.js +2 -0
- package/dist/api/default/discovery.js.map +1 -0
- package/dist/api/default/emojis.d.ts +88 -0
- package/dist/api/default/emojis.d.ts.map +1 -0
- package/dist/api/default/emojis.js +2 -0
- package/dist/api/default/emojis.js.map +1 -0
- package/dist/api/default/events.d.ts +127 -0
- package/dist/api/default/events.d.ts.map +1 -0
- package/dist/api/default/events.js +2 -0
- package/dist/api/default/events.js.map +1 -0
- package/dist/api/default/gateway.d.ts +62 -0
- package/dist/api/default/gateway.d.ts.map +1 -0
- package/dist/api/default/gateway.js +2 -0
- package/dist/api/default/gateway.js.map +1 -0
- package/dist/api/default/guards.d.ts +87 -0
- package/dist/api/default/guards.d.ts.map +1 -0
- package/dist/api/default/guards.js +78 -0
- package/dist/api/default/guards.js.map +1 -0
- package/dist/api/default/guilds.d.ts +230 -0
- package/dist/api/default/guilds.d.ts.map +1 -0
- package/dist/api/default/guilds.js +2 -0
- package/dist/api/default/guilds.js.map +1 -0
- package/dist/api/default/helpers.d.ts +79 -0
- package/dist/api/default/helpers.d.ts.map +1 -0
- package/dist/api/default/helpers.js +79 -0
- package/dist/api/default/helpers.js.map +1 -0
- package/dist/api/default/instance.d.ts +47 -0
- package/dist/api/default/instance.d.ts.map +1 -0
- package/dist/api/default/instance.js +2 -0
- package/dist/api/default/instance.js.map +1 -0
- package/dist/api/default/invites.d.ts +57 -0
- package/dist/api/default/invites.d.ts.map +1 -0
- package/dist/api/default/invites.js +2 -0
- package/dist/api/default/invites.js.map +1 -0
- package/dist/api/default/logging.d.ts +37 -0
- package/dist/api/default/logging.d.ts.map +1 -0
- package/dist/api/default/logging.js +2 -0
- package/dist/api/default/logging.js.map +1 -0
- package/dist/api/default/members.d.ts +442 -0
- package/dist/api/default/members.d.ts.map +1 -0
- package/dist/api/default/members.js +2 -0
- package/dist/api/default/members.js.map +1 -0
- package/dist/api/default/messages.d.ts +898 -0
- package/dist/api/default/messages.d.ts.map +1 -0
- package/dist/api/default/messages.js +2 -0
- package/dist/api/default/messages.js.map +1 -0
- package/dist/api/default/oauth.d.ts +168 -0
- package/dist/api/default/oauth.d.ts.map +1 -0
- package/dist/api/default/oauth.js +84 -0
- package/dist/api/default/oauth.js.map +1 -0
- package/dist/api/default/permissions.d.ts +44 -0
- package/dist/api/default/permissions.d.ts.map +1 -0
- package/dist/api/default/permissions.js +2 -0
- package/dist/api/default/permissions.js.map +1 -0
- package/dist/api/default/presence.d.ts +88 -0
- package/dist/api/default/presence.d.ts.map +1 -0
- package/dist/api/default/presence.js +2 -0
- package/dist/api/default/presence.js.map +1 -0
- package/dist/api/default/rest.d.ts +28 -0
- package/dist/api/default/rest.d.ts.map +1 -0
- package/dist/api/default/rest.js +2 -0
- package/dist/api/default/rest.js.map +1 -0
- package/dist/api/default/results.d.ts +31 -0
- package/dist/api/default/results.d.ts.map +1 -0
- package/dist/api/default/results.js +14 -0
- package/dist/api/default/results.js.map +1 -0
- package/dist/api/default/roles.d.ts +119 -0
- package/dist/api/default/roles.d.ts.map +1 -0
- package/dist/api/default/roles.js +2 -0
- package/dist/api/default/roles.js.map +1 -0
- package/dist/api/default/stickers.d.ts +92 -0
- package/dist/api/default/stickers.d.ts.map +1 -0
- package/dist/api/default/stickers.js +2 -0
- package/dist/api/default/stickers.js.map +1 -0
- package/dist/api/default/supervisor.d.ts +51 -0
- package/dist/api/default/supervisor.d.ts.map +1 -0
- package/dist/api/default/supervisor.js +53 -0
- package/dist/api/default/supervisor.js.map +1 -0
- package/dist/api/default/threads.d.ts +158 -0
- package/dist/api/default/threads.d.ts.map +1 -0
- package/dist/api/default/threads.js +2 -0
- package/dist/api/default/threads.js.map +1 -0
- package/dist/api/default/users.d.ts +73 -0
- package/dist/api/default/users.d.ts.map +1 -0
- package/dist/api/default/users.js +2 -0
- package/dist/api/default/users.js.map +1 -0
- package/dist/api/default/webhook-client.d.ts +149 -0
- package/dist/api/default/webhook-client.d.ts.map +1 -0
- package/dist/api/default/webhook-client.js +69 -0
- package/dist/api/default/webhook-client.js.map +1 -0
- package/dist/api/default/webhooks.d.ts +62 -0
- package/dist/api/default/webhooks.d.ts.map +1 -0
- package/dist/api/default/webhooks.js +2 -0
- package/dist/api/default/webhooks.js.map +1 -0
- package/dist/api/effect/application.d.ts +29 -0
- package/dist/api/effect/application.d.ts.map +1 -0
- package/dist/api/effect/application.js +2 -0
- package/dist/api/effect/application.js.map +1 -0
- package/dist/api/effect/attachments.d.ts +84 -0
- package/dist/api/effect/attachments.d.ts.map +1 -0
- package/dist/api/effect/attachments.js +2 -0
- package/dist/api/effect/attachments.js.map +1 -0
- package/dist/api/effect/audit-logs.d.ts +42 -0
- package/dist/api/effect/audit-logs.d.ts.map +1 -0
- package/dist/api/effect/audit-logs.js +2 -0
- package/dist/api/effect/audit-logs.js.map +1 -0
- package/dist/api/effect/bot.d.ts +233 -0
- package/dist/api/effect/bot.d.ts.map +1 -0
- package/dist/api/effect/bot.js +230 -0
- package/dist/api/effect/bot.js.map +1 -0
- package/dist/api/effect/cache.d.ts +103 -0
- package/dist/api/effect/cache.d.ts.map +1 -0
- package/dist/api/effect/cache.js +2 -0
- package/dist/api/effect/cache.js.map +1 -0
- package/dist/api/effect/channels.d.ts +231 -0
- package/dist/api/effect/channels.d.ts.map +1 -0
- package/dist/api/effect/channels.js +2 -0
- package/dist/api/effect/channels.js.map +1 -0
- package/dist/api/effect/client.d.ts +622 -0
- package/dist/api/effect/client.d.ts.map +1 -0
- package/dist/api/effect/client.js +191 -0
- package/dist/api/effect/client.js.map +1 -0
- package/dist/api/effect/collectors.d.ts +90 -0
- package/dist/api/effect/collectors.d.ts.map +1 -0
- package/dist/api/effect/collectors.js +2 -0
- package/dist/api/effect/collectors.js.map +1 -0
- package/dist/api/effect/commands.d.ts +86 -0
- package/dist/api/effect/commands.d.ts.map +1 -0
- package/dist/api/effect/commands.js +87 -0
- package/dist/api/effect/commands.js.map +1 -0
- package/dist/api/effect/direct-messages.d.ts +102 -0
- package/dist/api/effect/direct-messages.d.ts.map +1 -0
- package/dist/api/effect/direct-messages.js +2 -0
- package/dist/api/effect/direct-messages.js.map +1 -0
- package/dist/api/effect/discovery.d.ts +68 -0
- package/dist/api/effect/discovery.d.ts.map +1 -0
- package/dist/api/effect/discovery.js +2 -0
- package/dist/api/effect/discovery.js.map +1 -0
- package/dist/api/effect/emojis.d.ts +77 -0
- package/dist/api/effect/emojis.d.ts.map +1 -0
- package/dist/api/effect/emojis.js +2 -0
- package/dist/api/effect/emojis.js.map +1 -0
- package/dist/api/effect/events.d.ts +78 -0
- package/dist/api/effect/events.d.ts.map +1 -0
- package/dist/api/effect/events.js +12 -0
- package/dist/api/effect/events.js.map +1 -0
- package/dist/api/effect/failures.d.ts +14 -0
- package/dist/api/effect/failures.d.ts.map +1 -0
- package/dist/api/effect/failures.js +2 -0
- package/dist/api/effect/failures.js.map +1 -0
- package/dist/api/effect/gateway.d.ts +63 -0
- package/dist/api/effect/gateway.d.ts.map +1 -0
- package/dist/api/effect/gateway.js +2 -0
- package/dist/api/effect/gateway.js.map +1 -0
- package/dist/api/effect/guards.d.ts +91 -0
- package/dist/api/effect/guards.d.ts.map +1 -0
- package/dist/api/effect/guards.js +94 -0
- package/dist/api/effect/guards.js.map +1 -0
- package/dist/api/effect/guilds.d.ts +221 -0
- package/dist/api/effect/guilds.d.ts.map +1 -0
- package/dist/api/effect/guilds.js +2 -0
- package/dist/api/effect/guilds.js.map +1 -0
- package/dist/api/effect/helpers.d.ts +300 -0
- package/dist/api/effect/helpers.d.ts.map +1 -0
- package/dist/api/effect/helpers.js +156 -0
- package/dist/api/effect/helpers.js.map +1 -0
- package/dist/api/effect/hierarchy.d.ts +26 -0
- package/dist/api/effect/hierarchy.d.ts.map +1 -0
- package/dist/api/effect/hierarchy.js +26 -0
- package/dist/api/effect/hierarchy.js.map +1 -0
- package/dist/api/effect/instance.d.ts +46 -0
- package/dist/api/effect/instance.d.ts.map +1 -0
- package/dist/api/effect/instance.js +8 -0
- package/dist/api/effect/instance.js.map +1 -0
- package/dist/api/effect/invites.d.ts +49 -0
- package/dist/api/effect/invites.d.ts.map +1 -0
- package/dist/api/effect/invites.js +2 -0
- package/dist/api/effect/invites.js.map +1 -0
- package/dist/api/effect/logging.d.ts +37 -0
- package/dist/api/effect/logging.d.ts.map +1 -0
- package/dist/api/effect/logging.js +2 -0
- package/dist/api/effect/logging.js.map +1 -0
- package/dist/api/effect/members.d.ts +433 -0
- package/dist/api/effect/members.d.ts.map +1 -0
- package/dist/api/effect/members.js +2 -0
- package/dist/api/effect/members.js.map +1 -0
- package/dist/api/effect/messages.d.ts +877 -0
- package/dist/api/effect/messages.d.ts.map +1 -0
- package/dist/api/effect/messages.js +2 -0
- package/dist/api/effect/messages.js.map +1 -0
- package/dist/api/effect/oauth.d.ts +148 -0
- package/dist/api/effect/oauth.d.ts.map +1 -0
- package/dist/api/effect/oauth.js +51 -0
- package/dist/api/effect/oauth.js.map +1 -0
- package/dist/api/effect/permissions.d.ts +41 -0
- package/dist/api/effect/permissions.d.ts.map +1 -0
- package/dist/api/effect/permissions.js +2 -0
- package/dist/api/effect/permissions.js.map +1 -0
- package/dist/api/effect/presence.d.ts +83 -0
- package/dist/api/effect/presence.d.ts.map +1 -0
- package/dist/api/effect/presence.js +2 -0
- package/dist/api/effect/presence.js.map +1 -0
- package/dist/api/effect/rest.d.ts +27 -0
- package/dist/api/effect/rest.d.ts.map +1 -0
- package/dist/api/effect/rest.js +2 -0
- package/dist/api/effect/rest.js.map +1 -0
- package/dist/api/effect/roles.d.ts +104 -0
- package/dist/api/effect/roles.d.ts.map +1 -0
- package/dist/api/effect/roles.js +2 -0
- package/dist/api/effect/roles.js.map +1 -0
- package/dist/api/effect/service.d.ts +76 -0
- package/dist/api/effect/service.d.ts.map +1 -0
- package/dist/api/effect/service.js +79 -0
- package/dist/api/effect/service.js.map +1 -0
- package/dist/api/effect/stickers.d.ts +81 -0
- package/dist/api/effect/stickers.d.ts.map +1 -0
- package/dist/api/effect/stickers.js +2 -0
- package/dist/api/effect/stickers.js.map +1 -0
- package/dist/api/effect/supervisor.d.ts +56 -0
- package/dist/api/effect/supervisor.d.ts.map +1 -0
- package/dist/api/effect/supervisor.js +58 -0
- package/dist/api/effect/supervisor.js.map +1 -0
- package/dist/api/effect/threads.d.ts +154 -0
- package/dist/api/effect/threads.d.ts.map +1 -0
- package/dist/api/effect/threads.js +2 -0
- package/dist/api/effect/threads.js.map +1 -0
- package/dist/api/effect/users.d.ts +62 -0
- package/dist/api/effect/users.d.ts.map +1 -0
- package/dist/api/effect/users.js +2 -0
- package/dist/api/effect/users.js.map +1 -0
- package/dist/api/effect/webhook-client.d.ts +140 -0
- package/dist/api/effect/webhook-client.d.ts.map +1 -0
- package/dist/api/effect/webhook-client.js +50 -0
- package/dist/api/effect/webhook-client.js.map +1 -0
- package/dist/api/effect/webhooks.d.ts +54 -0
- package/dist/api/effect/webhooks.d.ts.map +1 -0
- package/dist/api/effect/webhooks.js +2 -0
- package/dist/api/effect/webhooks.js.map +1 -0
- package/dist/api-errors.d.ts +609 -0
- package/dist/api-errors.d.ts.map +1 -0
- package/dist/api-errors.js +589 -0
- package/dist/api-errors.js.map +1 -0
- package/dist/application.d.ts +85 -0
- package/dist/application.d.ts.map +1 -0
- package/dist/application.js +44 -0
- package/dist/application.js.map +1 -0
- package/dist/assets.d.ts +197 -0
- package/dist/assets.d.ts.map +1 -0
- package/dist/assets.js +419 -0
- package/dist/assets.js.map +1 -0
- package/dist/attachments.d.ts +400 -0
- package/dist/attachments.d.ts.map +1 -0
- package/dist/attachments.js +88 -0
- package/dist/attachments.js.map +1 -0
- package/dist/audit-logs.d.ts +292 -0
- package/dist/audit-logs.d.ts.map +1 -0
- package/dist/audit-logs.js +46 -0
- package/dist/audit-logs.js.map +1 -0
- package/dist/bot-runner.d.ts +69 -0
- package/dist/bot-runner.d.ts.map +1 -0
- package/dist/bot-runner.js +41 -0
- package/dist/bot-runner.js.map +1 -0
- package/dist/builders.d.ts +153 -0
- package/dist/builders.d.ts.map +1 -0
- package/dist/builders.js +326 -0
- package/dist/builders.js.map +1 -0
- package/dist/cache.d.ts +187 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cache.js +2 -0
- package/dist/cache.js.map +1 -0
- package/dist/channels.d.ts +903 -0
- package/dist/channels.d.ts.map +1 -0
- package/dist/channels.js +125 -0
- package/dist/channels.js.map +1 -0
- package/dist/cli.d.ts +9 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +65 -0
- package/dist/cli.js.map +1 -0
- package/dist/client.d.ts +645 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -0
- package/dist/collectors.d.ts +205 -0
- package/dist/collectors.d.ts.map +1 -0
- package/dist/collectors.js +71 -0
- package/dist/collectors.js.map +1 -0
- package/dist/colors.d.ts +55 -0
- package/dist/colors.d.ts.map +1 -0
- package/dist/colors.js +40 -0
- package/dist/colors.js.map +1 -0
- package/dist/command-arguments.d.ts +353 -0
- package/dist/command-arguments.d.ts.map +1 -0
- package/dist/command-arguments.js +2 -0
- package/dist/command-arguments.js.map +1 -0
- package/dist/command-help.d.ts +54 -0
- package/dist/command-help.d.ts.map +1 -0
- package/dist/command-help.js +2 -0
- package/dist/command-help.js.map +1 -0
- package/dist/commands.d.ts +328 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/commands.js +62 -0
- package/dist/commands.js.map +1 -0
- package/dist/counts.d.ts +124 -0
- package/dist/counts.d.ts.map +1 -0
- package/dist/counts.js +52 -0
- package/dist/counts.js.map +1 -0
- package/dist/default-commands.d.ts +400 -0
- package/dist/default-commands.d.ts.map +1 -0
- package/dist/default-commands.js +488 -0
- package/dist/default-commands.js.map +1 -0
- package/dist/default-supervisor.d.ts +111 -0
- package/dist/default-supervisor.d.ts.map +1 -0
- package/dist/default-supervisor.js +277 -0
- package/dist/default-supervisor.js.map +1 -0
- package/dist/discovery.d.ts +223 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +18 -0
- package/dist/discovery.js.map +1 -0
- package/dist/effect-testing.d.ts +388 -0
- package/dist/effect-testing.d.ts.map +1 -0
- package/dist/effect-testing.js +261 -0
- package/dist/effect-testing.js.map +1 -0
- package/dist/effect.d.ts +220 -0
- package/dist/effect.d.ts.map +1 -0
- package/dist/effect.js +101 -0
- package/dist/effect.js.map +1 -0
- package/dist/embeds.d.ts +243 -0
- package/dist/embeds.d.ts.map +1 -0
- package/dist/embeds.js +2 -0
- package/dist/embeds.js.map +1 -0
- package/dist/error-tools.d.ts +101 -0
- package/dist/error-tools.d.ts.map +1 -0
- package/dist/error-tools.js +125 -0
- package/dist/error-tools.js.map +1 -0
- package/dist/errors.d.ts +386 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +440 -0
- package/dist/errors.js.map +1 -0
- package/dist/events.d.ts +798 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +2 -0
- package/dist/events.js.map +1 -0
- package/dist/expressions.d.ts +188 -0
- package/dist/expressions.d.ts.map +1 -0
- package/dist/expressions.js +2 -0
- package/dist/expressions.js.map +1 -0
- package/dist/failures.d.ts +53 -0
- package/dist/failures.d.ts.map +1 -0
- package/dist/failures.js +2 -0
- package/dist/failures.js.map +1 -0
- package/dist/gateway.d.ts +48 -0
- package/dist/gateway.d.ts.map +1 -0
- package/dist/gateway.js +60 -0
- package/dist/gateway.js.map +1 -0
- package/dist/guilds.d.ts +923 -0
- package/dist/guilds.d.ts.map +1 -0
- package/dist/guilds.js +204 -0
- package/dist/guilds.js.map +1 -0
- package/dist/helpers.d.ts +423 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +434 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +228 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +109 -0
- package/dist/index.js.map +1 -0
- package/dist/input-validation.d.ts +51 -0
- package/dist/input-validation.d.ts.map +1 -0
- package/dist/input-validation.js +34 -0
- package/dist/input-validation.js.map +1 -0
- package/dist/instance.d.ts +101 -0
- package/dist/instance.d.ts.map +1 -0
- package/dist/instance.js +2 -0
- package/dist/instance.js.map +1 -0
- package/dist/internal/agents-section.d.ts +22 -0
- package/dist/internal/agents-section.d.ts.map +1 -0
- package/dist/internal/agents-section.js +101 -0
- package/dist/internal/agents-section.js.map +1 -0
- package/dist/internal/application.d.ts +16 -0
- package/dist/internal/application.d.ts.map +1 -0
- package/dist/internal/application.js +33 -0
- package/dist/internal/application.js.map +1 -0
- package/dist/internal/attachment-refresh.d.ts +18 -0
- package/dist/internal/attachment-refresh.d.ts.map +1 -0
- package/dist/internal/attachment-refresh.js +39 -0
- package/dist/internal/attachment-refresh.js.map +1 -0
- package/dist/internal/attachments.d.ts +45 -0
- package/dist/internal/attachments.d.ts.map +1 -0
- package/dist/internal/attachments.js +230 -0
- package/dist/internal/attachments.js.map +1 -0
- package/dist/internal/audit-logs.d.ts +13 -0
- package/dist/internal/audit-logs.d.ts.map +1 -0
- package/dist/internal/audit-logs.js +295 -0
- package/dist/internal/audit-logs.js.map +1 -0
- package/dist/internal/audit.d.ts +12 -0
- package/dist/internal/audit.d.ts.map +1 -0
- package/dist/internal/audit.js +22 -0
- package/dist/internal/audit.js.map +1 -0
- package/dist/internal/binding/default-adapters.d.ts +22 -0
- package/dist/internal/binding/default-adapters.d.ts.map +1 -0
- package/dist/internal/binding/default-adapters.js +304 -0
- package/dist/internal/binding/default-adapters.js.map +1 -0
- package/dist/internal/binding/default.d.ts +45 -0
- package/dist/internal/binding/default.d.ts.map +1 -0
- package/dist/internal/binding/default.js +86 -0
- package/dist/internal/binding/default.js.map +1 -0
- package/dist/internal/binding/execute.d.ts +51 -0
- package/dist/internal/binding/execute.d.ts.map +1 -0
- package/dist/internal/binding/execute.js +123 -0
- package/dist/internal/binding/execute.js.map +1 -0
- package/dist/internal/binding/native-adapters.d.ts +23 -0
- package/dist/internal/binding/native-adapters.d.ts.map +1 -0
- package/dist/internal/binding/native-adapters.js +90 -0
- package/dist/internal/binding/native-adapters.js.map +1 -0
- package/dist/internal/binding/native.d.ts +41 -0
- package/dist/internal/binding/native.d.ts.map +1 -0
- package/dist/internal/binding/native.js +34 -0
- package/dist/internal/binding/native.js.map +1 -0
- package/dist/internal/binding/operations.d.ts +361 -0
- package/dist/internal/binding/operations.d.ts.map +1 -0
- package/dist/internal/binding/operations.js +272 -0
- package/dist/internal/binding/operations.js.map +1 -0
- package/dist/internal/bot-runner.d.ts +65 -0
- package/dist/internal/bot-runner.d.ts.map +1 -0
- package/dist/internal/bot-runner.js +363 -0
- package/dist/internal/bot-runner.js.map +1 -0
- package/dist/internal/cache-changes.d.ts +43 -0
- package/dist/internal/cache-changes.d.ts.map +1 -0
- package/dist/internal/cache-changes.js +320 -0
- package/dist/internal/cache-changes.js.map +1 -0
- package/dist/internal/cache.d.ts +57 -0
- package/dist/internal/cache.d.ts.map +1 -0
- package/dist/internal/cache.js +318 -0
- package/dist/internal/cache.js.map +1 -0
- package/dist/internal/calls.d.ts +16 -0
- package/dist/internal/calls.d.ts.map +1 -0
- package/dist/internal/calls.js +108 -0
- package/dist/internal/calls.js.map +1 -0
- package/dist/internal/channel-cache.d.ts +69 -0
- package/dist/internal/channel-cache.d.ts.map +1 -0
- package/dist/internal/channel-cache.js +413 -0
- package/dist/internal/channel-cache.js.map +1 -0
- package/dist/internal/channel-decode.d.ts +44 -0
- package/dist/internal/channel-decode.d.ts.map +1 -0
- package/dist/internal/channel-decode.js +377 -0
- package/dist/internal/channel-decode.js.map +1 -0
- package/dist/internal/channels.d.ts +60 -0
- package/dist/internal/channels.d.ts.map +1 -0
- package/dist/internal/channels.js +605 -0
- package/dist/internal/channels.js.map +1 -0
- package/dist/internal/client/backoff.d.ts +42 -0
- package/dist/internal/client/backoff.d.ts.map +1 -0
- package/dist/internal/client/backoff.js +36 -0
- package/dist/internal/client/backoff.js.map +1 -0
- package/dist/internal/client/configuration-fields.d.ts +14 -0
- package/dist/internal/client/configuration-fields.d.ts.map +1 -0
- package/dist/internal/client/configuration-fields.js +11 -0
- package/dist/internal/client/configuration-fields.js.map +1 -0
- package/dist/internal/client/drain.d.ts +33 -0
- package/dist/internal/client/drain.d.ts.map +1 -0
- package/dist/internal/client/drain.js +109 -0
- package/dist/internal/client/drain.js.map +1 -0
- package/dist/internal/client/intake.d.ts +27 -0
- package/dist/internal/client/intake.d.ts.map +1 -0
- package/dist/internal/client/intake.js +198 -0
- package/dist/internal/client/intake.js.map +1 -0
- package/dist/internal/client/lifetime.d.ts +35 -0
- package/dist/internal/client/lifetime.d.ts.map +1 -0
- package/dist/internal/client/lifetime.js +109 -0
- package/dist/internal/client/lifetime.js.map +1 -0
- package/dist/internal/client/shard-loop.d.ts +93 -0
- package/dist/internal/client/shard-loop.d.ts.map +1 -0
- package/dist/internal/client/shard-loop.js +452 -0
- package/dist/internal/client/shard-loop.js.map +1 -0
- package/dist/internal/client-registry.d.ts +26 -0
- package/dist/internal/client-registry.d.ts.map +1 -0
- package/dist/internal/client-registry.js +11 -0
- package/dist/internal/client-registry.js.map +1 -0
- package/dist/internal/client.d.ts +189 -0
- package/dist/internal/client.d.ts.map +1 -0
- package/dist/internal/client.js +1935 -0
- package/dist/internal/client.js.map +1 -0
- package/dist/internal/clock.d.ts +9 -0
- package/dist/internal/clock.d.ts.map +1 -0
- package/dist/internal/clock.js +5 -0
- package/dist/internal/clock.js.map +1 -0
- package/dist/internal/code-catalogue.d.ts +712 -0
- package/dist/internal/code-catalogue.d.ts.map +1 -0
- package/dist/internal/code-catalogue.js +655 -0
- package/dist/internal/code-catalogue.js.map +1 -0
- package/dist/internal/collector.d.ts +34 -0
- package/dist/internal/collector.d.ts.map +1 -0
- package/dist/internal/collector.js +400 -0
- package/dist/internal/collector.js.map +1 -0
- package/dist/internal/command-arguments.d.ts +29 -0
- package/dist/internal/command-arguments.d.ts.map +1 -0
- package/dist/internal/command-arguments.js +484 -0
- package/dist/internal/command-arguments.js.map +1 -0
- package/dist/internal/command-guards.d.ts +57 -0
- package/dist/internal/command-guards.d.ts.map +1 -0
- package/dist/internal/command-guards.js +81 -0
- package/dist/internal/command-guards.js.map +1 -0
- package/dist/internal/command-help.d.ts +15 -0
- package/dist/internal/command-help.d.ts.map +1 -0
- package/dist/internal/command-help.js +121 -0
- package/dist/internal/command-help.js.map +1 -0
- package/dist/internal/commands.d.ts +212 -0
- package/dist/internal/commands.d.ts.map +1 -0
- package/dist/internal/commands.js +1004 -0
- package/dist/internal/commands.js.map +1 -0
- package/dist/internal/configuration.d.ts +86 -0
- package/dist/internal/configuration.d.ts.map +1 -0
- package/dist/internal/configuration.js +401 -0
- package/dist/internal/configuration.js.map +1 -0
- package/dist/internal/counts.d.ts +33 -0
- package/dist/internal/counts.d.ts.map +1 -0
- package/dist/internal/counts.js +348 -0
- package/dist/internal/counts.js.map +1 -0
- package/dist/internal/decode/primitives.d.ts +30 -0
- package/dist/internal/decode/primitives.d.ts.map +1 -0
- package/dist/internal/decode/primitives.js +56 -0
- package/dist/internal/decode/primitives.js.map +1 -0
- package/dist/internal/decode/timestamp.d.ts +13 -0
- package/dist/internal/decode/timestamp.d.ts.map +1 -0
- package/dist/internal/decode/timestamp.js +27 -0
- package/dist/internal/decode/timestamp.js.map +1 -0
- package/dist/internal/decode/trace.d.ts +11 -0
- package/dist/internal/decode/trace.d.ts.map +1 -0
- package/dist/internal/decode/trace.js +69 -0
- package/dist/internal/decode/trace.js.map +1 -0
- package/dist/internal/defects.d.ts +48 -0
- package/dist/internal/defects.d.ts.map +1 -0
- package/dist/internal/defects.js +100 -0
- package/dist/internal/defects.js.map +1 -0
- package/dist/internal/effect-failures.d.ts +12 -0
- package/dist/internal/effect-failures.d.ts.map +1 -0
- package/dist/internal/effect-failures.js +45 -0
- package/dist/internal/effect-failures.js.map +1 -0
- package/dist/internal/embeds.d.ts +12 -0
- package/dist/internal/embeds.d.ts.map +1 -0
- package/dist/internal/embeds.js +308 -0
- package/dist/internal/embeds.js.map +1 -0
- package/dist/internal/events.d.ts +156 -0
- package/dist/internal/events.d.ts.map +1 -0
- package/dist/internal/events.js +1071 -0
- package/dist/internal/events.js.map +1 -0
- package/dist/internal/expiry-queue.d.ts +42 -0
- package/dist/internal/expiry-queue.d.ts.map +1 -0
- package/dist/internal/expiry-queue.js +138 -0
- package/dist/internal/expiry-queue.js.map +1 -0
- package/dist/internal/expressions.d.ts +35 -0
- package/dist/internal/expressions.d.ts.map +1 -0
- package/dist/internal/expressions.js +311 -0
- package/dist/internal/expressions.js.map +1 -0
- package/dist/internal/failures.d.ts +107 -0
- package/dist/internal/failures.d.ts.map +1 -0
- package/dist/internal/failures.js +416 -0
- package/dist/internal/failures.js.map +1 -0
- package/dist/internal/field-text.d.ts +10 -0
- package/dist/internal/field-text.d.ts.map +1 -0
- package/dist/internal/field-text.js +37 -0
- package/dist/internal/field-text.js.map +1 -0
- package/dist/internal/gateway/commands.d.ts +92 -0
- package/dist/internal/gateway/commands.d.ts.map +1 -0
- package/dist/internal/gateway/commands.js +223 -0
- package/dist/internal/gateway/commands.js.map +1 -0
- package/dist/internal/gateway/dispatch-table.d.ts +42 -0
- package/dist/internal/gateway/dispatch-table.d.ts.map +1 -0
- package/dist/internal/gateway/dispatch-table.js +288 -0
- package/dist/internal/gateway/dispatch-table.js.map +1 -0
- package/dist/internal/gateway/event-dispatches.d.ts +97 -0
- package/dist/internal/gateway/event-dispatches.d.ts.map +1 -0
- package/dist/internal/gateway/event-dispatches.js +172 -0
- package/dist/internal/gateway/event-dispatches.js.map +1 -0
- package/dist/internal/gateway/frames.d.ts +45 -0
- package/dist/internal/gateway/frames.d.ts.map +1 -0
- package/dist/internal/gateway/frames.js +121 -0
- package/dist/internal/gateway/frames.js.map +1 -0
- package/dist/internal/gateway/options.d.ts +24 -0
- package/dist/internal/gateway/options.d.ts.map +1 -0
- package/dist/internal/gateway/options.js +103 -0
- package/dist/internal/gateway/options.js.map +1 -0
- package/dist/internal/gateway/session.d.ts +104 -0
- package/dist/internal/gateway/session.d.ts.map +1 -0
- package/dist/internal/gateway/session.js +420 -0
- package/dist/internal/gateway/session.js.map +1 -0
- package/dist/internal/gateway-requests.d.ts +10 -0
- package/dist/internal/gateway-requests.d.ts.map +1 -0
- package/dist/internal/gateway-requests.js +26 -0
- package/dist/internal/gateway-requests.js.map +1 -0
- package/dist/internal/gateway.d.ts +19 -0
- package/dist/internal/gateway.d.ts.map +1 -0
- package/dist/internal/gateway.js +11 -0
- package/dist/internal/gateway.js.map +1 -0
- package/dist/internal/guild-cache.d.ts +69 -0
- package/dist/internal/guild-cache.d.ts.map +1 -0
- package/dist/internal/guild-cache.js +402 -0
- package/dist/internal/guild-cache.js.map +1 -0
- package/dist/internal/guild-discovery.d.ts +15 -0
- package/dist/internal/guild-discovery.d.ts.map +1 -0
- package/dist/internal/guild-discovery.js +258 -0
- package/dist/internal/guild-discovery.js.map +1 -0
- package/dist/internal/guild-lifecycle.d.ts +18 -0
- package/dist/internal/guild-lifecycle.d.ts.map +1 -0
- package/dist/internal/guild-lifecycle.js +119 -0
- package/dist/internal/guild-lifecycle.js.map +1 -0
- package/dist/internal/guild-settings.d.ts +11 -0
- package/dist/internal/guild-settings.d.ts.map +1 -0
- package/dist/internal/guild-settings.js +150 -0
- package/dist/internal/guild-settings.js.map +1 -0
- package/dist/internal/guilds.d.ts +94 -0
- package/dist/internal/guilds.d.ts.map +1 -0
- package/dist/internal/guilds.js +785 -0
- package/dist/internal/guilds.js.map +1 -0
- package/dist/internal/init-command.d.ts +54 -0
- package/dist/internal/init-command.d.ts.map +1 -0
- package/dist/internal/init-command.js +248 -0
- package/dist/internal/init-command.js.map +1 -0
- package/dist/internal/instance.d.ts +69 -0
- package/dist/internal/instance.d.ts.map +1 -0
- package/dist/internal/instance.js +455 -0
- package/dist/internal/instance.js.map +1 -0
- package/dist/internal/invalid-callback-return.d.ts +3 -0
- package/dist/internal/invalid-callback-return.d.ts.map +1 -0
- package/dist/internal/invalid-callback-return.js +26 -0
- package/dist/internal/invalid-callback-return.js.map +1 -0
- package/dist/internal/invites.d.ts +19 -0
- package/dist/internal/invites.d.ts.map +1 -0
- package/dist/internal/invites.js +182 -0
- package/dist/internal/invites.js.map +1 -0
- package/dist/internal/logging.d.ts +129 -0
- package/dist/internal/logging.d.ts.map +1 -0
- package/dist/internal/logging.js +868 -0
- package/dist/internal/logging.js.map +1 -0
- package/dist/internal/logical-scheduler.d.ts +27 -0
- package/dist/internal/logical-scheduler.d.ts.map +1 -0
- package/dist/internal/logical-scheduler.js +102 -0
- package/dist/internal/logical-scheduler.js.map +1 -0
- package/dist/internal/masking.d.ts +13 -0
- package/dist/internal/masking.d.ts.map +1 -0
- package/dist/internal/masking.js +235 -0
- package/dist/internal/masking.js.map +1 -0
- package/dist/internal/member-chunks.d.ts +96 -0
- package/dist/internal/member-chunks.d.ts.map +1 -0
- package/dist/internal/member-chunks.js +557 -0
- package/dist/internal/member-chunks.js.map +1 -0
- package/dist/internal/member-search-workflow.d.ts +19 -0
- package/dist/internal/member-search-workflow.d.ts.map +1 -0
- package/dist/internal/member-search-workflow.js +143 -0
- package/dist/internal/member-search-workflow.js.map +1 -0
- package/dist/internal/member-search.d.ts +20 -0
- package/dist/internal/member-search.d.ts.map +1 -0
- package/dist/internal/member-search.js +201 -0
- package/dist/internal/member-search.js.map +1 -0
- package/dist/internal/message-cleanup.d.ts +9 -0
- package/dist/internal/message-cleanup.d.ts.map +1 -0
- package/dist/internal/message-cleanup.js +368 -0
- package/dist/internal/message-cleanup.js.map +1 -0
- package/dist/internal/message-fields.d.ts +9 -0
- package/dist/internal/message-fields.d.ts.map +1 -0
- package/dist/internal/message-fields.js +55 -0
- package/dist/internal/message-fields.js.map +1 -0
- package/dist/internal/message-search-workflow.d.ts +14 -0
- package/dist/internal/message-search-workflow.d.ts.map +1 -0
- package/dist/internal/message-search-workflow.js +101 -0
- package/dist/internal/message-search-workflow.js.map +1 -0
- package/dist/internal/message-search.d.ts +19 -0
- package/dist/internal/message-search.d.ts.map +1 -0
- package/dist/internal/message-search.js +317 -0
- package/dist/internal/message-search.js.map +1 -0
- package/dist/internal/message.d.ts +34 -0
- package/dist/internal/message.d.ts.map +1 -0
- package/dist/internal/message.js +723 -0
- package/dist/internal/message.js.map +1 -0
- package/dist/internal/metrics.d.ts +16 -0
- package/dist/internal/metrics.d.ts.map +1 -0
- package/dist/internal/metrics.js +49 -0
- package/dist/internal/metrics.js.map +1 -0
- package/dist/internal/moderation.d.ts +20 -0
- package/dist/internal/moderation.d.ts.map +1 -0
- package/dist/internal/moderation.js +219 -0
- package/dist/internal/moderation.js.map +1 -0
- package/dist/internal/multipart.d.ts +10 -0
- package/dist/internal/multipart.d.ts.map +1 -0
- package/dist/internal/multipart.js +156 -0
- package/dist/internal/multipart.js.map +1 -0
- package/dist/internal/node-version.d.ts +10 -0
- package/dist/internal/node-version.d.ts.map +1 -0
- package/dist/internal/node-version.js +21 -0
- package/dist/internal/node-version.js.map +1 -0
- package/dist/internal/oauth.d.ts +29 -0
- package/dist/internal/oauth.d.ts.map +1 -0
- package/dist/internal/oauth.js +721 -0
- package/dist/internal/oauth.js.map +1 -0
- package/dist/internal/observer.d.ts +21 -0
- package/dist/internal/observer.d.ts.map +1 -0
- package/dist/internal/observer.js +48 -0
- package/dist/internal/observer.js.map +1 -0
- package/dist/internal/operation-signal.d.ts +9 -0
- package/dist/internal/operation-signal.d.ts.map +1 -0
- package/dist/internal/operation-signal.js +19 -0
- package/dist/internal/operation-signal.js.map +1 -0
- package/dist/internal/pagination.d.ts +67 -0
- package/dist/internal/pagination.d.ts.map +1 -0
- package/dist/internal/pagination.js +306 -0
- package/dist/internal/pagination.js.map +1 -0
- package/dist/internal/permission-requirements.d.ts +34 -0
- package/dist/internal/permission-requirements.d.ts.map +1 -0
- package/dist/internal/permission-requirements.js +204 -0
- package/dist/internal/permission-requirements.js.map +1 -0
- package/dist/internal/permissions.d.ts +28 -0
- package/dist/internal/permissions.d.ts.map +1 -0
- package/dist/internal/permissions.js +314 -0
- package/dist/internal/permissions.js.map +1 -0
- package/dist/internal/pins.d.ts +24 -0
- package/dist/internal/pins.d.ts.map +1 -0
- package/dist/internal/pins.js +83 -0
- package/dist/internal/pins.js.map +1 -0
- package/dist/internal/presence.d.ts +101 -0
- package/dist/internal/presence.d.ts.map +1 -0
- package/dist/internal/presence.js +581 -0
- package/dist/internal/presence.js.map +1 -0
- package/dist/internal/protocol/gateway.d.ts +116 -0
- package/dist/internal/protocol/gateway.d.ts.map +1 -0
- package/dist/internal/protocol/gateway.js +258 -0
- package/dist/internal/protocol/gateway.js.map +1 -0
- package/dist/internal/rate-limit-templates.d.ts +2 -0
- package/dist/internal/rate-limit-templates.d.ts.map +1 -0
- package/dist/internal/rate-limit-templates.js +132 -0
- package/dist/internal/rate-limit-templates.js.map +1 -0
- package/dist/internal/rate-limits.d.ts +32 -0
- package/dist/internal/rate-limits.d.ts.map +1 -0
- package/dist/internal/rate-limits.js +306 -0
- package/dist/internal/rate-limits.js.map +1 -0
- package/dist/internal/reaction-collector.d.ts +39 -0
- package/dist/internal/reaction-collector.d.ts.map +1 -0
- package/dist/internal/reaction-collector.js +441 -0
- package/dist/internal/reaction-collector.js.map +1 -0
- package/dist/internal/reaction-pages.d.ts +18 -0
- package/dist/internal/reaction-pages.d.ts.map +1 -0
- package/dist/internal/reaction-pages.js +213 -0
- package/dist/internal/reaction-pages.js.map +1 -0
- package/dist/internal/reactions.d.ts +30 -0
- package/dist/internal/reactions.d.ts.map +1 -0
- package/dist/internal/reactions.js +160 -0
- package/dist/internal/reactions.js.map +1 -0
- package/dist/internal/rejection-scope.d.ts +25 -0
- package/dist/internal/rejection-scope.d.ts.map +1 -0
- package/dist/internal/rejection-scope.js +103 -0
- package/dist/internal/rejection-scope.js.map +1 -0
- package/dist/internal/response-json.d.ts +12 -0
- package/dist/internal/response-json.d.ts.map +1 -0
- package/dist/internal/response-json.js +74 -0
- package/dist/internal/response-json.js.map +1 -0
- package/dist/internal/rest/admission.d.ts +77 -0
- package/dist/internal/rest/admission.d.ts.map +1 -0
- package/dist/internal/rest/admission.js +178 -0
- package/dist/internal/rest/admission.js.map +1 -0
- package/dist/internal/rest/attempt.d.ts +124 -0
- package/dist/internal/rest/attempt.d.ts.map +1 -0
- package/dist/internal/rest/attempt.js +410 -0
- package/dist/internal/rest/attempt.js.map +1 -0
- package/dist/internal/rest/classify.d.ts +93 -0
- package/dist/internal/rest/classify.d.ts.map +1 -0
- package/dist/internal/rest/classify.js +304 -0
- package/dist/internal/rest/classify.js.map +1 -0
- package/dist/internal/rest/download.d.ts +66 -0
- package/dist/internal/rest/download.d.ts.map +1 -0
- package/dist/internal/rest/download.js +552 -0
- package/dist/internal/rest/download.js.map +1 -0
- package/dist/internal/rest/options.d.ts +42 -0
- package/dist/internal/rest/options.d.ts.map +1 -0
- package/dist/internal/rest/options.js +99 -0
- package/dist/internal/rest/options.js.map +1 -0
- package/dist/internal/rest/owner.d.ts +154 -0
- package/dist/internal/rest/owner.d.ts.map +1 -0
- package/dist/internal/rest/owner.js +1292 -0
- package/dist/internal/rest/owner.js.map +1 -0
- package/dist/internal/rest/request.d.ts +31 -0
- package/dist/internal/rest/request.d.ts.map +1 -0
- package/dist/internal/rest/request.js +227 -0
- package/dist/internal/rest/request.js.map +1 -0
- package/dist/internal/rest.d.ts +10 -0
- package/dist/internal/rest.d.ts.map +1 -0
- package/dist/internal/rest.js +9 -0
- package/dist/internal/rest.js.map +1 -0
- package/dist/internal/retention-age.d.ts +11 -0
- package/dist/internal/retention-age.d.ts.map +1 -0
- package/dist/internal/retention-age.js +29 -0
- package/dist/internal/retention-age.js.map +1 -0
- package/dist/internal/role-hierarchy-workflow.d.ts +15 -0
- package/dist/internal/role-hierarchy-workflow.d.ts.map +1 -0
- package/dist/internal/role-hierarchy-workflow.js +122 -0
- package/dist/internal/role-hierarchy-workflow.js.map +1 -0
- package/dist/internal/role-hierarchy.d.ts +11 -0
- package/dist/internal/role-hierarchy.d.ts.map +1 -0
- package/dist/internal/role-hierarchy.js +87 -0
- package/dist/internal/role-hierarchy.js.map +1 -0
- package/dist/internal/scheduled-tasks.d.ts +46 -0
- package/dist/internal/scheduled-tasks.d.ts.map +1 -0
- package/dist/internal/scheduled-tasks.js +190 -0
- package/dist/internal/scheduled-tasks.js.map +1 -0
- package/dist/internal/sharding.d.ts +62 -0
- package/dist/internal/sharding.d.ts.map +1 -0
- package/dist/internal/sharding.js +205 -0
- package/dist/internal/sharding.js.map +1 -0
- package/dist/internal/starter-project.d.ts +27 -0
- package/dist/internal/starter-project.d.ts.map +1 -0
- package/dist/internal/starter-project.js +224 -0
- package/dist/internal/starter-project.js.map +1 -0
- package/dist/internal/suggest.d.ts +12 -0
- package/dist/internal/suggest.d.ts.map +1 -0
- package/dist/internal/suggest.js +51 -0
- package/dist/internal/suggest.js.map +1 -0
- package/dist/internal/supervisor.d.ts +95 -0
- package/dist/internal/supervisor.d.ts.map +1 -0
- package/dist/internal/supervisor.js +1829 -0
- package/dist/internal/supervisor.js.map +1 -0
- package/dist/internal/testing/discovery.d.ts +24 -0
- package/dist/internal/testing/discovery.d.ts.map +1 -0
- package/dist/internal/testing/discovery.js +22 -0
- package/dist/internal/testing/discovery.js.map +1 -0
- package/dist/internal/testing/errors.d.ts +43 -0
- package/dist/internal/testing/errors.d.ts.map +1 -0
- package/dist/internal/testing/errors.js +63 -0
- package/dist/internal/testing/errors.js.map +1 -0
- package/dist/internal/testing/fixtures.d.ts +477 -0
- package/dist/internal/testing/fixtures.d.ts.map +1 -0
- package/dist/internal/testing/fixtures.js +233 -0
- package/dist/internal/testing/fixtures.js.map +1 -0
- package/dist/internal/testing/gateway.d.ts +51 -0
- package/dist/internal/testing/gateway.d.ts.map +1 -0
- package/dist/internal/testing/gateway.js +265 -0
- package/dist/internal/testing/gateway.js.map +1 -0
- package/dist/internal/testing/harness.d.ts +60 -0
- package/dist/internal/testing/harness.d.ts.map +1 -0
- package/dist/internal/testing/harness.js +280 -0
- package/dist/internal/testing/harness.js.map +1 -0
- package/dist/internal/testing/http.d.ts +31 -0
- package/dist/internal/testing/http.d.ts.map +1 -0
- package/dist/internal/testing/http.js +347 -0
- package/dist/internal/testing/http.js.map +1 -0
- package/dist/internal/testing/types.d.ts +222 -0
- package/dist/internal/testing/types.d.ts.map +1 -0
- package/dist/internal/testing/types.js +2 -0
- package/dist/internal/testing/types.js.map +1 -0
- package/dist/internal/testing/wait.d.ts +16 -0
- package/dist/internal/testing/wait.d.ts.map +1 -0
- package/dist/internal/testing/wait.js +55 -0
- package/dist/internal/testing/wait.js.map +1 -0
- package/dist/internal/thread-events.d.ts +40 -0
- package/dist/internal/thread-events.d.ts.map +1 -0
- package/dist/internal/thread-events.js +121 -0
- package/dist/internal/thread-events.js.map +1 -0
- package/dist/internal/threads.d.ts +47 -0
- package/dist/internal/threads.d.ts.map +1 -0
- package/dist/internal/threads.js +587 -0
- package/dist/internal/threads.js.map +1 -0
- package/dist/internal/transfer-source.d.ts +29 -0
- package/dist/internal/transfer-source.d.ts.map +1 -0
- package/dist/internal/transfer-source.js +347 -0
- package/dist/internal/transfer-source.js.map +1 -0
- package/dist/internal/transport/http.d.ts +12 -0
- package/dist/internal/transport/http.d.ts.map +1 -0
- package/dist/internal/transport/http.js +44 -0
- package/dist/internal/transport/http.js.map +1 -0
- package/dist/internal/transport/index.d.ts +21 -0
- package/dist/internal/transport/index.d.ts.map +1 -0
- package/dist/internal/transport/index.js +15 -0
- package/dist/internal/transport/index.js.map +1 -0
- package/dist/internal/transport/socket.d.ts +51 -0
- package/dist/internal/transport/socket.d.ts.map +1 -0
- package/dist/internal/transport/socket.js +27 -0
- package/dist/internal/transport/socket.js.map +1 -0
- package/dist/internal/transport/user-agent.d.ts +7 -0
- package/dist/internal/transport/user-agent.d.ts.map +1 -0
- package/dist/internal/transport/user-agent.js +42 -0
- package/dist/internal/transport/user-agent.js.map +1 -0
- package/dist/internal/uploads.d.ts +23 -0
- package/dist/internal/uploads.d.ts.map +1 -0
- package/dist/internal/uploads.js +89 -0
- package/dist/internal/uploads.js.map +1 -0
- package/dist/internal/user-cache.d.ts +50 -0
- package/dist/internal/user-cache.d.ts.map +1 -0
- package/dist/internal/user-cache.js +273 -0
- package/dist/internal/user-cache.js.map +1 -0
- package/dist/internal/users.d.ts +41 -0
- package/dist/internal/users.d.ts.map +1 -0
- package/dist/internal/users.js +333 -0
- package/dist/internal/users.js.map +1 -0
- package/dist/internal/vanity-url.d.ts +11 -0
- package/dist/internal/vanity-url.d.ts.map +1 -0
- package/dist/internal/vanity-url.js +58 -0
- package/dist/internal/vanity-url.js.map +1 -0
- package/dist/internal/webhooks.d.ts +58 -0
- package/dist/internal/webhooks.d.ts.map +1 -0
- package/dist/internal/webhooks.js +490 -0
- package/dist/internal/webhooks.js.map +1 -0
- package/dist/invites.d.ts +86 -0
- package/dist/invites.d.ts.map +1 -0
- package/dist/invites.js +2 -0
- package/dist/invites.js.map +1 -0
- package/dist/logging.d.ts +228 -0
- package/dist/logging.d.ts.map +1 -0
- package/dist/logging.js +2 -0
- package/dist/logging.js.map +1 -0
- package/dist/member-chunks.d.ts +145 -0
- package/dist/member-chunks.d.ts.map +1 -0
- package/dist/member-chunks.js +68 -0
- package/dist/member-chunks.js.map +1 -0
- package/dist/member-search.d.ts +140 -0
- package/dist/member-search.d.ts.map +1 -0
- package/dist/member-search.js +14 -0
- package/dist/member-search.js.map +1 -0
- package/dist/message-cleanup.d.ts +227 -0
- package/dist/message-cleanup.d.ts.map +1 -0
- package/dist/message-cleanup.js +101 -0
- package/dist/message-cleanup.js.map +1 -0
- package/dist/message-errors.d.ts +172 -0
- package/dist/message-errors.d.ts.map +1 -0
- package/dist/message-errors.js +173 -0
- package/dist/message-errors.js.map +1 -0
- package/dist/message-search.d.ts +201 -0
- package/dist/message-search.d.ts.map +1 -0
- package/dist/message-search.js +2 -0
- package/dist/message-search.js.map +1 -0
- package/dist/messages.d.ts +694 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/messages.js +37 -0
- package/dist/messages.js.map +1 -0
- package/dist/native-commands.d.ts +451 -0
- package/dist/native-commands.d.ts.map +1 -0
- package/dist/native-commands.js +432 -0
- package/dist/native-commands.js.map +1 -0
- package/dist/native-supervisor.d.ts +125 -0
- package/dist/native-supervisor.d.ts.map +1 -0
- package/dist/native-supervisor.js +126 -0
- package/dist/native-supervisor.js.map +1 -0
- package/dist/oauth.d.ts +298 -0
- package/dist/oauth.d.ts.map +1 -0
- package/dist/oauth.js +128 -0
- package/dist/oauth.js.map +1 -0
- package/dist/observer.d.ts +111 -0
- package/dist/observer.d.ts.map +1 -0
- package/dist/observer.js +2 -0
- package/dist/observer.js.map +1 -0
- package/dist/pagination.d.ts +117 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +61 -0
- package/dist/pagination.js.map +1 -0
- package/dist/permissions.d.ts +73 -0
- package/dist/permissions.d.ts.map +1 -0
- package/dist/permissions.js +2 -0
- package/dist/permissions.js.map +1 -0
- package/dist/pins.d.ts +62 -0
- package/dist/pins.d.ts.map +1 -0
- package/dist/pins.js +2 -0
- package/dist/pins.js.map +1 -0
- package/dist/presence.d.ts +84 -0
- package/dist/presence.d.ts.map +1 -0
- package/dist/presence.js +46 -0
- package/dist/presence.js.map +1 -0
- package/dist/reaction-pages.d.ts +99 -0
- package/dist/reaction-pages.d.ts.map +1 -0
- package/dist/reaction-pages.js +2 -0
- package/dist/reaction-pages.js.map +1 -0
- package/dist/reactions.d.ts +118 -0
- package/dist/reactions.d.ts.map +1 -0
- package/dist/reactions.js +2 -0
- package/dist/reactions.js.map +1 -0
- package/dist/rest.d.ts +260 -0
- package/dist/rest.d.ts.map +1 -0
- package/dist/rest.js +46 -0
- package/dist/rest.js.map +1 -0
- package/dist/role-hierarchy.d.ts +81 -0
- package/dist/role-hierarchy.d.ts.map +1 -0
- package/dist/role-hierarchy.js +53 -0
- package/dist/role-hierarchy.js.map +1 -0
- package/dist/sharding.d.ts +219 -0
- package/dist/sharding.d.ts.map +1 -0
- package/dist/sharding.js +86 -0
- package/dist/sharding.js.map +1 -0
- package/dist/supervisor.d.ts +392 -0
- package/dist/supervisor.d.ts.map +1 -0
- package/dist/supervisor.js +101 -0
- package/dist/supervisor.js.map +1 -0
- package/dist/testing.d.ts +258 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +202 -0
- package/dist/testing.js.map +1 -0
- package/dist/text.d.ts +38 -0
- package/dist/text.d.ts.map +1 -0
- package/dist/text.js +46 -0
- package/dist/text.js.map +1 -0
- package/dist/threads.d.ts +258 -0
- package/dist/threads.d.ts.map +1 -0
- package/dist/threads.js +2 -0
- package/dist/threads.js.map +1 -0
- package/dist/users.d.ts +204 -0
- package/dist/users.d.ts.map +1 -0
- package/dist/users.js +44 -0
- package/dist/users.js.map +1 -0
- package/dist/webhooks.d.ts +423 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +68 -0
- package/dist/webhooks.js.map +1 -0
- package/esm-only.cjs +3 -0
- package/examples/starter/bot-effect.ts +17 -0
- package/examples/starter/bot.js +13 -0
- package/examples/starter/bot.ts +13 -0
- package/package.json +82 -0
- package/src/api/default/application.ts +40 -0
- package/src/api/default/attachments.ts +106 -0
- package/src/api/default/audit-logs.ts +58 -0
- package/src/api/default/bot.ts +586 -0
- package/src/api/default/cache.ts +106 -0
- package/src/api/default/channels.ts +317 -0
- package/src/api/default/client.ts +829 -0
- package/src/api/default/collectors.ts +81 -0
- package/src/api/default/commands.ts +92 -0
- package/src/api/default/direct-messages.ts +143 -0
- package/src/api/default/discovery.ts +103 -0
- package/src/api/default/emojis.ts +125 -0
- package/src/api/default/events.ts +144 -0
- package/src/api/default/gateway.ts +67 -0
- package/src/api/default/guards.ts +173 -0
- package/src/api/default/guilds.ts +271 -0
- package/src/api/default/helpers.ts +97 -0
- package/src/api/default/instance.ts +49 -0
- package/src/api/default/invites.ts +73 -0
- package/src/api/default/logging.ts +37 -0
- package/src/api/default/members.ts +550 -0
- package/src/api/default/messages.ts +1053 -0
- package/src/api/default/oauth.ts +293 -0
- package/src/api/default/permissions.ts +47 -0
- package/src/api/default/presence.ts +88 -0
- package/src/api/default/rest.ts +30 -0
- package/src/api/default/results.ts +44 -0
- package/src/api/default/roles.ts +154 -0
- package/src/api/default/stickers.ts +129 -0
- package/src/api/default/supervisor.ts +53 -0
- package/src/api/default/threads.ts +233 -0
- package/src/api/default/users.ts +82 -0
- package/src/api/default/webhook-client.ts +266 -0
- package/src/api/default/webhooks.ts +89 -0
- package/src/api/effect/application.ts +29 -0
- package/src/api/effect/attachments.ts +100 -0
- package/src/api/effect/audit-logs.ts +50 -0
- package/src/api/effect/bot.ts +546 -0
- package/src/api/effect/cache.ts +110 -0
- package/src/api/effect/channels.ts +293 -0
- package/src/api/effect/client.ts +792 -0
- package/src/api/effect/collectors.ts +103 -0
- package/src/api/effect/commands.ts +87 -0
- package/src/api/effect/direct-messages.ts +119 -0
- package/src/api/effect/discovery.ts +87 -0
- package/src/api/effect/emojis.ts +108 -0
- package/src/api/effect/events.ts +92 -0
- package/src/api/effect/failures.ts +14 -0
- package/src/api/effect/gateway.ts +63 -0
- package/src/api/effect/guards.ts +194 -0
- package/src/api/effect/guilds.ts +247 -0
- package/src/api/effect/helpers.ts +359 -0
- package/src/api/effect/hierarchy.ts +26 -0
- package/src/api/effect/instance.ts +50 -0
- package/src/api/effect/invites.ts +59 -0
- package/src/api/effect/logging.ts +37 -0
- package/src/api/effect/members.ts +521 -0
- package/src/api/effect/messages.ts +1003 -0
- package/src/api/effect/oauth.ts +208 -0
- package/src/api/effect/permissions.ts +44 -0
- package/src/api/effect/presence.ts +83 -0
- package/src/api/effect/rest.ts +27 -0
- package/src/api/effect/roles.ts +136 -0
- package/src/api/effect/service.ts +104 -0
- package/src/api/effect/stickers.ts +112 -0
- package/src/api/effect/supervisor.ts +58 -0
- package/src/api/effect/threads.ts +221 -0
- package/src/api/effect/users.ts +66 -0
- package/src/api/effect/webhook-client.ts +206 -0
- package/src/api/effect/webhooks.ts +75 -0
- package/src/api-errors.ts +985 -0
- package/src/application.ts +103 -0
- package/src/assets.ts +731 -0
- package/src/attachments.ts +469 -0
- package/src/audit-logs.ts +355 -0
- package/src/bot-runner.ts +91 -0
- package/src/builders.ts +390 -0
- package/src/cache.ts +190 -0
- package/src/channels.ts +1051 -0
- package/src/cli.ts +60 -0
- package/src/client.ts +663 -0
- package/src/collectors.ts +248 -0
- package/src/colors.ts +91 -0
- package/src/command-arguments.ts +432 -0
- package/src/command-help.ts +55 -0
- package/src/commands.ts +403 -0
- package/src/counts.ts +160 -0
- package/src/default-commands.ts +1147 -0
- package/src/default-supervisor.ts +484 -0
- package/src/discovery.ts +241 -0
- package/src/effect-testing.ts +603 -0
- package/src/effect.ts +751 -0
- package/src/embeds.ts +253 -0
- package/src/error-tools.ts +191 -0
- package/src/errors.ts +849 -0
- package/src/events.ts +830 -0
- package/src/expressions.ts +198 -0
- package/src/failures.ts +55 -0
- package/src/gateway.ts +86 -0
- package/src/guilds.ts +1108 -0
- package/src/helpers.ts +836 -0
- package/src/index.ts +796 -0
- package/src/input-validation.ts +94 -0
- package/src/instance.ts +111 -0
- package/src/internal/agents-section.ts +114 -0
- package/src/internal/application.ts +51 -0
- package/src/internal/attachment-refresh.ts +57 -0
- package/src/internal/attachments.ts +313 -0
- package/src/internal/audit-logs.ts +336 -0
- package/src/internal/audit.ts +33 -0
- package/src/internal/binding/default-adapters.ts +482 -0
- package/src/internal/binding/default.ts +155 -0
- package/src/internal/binding/execute.ts +221 -0
- package/src/internal/binding/native-adapters.ts +199 -0
- package/src/internal/binding/native.ts +72 -0
- package/src/internal/binding/operations.ts +1171 -0
- package/src/internal/bot-runner.ts +480 -0
- package/src/internal/cache-changes.ts +363 -0
- package/src/internal/cache.ts +323 -0
- package/src/internal/calls.ts +119 -0
- package/src/internal/channel-cache.ts +435 -0
- package/src/internal/channel-decode.ts +399 -0
- package/src/internal/channels.ts +874 -0
- package/src/internal/client/backoff.ts +69 -0
- package/src/internal/client/configuration-fields.ts +18 -0
- package/src/internal/client/drain.ts +150 -0
- package/src/internal/client/intake.ts +228 -0
- package/src/internal/client/lifetime.ts +165 -0
- package/src/internal/client/shard-loop.ts +586 -0
- package/src/internal/client-registry.ts +35 -0
- package/src/internal/client.ts +2448 -0
- package/src/internal/clock.ts +11 -0
- package/src/internal/code-catalogue.ts +739 -0
- package/src/internal/collector.ts +452 -0
- package/src/internal/command-arguments.ts +585 -0
- package/src/internal/command-guards.ts +96 -0
- package/src/internal/command-help.ts +156 -0
- package/src/internal/commands.ts +1319 -0
- package/src/internal/configuration.ts +529 -0
- package/src/internal/counts.ts +471 -0
- package/src/internal/decode/primitives.ts +67 -0
- package/src/internal/decode/timestamp.ts +29 -0
- package/src/internal/decode/trace.ts +65 -0
- package/src/internal/defects.ts +115 -0
- package/src/internal/effect-failures.ts +65 -0
- package/src/internal/embeds.ts +355 -0
- package/src/internal/events.ts +1345 -0
- package/src/internal/expiry-queue.ts +148 -0
- package/src/internal/expressions.ts +415 -0
- package/src/internal/failures.ts +492 -0
- package/src/internal/field-text.ts +40 -0
- package/src/internal/gateway/commands.ts +328 -0
- package/src/internal/gateway/dispatch-table.ts +383 -0
- package/src/internal/gateway/event-dispatches.ts +201 -0
- package/src/internal/gateway/frames.ts +176 -0
- package/src/internal/gateway/options.ts +144 -0
- package/src/internal/gateway/session.ts +625 -0
- package/src/internal/gateway-requests.ts +26 -0
- package/src/internal/gateway.ts +22 -0
- package/src/internal/guild-cache.ts +424 -0
- package/src/internal/guild-discovery.ts +332 -0
- package/src/internal/guild-lifecycle.ts +128 -0
- package/src/internal/guild-settings.ts +209 -0
- package/src/internal/guilds.ts +949 -0
- package/src/internal/init-command.ts +305 -0
- package/src/internal/instance.ts +645 -0
- package/src/internal/invalid-callback-return.ts +28 -0
- package/src/internal/invites.ts +234 -0
- package/src/internal/logging.ts +1007 -0
- package/src/internal/logical-scheduler.ts +139 -0
- package/src/internal/masking.ts +224 -0
- package/src/internal/member-chunks.ts +649 -0
- package/src/internal/member-search-workflow.ts +237 -0
- package/src/internal/member-search.ts +272 -0
- package/src/internal/message-cleanup.ts +515 -0
- package/src/internal/message-fields.ts +71 -0
- package/src/internal/message-search-workflow.ts +166 -0
- package/src/internal/message-search.ts +476 -0
- package/src/internal/message.ts +879 -0
- package/src/internal/metrics.ts +55 -0
- package/src/internal/moderation.ts +288 -0
- package/src/internal/multipart.ts +171 -0
- package/src/internal/node-version.ts +22 -0
- package/src/internal/oauth.ts +1146 -0
- package/src/internal/observer.ts +62 -0
- package/src/internal/operation-signal.ts +26 -0
- package/src/internal/pagination.ts +494 -0
- package/src/internal/permission-requirements.ts +359 -0
- package/src/internal/permissions.ts +417 -0
- package/src/internal/pins.ts +115 -0
- package/src/internal/presence.ts +745 -0
- package/src/internal/protocol/gateway.ts +299 -0
- package/src/internal/rate-limit-templates.ts +138 -0
- package/src/internal/rate-limits.ts +346 -0
- package/src/internal/reaction-collector.ts +499 -0
- package/src/internal/reaction-pages.ts +260 -0
- package/src/internal/reactions.ts +174 -0
- package/src/internal/rejection-scope.ts +119 -0
- package/src/internal/response-json.ts +76 -0
- package/src/internal/rest/admission.ts +210 -0
- package/src/internal/rest/attempt.ts +617 -0
- package/src/internal/rest/classify.ts +391 -0
- package/src/internal/rest/download.ts +658 -0
- package/src/internal/rest/options.ts +145 -0
- package/src/internal/rest/owner.ts +1828 -0
- package/src/internal/rest/request.ts +289 -0
- package/src/internal/rest.ts +9 -0
- package/src/internal/retention-age.ts +33 -0
- package/src/internal/role-hierarchy-workflow.ts +150 -0
- package/src/internal/role-hierarchy.ts +93 -0
- package/src/internal/scheduled-tasks.ts +217 -0
- package/src/internal/sharding.ts +270 -0
- package/src/internal/starter-project.ts +251 -0
- package/src/internal/suggest.ts +50 -0
- package/src/internal/supervisor.ts +2253 -0
- package/src/internal/testing/discovery.ts +23 -0
- package/src/internal/testing/errors.ts +67 -0
- package/src/internal/testing/fixtures.ts +714 -0
- package/src/internal/testing/gateway.ts +305 -0
- package/src/internal/testing/harness.ts +328 -0
- package/src/internal/testing/http.ts +395 -0
- package/src/internal/testing/types.ts +240 -0
- package/src/internal/testing/wait.ts +63 -0
- package/src/internal/thread-events.ts +128 -0
- package/src/internal/threads.ts +718 -0
- package/src/internal/transfer-source.ts +359 -0
- package/src/internal/transport/http.ts +46 -0
- package/src/internal/transport/index.ts +23 -0
- package/src/internal/transport/socket.ts +71 -0
- package/src/internal/transport/user-agent.ts +46 -0
- package/src/internal/uploads.ts +111 -0
- package/src/internal/user-cache.ts +294 -0
- package/src/internal/users.ts +402 -0
- package/src/internal/vanity-url.ts +80 -0
- package/src/internal/webhooks.ts +690 -0
- package/src/invites.ts +87 -0
- package/src/logging.ts +247 -0
- package/src/member-chunks.ts +195 -0
- package/src/member-search.ts +152 -0
- package/src/message-cleanup.ts +308 -0
- package/src/message-errors.ts +245 -0
- package/src/message-search.ts +213 -0
- package/src/messages.ts +768 -0
- package/src/native-commands.ts +1249 -0
- package/src/native-supervisor.ts +345 -0
- package/src/oauth.ts +413 -0
- package/src/observer.ts +118 -0
- package/src/pagination.ts +172 -0
- package/src/permissions.ts +74 -0
- package/src/pins.ts +65 -0
- package/src/presence.ts +124 -0
- package/src/reaction-pages.ts +106 -0
- package/src/reactions.ts +126 -0
- package/src/rest.ts +282 -0
- package/src/role-hierarchy.ts +127 -0
- package/src/sharding.ts +272 -0
- package/src/supervisor.ts +460 -0
- package/src/testing.ts +424 -0
- package/src/text.ts +76 -0
- package/src/threads.ts +274 -0
- package/src/users.ts +237 -0
- package/src/webhooks.ts +512 -0
package/src/events.ts
ADDED
|
@@ -0,0 +1,830 @@
|
|
|
1
|
+
import type { Message, MessageCore, MessageDeletion, MessageBulkDeletion } from "./messages.js"
|
|
2
|
+
import type { ChannelPinsUpdate } from "./pins.js"
|
|
3
|
+
import type { Guild, GuildDeletion, GuildMember, MemberReference } from "./guilds.js"
|
|
4
|
+
import type { GuildEmoji, GuildSticker } from "./expressions.js"
|
|
5
|
+
import type { MessageReaction, MessageReactionBatch, MessageReactionEmojiRemoval, ReactionTarget } from "./reactions.js"
|
|
6
|
+
import type { InviteMetadata } from "./invites.js"
|
|
7
|
+
import type { AuditLogEntry } from "./audit-logs.js"
|
|
8
|
+
import type { GuildThreadChannel, ThreadMember } from "./channels.js"
|
|
9
|
+
|
|
10
|
+
/** Notice that the webhooks in a channel changed.
|
|
11
|
+
* No webhook details or token are included. Fetch the current set explicitly if needed.
|
|
12
|
+
* This notification does not write or invalidate an SDK cache
|
|
13
|
+
*
|
|
14
|
+
* @category Events and collectors
|
|
15
|
+
*/
|
|
16
|
+
export interface WebhooksUpdate {
|
|
17
|
+
/** Community that owns the channel, as a decimal ID */
|
|
18
|
+
readonly guildId: string
|
|
19
|
+
/** Channel whose webhook collection changed */
|
|
20
|
+
readonly channelId: string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Notice that an invite was deleted, without its former settings.
|
|
24
|
+
* Treat the code as access-granting data and keep it out of diagnostics and public logs
|
|
25
|
+
*
|
|
26
|
+
* @category Events and collectors
|
|
27
|
+
*/
|
|
28
|
+
export interface InviteDeleteEvent {
|
|
29
|
+
/** Deleted invite's code, the stable identity supplied for this event */
|
|
30
|
+
readonly code: string
|
|
31
|
+
/** Invite destination channel ID, when supplied */
|
|
32
|
+
readonly channelId?: string
|
|
33
|
+
/** Invite destination community ID, when supplied */
|
|
34
|
+
readonly guildId?: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Audit entry newly written in a community, using the same field names as audit-log requests.
|
|
38
|
+
* The entry and its nested data are frozen. Access requires Fluxer's VIEW_AUDIT_LOG permission.
|
|
39
|
+
* The reason, options and changes fields can contain application or provider data, so do not treat them as safe diagnostics.
|
|
40
|
+
* Numeric and boolean option values are converted to the same types used by audit-log reads
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* import type { Client } from "@neontechspace/fluxerly"
|
|
44
|
+
* export function administrativeEventsExample(client: Client) {
|
|
45
|
+
* return client.subscribe("guildAuditLogEntryCreate", { maxPendingMessages: 10 })
|
|
46
|
+
* }
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* @category Events and collectors
|
|
50
|
+
*/
|
|
51
|
+
export interface GuildAuditLogEntryCreate extends AuditLogEntry {
|
|
52
|
+
/** Community that recorded the entry */
|
|
53
|
+
readonly guildId: string
|
|
54
|
+
/** Acting account ID supplied for this entry */
|
|
55
|
+
readonly userId: string
|
|
56
|
+
/** Affected resource ID or invite code, or null when Fluxer recorded no target */
|
|
57
|
+
readonly targetId: string | null
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** Notice that an account began typing, not a lasting indication that it is still typing.
|
|
61
|
+
* The SDK does not cache this notice or fetch the user or channel
|
|
62
|
+
*
|
|
63
|
+
* @category Events and collectors
|
|
64
|
+
*/
|
|
65
|
+
export interface TypingStart {
|
|
66
|
+
/** Channel ID where typing began */
|
|
67
|
+
readonly channelId: string
|
|
68
|
+
/** Account ID that began typing */
|
|
69
|
+
readonly userId: string
|
|
70
|
+
/** Fluxer's Unix timestamp in whole seconds, not milliseconds */
|
|
71
|
+
readonly timestamp: number
|
|
72
|
+
/** Owning community ID, when supplied. Absence alone does not prove that the channel is private */
|
|
73
|
+
readonly guildId?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** Custom emoji collection supplied in one community update, frozen in received order.
|
|
77
|
+
* No creator accounts or image contents are included. This is not an initial enumeration or an automatic cache refill
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* import type { Client } from "@neontechspace/fluxerly"
|
|
81
|
+
* export function expressionEventsExample(client: Client) {
|
|
82
|
+
* return client.subscribe("guildEmojisUpdate", { maxPendingMessages: 10 })
|
|
83
|
+
* }
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* @category Events and collectors
|
|
87
|
+
*/
|
|
88
|
+
export interface GuildEmojisUpdate {
|
|
89
|
+
/** Community that owns this emoji collection, as a decimal ID */
|
|
90
|
+
readonly guildId: string
|
|
91
|
+
/** Emoji snapshots in Fluxer's received order */
|
|
92
|
+
readonly items: readonly GuildEmoji[]
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** Custom sticker collection supplied in one community update, frozen in received order.
|
|
96
|
+
* No creator accounts or image contents are included. This is not an initial enumeration or an automatic cache refill
|
|
97
|
+
*
|
|
98
|
+
* @category Events and collectors
|
|
99
|
+
*/
|
|
100
|
+
export interface GuildStickersUpdate {
|
|
101
|
+
/** Community that owns this sticker collection, as a decimal ID */
|
|
102
|
+
readonly guildId: string
|
|
103
|
+
/** Sticker snapshots in Fluxer's received order */
|
|
104
|
+
readonly items: readonly GuildSticker[]
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** Frozen community-server health notice, without a cache write or automatic reconnect.
|
|
108
|
+
* A degraded community server is lagging, not disconnected or unavailable
|
|
109
|
+
*
|
|
110
|
+
* @category Events and collectors
|
|
111
|
+
*/
|
|
112
|
+
export interface GuildHealthUpdate {
|
|
113
|
+
/** Community whose server health changed, as a decimal ID */
|
|
114
|
+
readonly guildId: string
|
|
115
|
+
/** True while the community's server is lagging, false when it recovers. This does not report disconnection or unavailability */
|
|
116
|
+
readonly degraded: boolean
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** Frozen community data received with an availability event, plus information about whether this is a new join.
|
|
120
|
+
* The event keeps the Guild fields. REST results and cached Guild values do not gain join state.
|
|
121
|
+
* Subscribe before connecting to receive startup availability events. The `connect` call does not wait for them
|
|
122
|
+
*
|
|
123
|
+
* Join classification requires a Fluxer bot gateway implementing the unavailable-marker distinction.
|
|
124
|
+
* Older or custom instances that omit the marker for startup snapshots cannot be classified reliably.
|
|
125
|
+
* The SDK does not detect that support or infer joins from readiness, elapsed time or cache contents.
|
|
126
|
+
* A supplied marker other than false is invalid for an available snapshot and fails the gateway as a protocol error
|
|
127
|
+
* @example
|
|
128
|
+
* ```ts
|
|
129
|
+
* import type { Client } from "@neontechspace/fluxerly"
|
|
130
|
+
*
|
|
131
|
+
* export function waitForGuildJoin(client: Client) {
|
|
132
|
+
* return client.waitFor("guildCreate", { filter: (guild) => guild.isNewJoin, timeoutMs: 30_000 })
|
|
133
|
+
* }
|
|
134
|
+
* ```
|
|
135
|
+
* @example
|
|
136
|
+
* ```ts
|
|
137
|
+
* import type { Client } from "@neontechspace/fluxerly/effect"
|
|
138
|
+
*
|
|
139
|
+
* export function waitForGuildJoinEffect(client: Client) {
|
|
140
|
+
* return client.waitFor("guildCreate", { filter: (guild) => guild.isNewJoin, timeoutMs: 30_000 })
|
|
141
|
+
* }
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* @category Events and collectors
|
|
145
|
+
*/
|
|
146
|
+
export interface GuildCreate extends Guild {
|
|
147
|
+
/** True when the outer GUILD_CREATE omits unavailable, false when it supplies literal false.
|
|
148
|
+
* On a supporting bot gateway, true identifies the first create for a community joined during this session
|
|
149
|
+
* and absent from READY. It remains true if temporary unavailability preceded that first create.
|
|
150
|
+
* Startup and recovery snapshots carry false, including a fresh Identify's membership baseline.
|
|
151
|
+
* A retained join dispatch may replay during Resume, so this is not an exactly-once notification
|
|
152
|
+
*/
|
|
153
|
+
readonly isNewJoin: boolean
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** Payload types for community availability, configuration and visibility events.
|
|
157
|
+
* A create event can mean an existing community became available, rather than a new community was created
|
|
158
|
+
* @example
|
|
159
|
+
* ```ts
|
|
160
|
+
* import type { Client } from "@neontechspace/fluxerly"
|
|
161
|
+
*
|
|
162
|
+
* export function guildEventsExample(client: Client) {
|
|
163
|
+
* return client.subscribe("guildDelete", { maxPendingMessages: 10 })
|
|
164
|
+
* }
|
|
165
|
+
* ```
|
|
166
|
+
*
|
|
167
|
+
* @category Events and collectors
|
|
168
|
+
*/
|
|
169
|
+
export interface GuildLifecycleEvents {
|
|
170
|
+
/** Community data became available, including startup hydration, recovery and joins.
|
|
171
|
+
* Use isNewJoin for the provider's join distinction, subject to GuildCreate's gateway-support and replay limits.
|
|
172
|
+
* Before delivery, fills the enabled community, role, emoji, sticker and channel caches from the snapshot, replacing this
|
|
173
|
+
* community's earlier roles, emojis, stickers, channels and threads. The channel cache takes the active threads the
|
|
174
|
+
* bot can view, and a malformed thread is left out with a gateway.threadSkipped Warn record.
|
|
175
|
+
* Members are not retained, because the snapshot lists only a few
|
|
176
|
+
*/
|
|
177
|
+
readonly guildCreate: GuildCreate
|
|
178
|
+
/** Current community configuration, not previous-and-current values or a patch to merge */
|
|
179
|
+
readonly guildUpdate: Guild
|
|
180
|
+
/** Community visibility ended or became temporarily unavailable, without establishing deletion or the bot's membership outcome.
|
|
181
|
+
* Before delivery, enabled community-resource and channel caches invalidate this community's observations.
|
|
182
|
+
* Cached messages in this community or with unknown community scope also invalidate, since the SDK has no channel-to-community lookup index
|
|
183
|
+
*/
|
|
184
|
+
readonly guildDelete: GuildDeletion
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Account presence reported by Fluxer at one point in time, not a cached or continuously updated status.
|
|
189
|
+
* Changes can be missed during connection gaps. The SDK does not fetch missing presence or account details.
|
|
190
|
+
* Community-scoped updates include guildId, while valid account-scoped observations can omit it.
|
|
191
|
+
* Listening for this event does not request community-member presence subscriptions or guarantee delivery.
|
|
192
|
+
* The hosted provider delivers bot presence through community subscriptions, not friends or group DMs.
|
|
193
|
+
* Common statuses are online, idle, dnd and offline. Other strings are retained if Fluxer adds statuses
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```ts
|
|
197
|
+
* import type { Client } from "@neontechspace/fluxerly"
|
|
198
|
+
* export function presenceEventsExample(client: Client) {
|
|
199
|
+
* return client.subscribe("presenceUpdate", { maxPendingMessages: 10 })
|
|
200
|
+
* }
|
|
201
|
+
* ```
|
|
202
|
+
*
|
|
203
|
+
* @category Events and collectors
|
|
204
|
+
*/
|
|
205
|
+
export interface PresenceUpdate {
|
|
206
|
+
/** Community where the account's presence was observed, when supplied */
|
|
207
|
+
readonly guildId?: string
|
|
208
|
+
/** Account ID whose presence changed, without an account lookup */
|
|
209
|
+
readonly userId: string
|
|
210
|
+
/**
|
|
211
|
+
* Status Fluxer reported at event time, which can already be stale when read.
|
|
212
|
+
* A status this SDK version does not recognize is reported as `unknown`, so a switch over the values stays exhaustive
|
|
213
|
+
*/
|
|
214
|
+
readonly status: ObservedPresenceStatus
|
|
215
|
+
/** Whether Fluxer reported a mobile client */
|
|
216
|
+
readonly mobile: boolean
|
|
217
|
+
/** Whether Fluxer reported the account as away from keyboard */
|
|
218
|
+
readonly afk: boolean
|
|
219
|
+
/**
|
|
220
|
+
* The account's custom status, or null when it has none. Fluxer reports null for an account whose status is offline
|
|
221
|
+
* or invisible, so an invisible account never reveals one, and after it clears or expires a status.
|
|
222
|
+
* Fluxer stores custom statuses without validating them, so a field of an unexpected type reads as null and the
|
|
223
|
+
* presence is still delivered
|
|
224
|
+
*/
|
|
225
|
+
readonly customStatus: ObservedCustomStatus | null
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* A custom status observed in a presence event, kept as Fluxer sent it. The SDK does not compare expiresAt with the
|
|
230
|
+
* clock, so a status can be past its expiry when read. A field Fluxer left out or sent as null is null
|
|
231
|
+
*
|
|
232
|
+
* @category Events and collectors
|
|
233
|
+
*/
|
|
234
|
+
export interface ObservedCustomStatus {
|
|
235
|
+
/** Status text, or null when the status has none, such as one that shows only an emoji */
|
|
236
|
+
readonly text: string | null
|
|
237
|
+
/** The emoji shown with the text, or null when the status has none */
|
|
238
|
+
readonly emoji: ObservedCustomStatusEmoji | null
|
|
239
|
+
/** ISO 8601 time at which the status expires, or null when it does not expire */
|
|
240
|
+
readonly expiresAt: string | null
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* The emoji of an observed custom status. A Unicode emoji has a name and no id, and a custom emoji has both
|
|
245
|
+
*
|
|
246
|
+
* @category Events and collectors
|
|
247
|
+
*/
|
|
248
|
+
export interface ObservedCustomStatusEmoji {
|
|
249
|
+
/** ID of the custom emoji, or null for a Unicode emoji */
|
|
250
|
+
readonly id: string | null
|
|
251
|
+
/** The Unicode emoji, or the custom emoji's name. Null when Fluxer sent an id without a name */
|
|
252
|
+
readonly name: string | null
|
|
253
|
+
/** Whether the custom emoji is animated, always false for a Unicode emoji or when Fluxer left the flag out */
|
|
254
|
+
readonly animated: boolean
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* An account status observed in a presence event. Fluxer reports invisible accounts to others as offline, and a status
|
|
259
|
+
* this SDK version does not recognize is `unknown`
|
|
260
|
+
*
|
|
261
|
+
* @category Events and collectors
|
|
262
|
+
*/
|
|
263
|
+
export type ObservedPresenceStatus = "online" | "idle" | "dnd" | "offline" | "invisible" | "unknown"
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Visible online presences grouped into one event after a community becomes available again.
|
|
267
|
+
* Fluxer supplies community context for every entry, omits the recipient's own presence and splits batches at 500 entries.
|
|
268
|
+
* A batch can include visible members outside this client's selected member IDs.
|
|
269
|
+
* The frozen batch does not refill a cache, acknowledge subscriptions or emit individual presenceUpdate events
|
|
270
|
+
*
|
|
271
|
+
* @category Events and collectors
|
|
272
|
+
*/
|
|
273
|
+
export interface PresenceUpdateBulk {
|
|
274
|
+
/** Community ID shared by every presence in the batch */
|
|
275
|
+
readonly guildId: string
|
|
276
|
+
/** Frozen presence observations, each carrying this batch's guildId */
|
|
277
|
+
readonly presences: readonly PresenceUpdate[]
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* One account's voice connection as observed in a community, without audio or video access.
|
|
282
|
+
* A null `channelId` reports a disconnect. Moving channels can produce a disconnect followed by a join with a new connectionId.
|
|
283
|
+
* Fluxer filters delivery by channel visibility, and connection gaps can miss changes.
|
|
284
|
+
* This frozen observation is not retained as a voice-state cache and does not trigger lookups
|
|
285
|
+
*
|
|
286
|
+
* @category Events and collectors
|
|
287
|
+
*/
|
|
288
|
+
export interface VoiceState {
|
|
289
|
+
/** Community that owns this voice connection */
|
|
290
|
+
readonly guildId: string
|
|
291
|
+
/** Observed voice channel ID, or null for a disconnect */
|
|
292
|
+
readonly channelId: string | null
|
|
293
|
+
/** Connected account's user ID */
|
|
294
|
+
readonly userId: string
|
|
295
|
+
/** Fluxer's connection ID, usable to target one connection in a move or disconnect request */
|
|
296
|
+
readonly connectionId: string
|
|
297
|
+
/** Gateway session ID, when supplied by Fluxer */
|
|
298
|
+
readonly sessionId?: string
|
|
299
|
+
/** Whether the community has muted this connection */
|
|
300
|
+
readonly isMuted: boolean
|
|
301
|
+
/** Whether the community has deafened this connection */
|
|
302
|
+
readonly isDeafened: boolean
|
|
303
|
+
/** Whether the participant has muted themselves */
|
|
304
|
+
readonly isSelfMuted: boolean
|
|
305
|
+
/** Whether the participant has deafened themselves */
|
|
306
|
+
readonly isSelfDeafened: boolean
|
|
307
|
+
/** Whether Fluxer identifies this connection as mobile */
|
|
308
|
+
readonly isMobile: boolean
|
|
309
|
+
/** Whether Fluxer reports this connection as prevented from speaking */
|
|
310
|
+
readonly isSuppressed: boolean
|
|
311
|
+
/** Whether the participant is publishing camera video. An omitted flag reads as false */
|
|
312
|
+
readonly isSelfVideoOn: boolean
|
|
313
|
+
/**
|
|
314
|
+
* Whether the connection advertises a screen-share track. The participant's client reports it, and in a community
|
|
315
|
+
* Fluxer sets it to false while the participant lacks the Stream permission. An omitted flag reads as false
|
|
316
|
+
*/
|
|
317
|
+
readonly isSelfStreaming: boolean
|
|
318
|
+
/**
|
|
319
|
+
* Keys of the screen shares this connection is watching, empty when it watches none or Fluxer omits them.
|
|
320
|
+
* A key reads `{guildId}:{channelId}:{connectionId}` for a community voice channel and `dm:{channelId}:{connectionId}`
|
|
321
|
+
* for a private call, where the last part is the publisher's connectionId
|
|
322
|
+
*/
|
|
323
|
+
readonly viewerStreamKeys: readonly string[]
|
|
324
|
+
/**
|
|
325
|
+
* The participant's community member data as Fluxer attached it to this voice state, omitted when Fluxer sends none.
|
|
326
|
+
* Fluxer refreshes it when the voice state changes, so it can lag behind later nickname or role edits.
|
|
327
|
+
* It is a frozen observation and neither reads nor writes any member cache
|
|
328
|
+
*/
|
|
329
|
+
readonly member?: GuildMember
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Visible voice connections supplied when a community becomes available.
|
|
334
|
+
* Register before connecting to receive startup snapshots.
|
|
335
|
+
* An empty voiceStates array means Fluxer explicitly supplied no initial connections. No event is emitted when the collection is absent.
|
|
336
|
+
* The frozen collection is not a complete member roster or a voice-state cache, and can become stale immediately
|
|
337
|
+
*
|
|
338
|
+
* @category Events and collectors
|
|
339
|
+
*/
|
|
340
|
+
export interface VoiceStateSnapshot {
|
|
341
|
+
/** Community whose availability data supplied these connections */
|
|
342
|
+
readonly guildId: string
|
|
343
|
+
/** Frozen voice connections in received order, including an explicitly supplied empty array */
|
|
344
|
+
readonly voiceStates: readonly VoiceState[]
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* A participant's entrance sound started playing in a voice channel or private call they were already connected to.
|
|
349
|
+
* Fluxer sends one event to every other connected participant, never to the participant whose sound plays.
|
|
350
|
+
* The SDK does not download the sound, fetch the channel or account, or cache this notice
|
|
351
|
+
*
|
|
352
|
+
* @category Events and collectors
|
|
353
|
+
*/
|
|
354
|
+
export interface EntranceSoundPlay {
|
|
355
|
+
/** Account ID of the participant whose sound plays */
|
|
356
|
+
readonly userId: string
|
|
357
|
+
/** Voice channel or private call channel ID */
|
|
358
|
+
readonly channelId: string
|
|
359
|
+
/** Community that owns the voice channel, or null for a private call */
|
|
360
|
+
readonly guildId: string | null
|
|
361
|
+
/** Entrance sound ID */
|
|
362
|
+
readonly soundId: string
|
|
363
|
+
/** Fluxer's content hash of the sound file, usable to reuse an already downloaded copy */
|
|
364
|
+
readonly hash: string
|
|
365
|
+
/** Address to download the sound from, as received and without an SDK download or validation of its host */
|
|
366
|
+
readonly url: string
|
|
367
|
+
/** Sound length in whole milliseconds, a nonnegative safe integer */
|
|
368
|
+
readonly durationMs: number
|
|
369
|
+
/** Media type Fluxer reported for the sound file, such as audio/ogg */
|
|
370
|
+
readonly contentType: string
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* One participant's connection in a private call, as observed when the call was created or updated.
|
|
375
|
+
* The fields match VoiceState without a community and member, since calls take place in private channels and Fluxer
|
|
376
|
+
* attaches no community member there.
|
|
377
|
+
* Fluxer's region_id and server_id entry fields are internal routing data and are not projected
|
|
378
|
+
*
|
|
379
|
+
* @category Events and collectors
|
|
380
|
+
*/
|
|
381
|
+
export interface CallVoiceState extends Omit<VoiceState, "guildId" | "member"> {}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Current state of an active private-channel call: Its ringing set, participants and voice region.
|
|
385
|
+
* This is a frozen observation, not a patch to merge and not a cached call record. Changes can be missed during connection gaps
|
|
386
|
+
*
|
|
387
|
+
* @category Events and collectors
|
|
388
|
+
*/
|
|
389
|
+
export interface CallUpdate {
|
|
390
|
+
/** Private channel ID the call takes place in */
|
|
391
|
+
readonly channelId: string
|
|
392
|
+
/** ID of the call message that opened the call */
|
|
393
|
+
readonly messageId: string
|
|
394
|
+
/** Voice region serving the call, or null until Fluxer chooses one */
|
|
395
|
+
readonly region: string | null
|
|
396
|
+
/** Account IDs currently being rung, in received order */
|
|
397
|
+
readonly ringingUserIds: readonly string[]
|
|
398
|
+
/** Connected participants, frozen in Fluxer's order by participant ID */
|
|
399
|
+
readonly voiceStates: readonly CallVoiceState[]
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* A private-channel call began or became visible, including initial call state delivered shortly after READY
|
|
404
|
+
* and state recovered after a lost call connection.
|
|
405
|
+
* Recovered state can repeat a call that was already observed, so this is not proof that a new call started
|
|
406
|
+
*
|
|
407
|
+
* @category Events and collectors
|
|
408
|
+
*/
|
|
409
|
+
export interface CallCreate extends CallUpdate {
|
|
410
|
+
/** Every recipient of the channel, whether or not they joined the call. Present only on initial or recovered call state */
|
|
411
|
+
readonly recipientIds?: readonly string[]
|
|
412
|
+
/** Unix time in milliseconds when the call was opened. Present only on initial or recovered call state */
|
|
413
|
+
readonly createdAtMs?: number
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* A private-channel call ended or became temporarily unavailable
|
|
418
|
+
*
|
|
419
|
+
* @category Events and collectors
|
|
420
|
+
*/
|
|
421
|
+
export interface CallDelete {
|
|
422
|
+
/** Private channel ID the call took place in */
|
|
423
|
+
readonly channelId: string
|
|
424
|
+
/** True when the call became unavailable rather than ending.
|
|
425
|
+
* An unavailable call can return with a later callCreate that includes its recipients and creation time, although Fluxer does not guarantee recovery
|
|
426
|
+
*/
|
|
427
|
+
readonly unavailable: boolean
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* A thread that was created or that the bot was added to, with whether it was just created.
|
|
432
|
+
* Fluxer also sends this event to the bot when it joins or is added to an existing thread, then with isNewlyCreated
|
|
433
|
+
* false. The bot's own membership is in membership when the bot is a member
|
|
434
|
+
* @example
|
|
435
|
+
* ```ts
|
|
436
|
+
* import type { Client } from "@neontechspace/fluxerly"
|
|
437
|
+
*
|
|
438
|
+
* export function greetNewThreads(client: Client) {
|
|
439
|
+
* return client.on("threadCreate", (thread) =>
|
|
440
|
+
* thread.isNewlyCreated ? client.messages.send(thread.id, `Welcome to ${thread.name}`) : undefined,
|
|
441
|
+
* )
|
|
442
|
+
* }
|
|
443
|
+
* ```
|
|
444
|
+
*
|
|
445
|
+
* @category Events and collectors
|
|
446
|
+
*/
|
|
447
|
+
export type ThreadCreateEvent = GuildThreadChannel & {
|
|
448
|
+
/** True when the thread was just created, false when the bot joined or was added to an existing thread */
|
|
449
|
+
readonly isNewlyCreated: boolean
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Identity of a deleted thread, without its former settings or messages.
|
|
454
|
+
* Deleting a parent channel deletes its threads without this event
|
|
455
|
+
*
|
|
456
|
+
* @category Events and collectors
|
|
457
|
+
*/
|
|
458
|
+
export interface ThreadDeletion {
|
|
459
|
+
/** Decimal ID of the deleted thread */
|
|
460
|
+
readonly id: string
|
|
461
|
+
/** Community that held the thread */
|
|
462
|
+
readonly guildId: string
|
|
463
|
+
/** Channel that held the thread */
|
|
464
|
+
readonly parentId: string
|
|
465
|
+
/** Type of the deleted thread */
|
|
466
|
+
readonly type: GuildThreadChannel["type"]
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* The bot's complete set of active threads in a community, or in some of its channels, as Fluxer replaced it.
|
|
471
|
+
* Fluxer sends it when the bot gains access to channels with active threads, and when a community reloads its thread
|
|
472
|
+
* state. It is never replayed on Resume
|
|
473
|
+
*
|
|
474
|
+
* @category Events and collectors
|
|
475
|
+
*/
|
|
476
|
+
export interface ThreadListSync {
|
|
477
|
+
/** Community whose threads were replaced */
|
|
478
|
+
readonly guildId: string
|
|
479
|
+
/** Channels whose threads were replaced. Absent when the list replaces every thread in the community */
|
|
480
|
+
readonly parentIds?: readonly string[]
|
|
481
|
+
/** Every active thread the bot can view in the replaced scope, each with the bot's membership when it is a member */
|
|
482
|
+
readonly threads: readonly GuildThreadChannel[]
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Accounts that joined or left one thread, including the bot itself
|
|
487
|
+
*
|
|
488
|
+
* @category Events and collectors
|
|
489
|
+
*/
|
|
490
|
+
export interface ThreadMembersUpdate {
|
|
491
|
+
/** Decimal ID of the thread */
|
|
492
|
+
readonly threadId: string
|
|
493
|
+
/** Community that holds the thread */
|
|
494
|
+
readonly guildId: string
|
|
495
|
+
/** Approximate number of thread members after the change, capped at 50 */
|
|
496
|
+
readonly memberCount: number
|
|
497
|
+
/** Members who joined, each with their community membership when Fluxer has one for the account. Empty when none joined */
|
|
498
|
+
readonly added: readonly ThreadMember[]
|
|
499
|
+
/** Decimal IDs of the accounts that left. Empty when none left */
|
|
500
|
+
readonly removedUserIds: readonly string[]
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Delivery details for one event, passed to on handlers and event middleware.
|
|
505
|
+
* The object is frozen and describes how this client received the event, not Fluxer state
|
|
506
|
+
*
|
|
507
|
+
* @category Events and collectors
|
|
508
|
+
*/
|
|
509
|
+
export interface EventContext {
|
|
510
|
+
/**
|
|
511
|
+
* Local shard whose gateway connection received the event. A client without a sharding plan uses shard 0 until
|
|
512
|
+
* Fluxer requires more shards and it moves to automatic sharding
|
|
513
|
+
*/
|
|
514
|
+
readonly shardId: number
|
|
515
|
+
/** UTF-8 byte length of the whole received gateway frame that carried the event, the same size counted against maxPendingBytes.
|
|
516
|
+
* Events decoded from one frame, such as guildCreate and its voiceStateSnapshot, report the same value
|
|
517
|
+
*/
|
|
518
|
+
readonly receivedBytes: number
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* One on handler invocation of a specific event type, as seen by event middleware
|
|
523
|
+
*
|
|
524
|
+
* @category Events and collectors
|
|
525
|
+
*/
|
|
526
|
+
export interface EventInvocationOf<K extends EventName, M extends MessageCore = Message> {
|
|
527
|
+
/** Event name the subscription was registered for */
|
|
528
|
+
readonly event: K
|
|
529
|
+
/** Frozen event payload the handler receives */
|
|
530
|
+
readonly payload: EventMap<M>[K]
|
|
531
|
+
/** Shard and received size of the frame that carried the event */
|
|
532
|
+
readonly context: EventContext
|
|
533
|
+
/** Identifier of the subscription whose handler this invocation runs, such as messageCreate#3 */
|
|
534
|
+
readonly subscriptionId: string
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* One on handler invocation passed to event middleware.
|
|
539
|
+
* Compare the event field with an event name to narrow the payload type
|
|
540
|
+
*
|
|
541
|
+
* @category Events and collectors
|
|
542
|
+
*/
|
|
543
|
+
export type EventInvocation<M extends MessageCore = Message> = {
|
|
544
|
+
readonly [K in EventName]: EventInvocationOf<K, M>
|
|
545
|
+
}[EventName]
|
|
546
|
+
|
|
547
|
+
/** Event names and payload types accepted by on, events and waitFor.
|
|
548
|
+
* Register listeners before triggering an action to observe its event.
|
|
549
|
+
* Payloads are frozen copies of data received from Fluxer. They cannot be changed and do not update as Fluxer changes.
|
|
550
|
+
* A new listener does not receive earlier events from the cache.
|
|
551
|
+
* Requests do not generate synthetic events. Changes can be missed during disconnection and recovery.
|
|
552
|
+
* Bulk events remain one event instead of also delivering their individual entries.
|
|
553
|
+
* Message events use this client's messageFields selection. Known malformed received data still fails the connection even if excluded.
|
|
554
|
+
* Community and account cache handling, where documented below, occurs before event delivery
|
|
555
|
+
*
|
|
556
|
+
* @category Events and collectors
|
|
557
|
+
*/
|
|
558
|
+
export interface EventMap<M extends MessageCore = Message> extends GuildLifecycleEvents {
|
|
559
|
+
/** Community-server lag or recovery, without a disconnection, availability change, cache invalidation or automatic reconnect */
|
|
560
|
+
readonly guildHealthUpdate: GuildHealthUpdate
|
|
561
|
+
/** Current public account data, without private account settings.
|
|
562
|
+
* Updates the enabled account cache and clears the enabled private-conversation cache
|
|
563
|
+
*/
|
|
564
|
+
readonly userUpdate: import("./users.js").User
|
|
565
|
+
/** A private conversation became visible to this bot, which does not prove it was just created.
|
|
566
|
+
* Updates its enabled private-conversation cache observation
|
|
567
|
+
*/
|
|
568
|
+
readonly directMessageCreate: import("./users.js").DirectMessageChannel
|
|
569
|
+
/** Current private conversation data, without previous values to compare. Updates its enabled private-conversation cache observation */
|
|
570
|
+
readonly directMessageUpdate: import("./users.js").DirectMessageChannel
|
|
571
|
+
/** Visible online presences delivered together after community recovery, without individual presenceUpdate events */
|
|
572
|
+
readonly presenceUpdateBulk: PresenceUpdateBulk
|
|
573
|
+
/** Visible initial voice connections when a community becomes available, including an explicitly supplied empty collection */
|
|
574
|
+
readonly voiceStateSnapshot: VoiceStateSnapshot
|
|
575
|
+
/** A visible voice connection joined, changed or disconnected. A move can produce multiple phases, and no voice-state cache is updated */
|
|
576
|
+
readonly voiceStateUpdate: VoiceState
|
|
577
|
+
/** A private conversation closed, was left, or was deleted for this bot. Other accounts may still have access.
|
|
578
|
+
* Clears the enabled private-conversation cache and evicts this channel's cached messages
|
|
579
|
+
*/
|
|
580
|
+
readonly directMessageDelete: {
|
|
581
|
+
/** Private conversation channel ID as a decimal string */
|
|
582
|
+
readonly id: string
|
|
583
|
+
}
|
|
584
|
+
/** A private conversation gained a recipient. Clears the enabled private-conversation cache without reconstructing a recipient list */
|
|
585
|
+
readonly directMessageRecipientAdd: import("./users.js").DirectMessageRecipientChange
|
|
586
|
+
/** A private conversation lost a recipient. Clears the enabled private-conversation cache without establishing conversation deletion */
|
|
587
|
+
readonly directMessageRecipientRemove: import("./users.js").DirectMessageRecipientChange
|
|
588
|
+
/** A visible community channel's webhook collection changed, without webhook details, tokens, cache writes or automatic requests */
|
|
589
|
+
readonly webhooksUpdate: WebhooksUpdate
|
|
590
|
+
/** Invite metadata supplied when an invite was created. Its code and URL grant access, so keep them out of diagnostics and public logs */
|
|
591
|
+
readonly inviteCreate: InviteMetadata
|
|
592
|
+
/** A deleted invite's code and any destination IDs Fluxer still supplied, without reconstructing its old settings */
|
|
593
|
+
readonly inviteDelete: InviteDeleteEvent
|
|
594
|
+
/** A newly recorded community audit entry, requiring VIEW_AUDIT_LOG. Its reason, options and changes are not safe diagnostic text */
|
|
595
|
+
readonly guildAuditLogEntryCreate: GuildAuditLogEntryCreate
|
|
596
|
+
/** Updated community emoji collection, not an initial list or cache refill.
|
|
597
|
+
* Invalidates the enabled expression cache before delivery. Fetch explicitly when current state matters after a connection gap
|
|
598
|
+
*/
|
|
599
|
+
readonly guildEmojisUpdate: GuildEmojisUpdate
|
|
600
|
+
/** Updated community sticker collection, not an initial list or cache refill.
|
|
601
|
+
* Invalidates the enabled expression cache before delivery. Fetch explicitly when current state matters after a connection gap
|
|
602
|
+
*/
|
|
603
|
+
readonly guildStickersUpdate: GuildStickersUpdate
|
|
604
|
+
/** A ban was recorded for these community and account IDs, without full ban details or proof that member removal finished.
|
|
605
|
+
* Evicts the enabled member cache entry
|
|
606
|
+
*/
|
|
607
|
+
readonly guildBanAdd: MemberReference
|
|
608
|
+
/** An explicit ban removal, not proof of rejoining. A ban expiring automatically may not emit this event.
|
|
609
|
+
* Evicts the enabled member cache entry
|
|
610
|
+
*/
|
|
611
|
+
readonly guildBanRemove: MemberReference
|
|
612
|
+
/** A community channel became visible, possibly after creation, without establishing its creation time or enumerating initial channels.
|
|
613
|
+
* Updates its enabled channel-cache observation
|
|
614
|
+
*/
|
|
615
|
+
readonly guildChannelCreate: import("./channels.js").GuildChannel
|
|
616
|
+
/** Current community channel data, without previous values. Fetch explicitly if a decision requires fresh permissions.
|
|
617
|
+
* Updates its enabled channel-cache observation, except a category update invalidates all channels cached for the community
|
|
618
|
+
*/
|
|
619
|
+
readonly guildChannelUpdate: import("./channels.js").GuildChannel
|
|
620
|
+
/** A community channel was deleted or became invisible. Evicts its cached messages, without generating message deletion events.
|
|
621
|
+
* Evicts its enabled channel-cache entry. A category deletion invalidates all channels cached for that community.
|
|
622
|
+
* Deleting a text, announcement, forum or media channel also deletes its threads, and Fluxer sends no threadDelete
|
|
623
|
+
* for them. The channel cache then evicts the threads whose parentId is this channel, and the message cache evicts
|
|
624
|
+
* the messages of every channel in this community that the channel cache does not hold outside those threads,
|
|
625
|
+
* including messages without community context. Without the channel cache that is every message of the community
|
|
626
|
+
*/
|
|
627
|
+
readonly guildChannelDelete: import("./channels.js").GuildChannel
|
|
628
|
+
/** Visible community-channel updates grouped into one batch, without individual guildChannelUpdate events.
|
|
629
|
+
* This is not the complete channel list or proof that permission copying has finished.
|
|
630
|
+
* Invalidates the enabled channel cache for this community
|
|
631
|
+
*/
|
|
632
|
+
readonly guildChannelUpdateBulk: import("./channels.js").GuildChannelUpdateBulk
|
|
633
|
+
/** A thread was created, or the bot joined or was added to an existing thread, as isNewlyCreated tells.
|
|
634
|
+
* Stores the thread, without isNewlyCreated, in the enabled channel cache
|
|
635
|
+
*/
|
|
636
|
+
readonly threadCreate: ThreadCreateEvent
|
|
637
|
+
/** Current thread data after a change such as a rename, archive or lock, without previous values.
|
|
638
|
+
* Fluxer leaves the bot's membership out of this event. Replaces the thread's enabled channel-cache observation
|
|
639
|
+
*/
|
|
640
|
+
readonly threadUpdate: GuildThreadChannel
|
|
641
|
+
/** A thread was deleted. Evicts it from the enabled channel cache and evicts its cached messages, without
|
|
642
|
+
* generating message deletion events. Deleting a parent channel deletes its threads without this event
|
|
643
|
+
*/
|
|
644
|
+
readonly threadDelete: ThreadDeletion
|
|
645
|
+
/** The bot's active threads in a community, or in some of its channels, were replaced. Before delivery, the enabled
|
|
646
|
+
* channel cache evicts its threads in that scope and stores the listed ones. Fluxer never replays this event on Resume,
|
|
647
|
+
* so a resumed shard's cached threads are evicted instead
|
|
648
|
+
*/
|
|
649
|
+
readonly threadListSync: ThreadListSync
|
|
650
|
+
/** Accounts joined or left a thread. When the bot is one of them, or before the bot's account ID is known, the
|
|
651
|
+
* enabled channel cache evicts the thread, because its membership changed. Otherwise the cached memberCount is not
|
|
652
|
+
* updated
|
|
653
|
+
*/
|
|
654
|
+
readonly threadMembersUpdate: ThreadMembersUpdate
|
|
655
|
+
/** A community role creation observation, not an initial enumeration of roles. Updates the enabled role-cache observation */
|
|
656
|
+
readonly guildRoleCreate: import("./guilds.js").GuildRole
|
|
657
|
+
/** Current role data, without previous values. Updates the enabled role-cache observation */
|
|
658
|
+
readonly guildRoleUpdate: import("./guilds.js").GuildRole
|
|
659
|
+
/** Role updates grouped into one batch, without individual guildRoleUpdate events or a complete role list.
|
|
660
|
+
* Updates the enabled role-cache observations for supplied roles
|
|
661
|
+
*/
|
|
662
|
+
readonly guildRoleUpdateBulk: import("./guilds.js").GuildRoleUpdateBulk
|
|
663
|
+
/** Deleted role's IDs, without its former settings or a guarantee that affected members each produce an update.
|
|
664
|
+
* Invalidates enabled role and member caches for the community
|
|
665
|
+
*/
|
|
666
|
+
readonly guildRoleDelete: import("./guilds.js").RoleReference
|
|
667
|
+
/** A member join observation, not an initial roster or complete community membership view. Updates the enabled member-cache observation */
|
|
668
|
+
readonly guildMemberAdd: import("./guilds.js").GuildMember
|
|
669
|
+
/** Current member data. Fluxer can limit delivery by community size and session visibility, so fetch when current state matters.
|
|
670
|
+
* Updates the enabled member-cache observation. Before handlers run, invalidates the member's enabled account-cache entry
|
|
671
|
+
* and affected private-conversation snapshots
|
|
672
|
+
*/
|
|
673
|
+
readonly guildMemberUpdate: import("./guilds.js").GuildMember
|
|
674
|
+
/** Membership ended, with only community and account IDs supplied. No account lookup or removal-cause inference follows.
|
|
675
|
+
* Evicts the enabled member-cache entry
|
|
676
|
+
*/
|
|
677
|
+
readonly guildMemberRemove: import("./guilds.js").MemberReference
|
|
678
|
+
/** A delivered presence observation with its custom status, without account data, retained state or automatic member subscriptions */
|
|
679
|
+
readonly presenceUpdate: PresenceUpdate
|
|
680
|
+
/** A channel's pins changed, with community context only when supplied and without fetching the list.
|
|
681
|
+
* Does not identify the message. The timestamp may stay unchanged after unpin
|
|
682
|
+
*/
|
|
683
|
+
readonly channelPinsUpdate: ChannelPinsUpdate
|
|
684
|
+
/** A short-lived typing notice, subject to Fluxer's delivery filtering. It is not an account presence snapshot or cache entry */
|
|
685
|
+
readonly typingStart: TypingStart
|
|
686
|
+
/** Newly created message using this client's selected fields, with frozen nested metadata rather than downloaded file contents.
|
|
687
|
+
* Updates the enabled message-cache observation
|
|
688
|
+
*/
|
|
689
|
+
readonly messageCreate: M
|
|
690
|
+
/** Message data supplied for an update, not previous-and-current values or a patch to merge.
|
|
691
|
+
* Optional metadata may be absent. A non-text change can deliver the same selected values again.
|
|
692
|
+
* Replaces the enabled message-cache observation rather than merging absent metadata from an older snapshot
|
|
693
|
+
*/
|
|
694
|
+
readonly messageUpdate: M
|
|
695
|
+
/** One deleted message's channel and message IDs, plus supplied community ID, text and author ID when available.
|
|
696
|
+
* Evicts its enabled message-cache entry without reconstructing missing context
|
|
697
|
+
*/
|
|
698
|
+
readonly messageDelete: MessageDeletion
|
|
699
|
+
/** Deleted message IDs grouped by channel, with community context only when supplied.
|
|
700
|
+
* Listen to this and messageDelete to observe both deletion forms.
|
|
701
|
+
* Evicts the listed enabled message-cache entries
|
|
702
|
+
*/
|
|
703
|
+
readonly messageDeleteBulk: MessageBulkDeletion
|
|
704
|
+
/** One user's reaction addition, not synthesized from reaction batches or successful addReaction requests */
|
|
705
|
+
readonly messageReactionAdd: MessageReaction
|
|
706
|
+
/** Reaction additions grouped by Fluxer. Listen to this and messageReactionAdd to observe both addition forms */
|
|
707
|
+
readonly messageReactionAddMany: MessageReactionBatch
|
|
708
|
+
/** One user's reaction was removed, possibly by a moderator rather than that user */
|
|
709
|
+
readonly messageReactionRemove: MessageReaction
|
|
710
|
+
/** All reactions on the target message were cleared, without a list of affected users */
|
|
711
|
+
readonly messageReactionRemoveAll: ReactionTarget
|
|
712
|
+
/** All reactions using one emoji were cleared from the target message, without a list of affected users */
|
|
713
|
+
readonly messageReactionRemoveEmoji: MessageReactionEmojiRemoval
|
|
714
|
+
/** Another participant's entrance sound started playing where this account has a voice connection, without a download or cache write */
|
|
715
|
+
readonly entranceSoundPlay: EntranceSoundPlay
|
|
716
|
+
/** A private-channel call began or became visible, including initial and recovered call state, without a call cache */
|
|
717
|
+
readonly callCreate: CallCreate
|
|
718
|
+
/** An active private-channel call's ringing set, participants or region changed. This is the full current state, not a patch */
|
|
719
|
+
readonly callUpdate: CallUpdate
|
|
720
|
+
/** A private-channel call ended, or became unavailable when unavailable is true */
|
|
721
|
+
readonly callDelete: CallDelete
|
|
722
|
+
/** Every received gateway dispatch in its wire form, including types this SDK version does not decode.
|
|
723
|
+
* The body is not part of the SDK's compatibility contract. See RawDispatch
|
|
724
|
+
*/
|
|
725
|
+
readonly raw: RawDispatch
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/** One gateway dispatch as Fluxer sent it, before the SDK decodes or validates its body.
|
|
729
|
+
* Delivered for every dispatch the session accepts, including READY, RESUMED and types this SDK version does not handle.
|
|
730
|
+
* The body is Fluxer's unvalidated wire data and is not part of the SDK's compatibility contract, so its shape can change without an SDK release.
|
|
731
|
+
* Raw subscribers do not change cache updates or decoded event delivery
|
|
732
|
+
*
|
|
733
|
+
* Each delivery is logged at Trace with code events.raw.
|
|
734
|
+
* A raw dispatch is offered before the SDK updates caches for it and before its decoded event.
|
|
735
|
+
* The body object is shared by every raw subscriber, so treat it as read-only.
|
|
736
|
+
* A raw subscriber turns off automatic event suppression, while explicitly ignored types never arrive
|
|
737
|
+
*
|
|
738
|
+
* @category Events and collectors
|
|
739
|
+
*/
|
|
740
|
+
export interface RawDispatch {
|
|
741
|
+
/** Local shard that received the dispatch */
|
|
742
|
+
readonly shardId: number
|
|
743
|
+
/** Upper-case dispatch type, such as MESSAGE_CREATE */
|
|
744
|
+
readonly t: string
|
|
745
|
+
/** Session sequence number of the dispatch */
|
|
746
|
+
readonly s: number
|
|
747
|
+
/** Unvalidated dispatch body */
|
|
748
|
+
readonly d: unknown
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* Event-name strings accepted by on, events and waitFor in both entry points
|
|
753
|
+
*
|
|
754
|
+
* @category Events and collectors
|
|
755
|
+
*/
|
|
756
|
+
export type EventName = keyof EventMap
|
|
757
|
+
|
|
758
|
+
/** Limit the waiting queue for one event subscription or collector.
|
|
759
|
+
* Each registration owns its own queue. Filling it stops that registration, or drops events for a handler whose overflow policy drops them, and never affects unrelated subscriptions.
|
|
760
|
+
* These limits measure pending payloads and received JSON bytes, not total application memory use
|
|
761
|
+
*
|
|
762
|
+
* @category Events and collectors
|
|
763
|
+
*/
|
|
764
|
+
export interface EventBufferOptions {
|
|
765
|
+
/** Maximum waiting payloads, excluding active handlers. A bulk event counts once, positive safe integer, default 256 */
|
|
766
|
+
readonly maxPendingMessages?: number
|
|
767
|
+
/** Maximum UTF-8 bytes of waiting received JSON, including full bulk payloads. Positive safe integer, default 4,194,304 */
|
|
768
|
+
readonly maxPendingBytes?: number
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/** Settings for waitFor to receive one future event that passes an optional filter.
|
|
772
|
+
* Waiting does not connect the gateway, read cached history or reconstruct missed events.
|
|
773
|
+
* The queue budgets apply to events received before the wait can take them.
|
|
774
|
+
* Completion, timeout, cancellation and shutdown release the wait's subscription
|
|
775
|
+
*
|
|
776
|
+
* @category Events and collectors
|
|
777
|
+
*/
|
|
778
|
+
export interface EventWaitOptions<K extends EventName, M extends MessageCore = Message> extends EventBufferOptions {
|
|
779
|
+
/** Return true to complete with this event, false to keep waiting. Omit to accept the first event.
|
|
780
|
+
* Runs synchronously and can run while the gateway receives events. Keep it short, since deadlines cannot preempt blocking JavaScript.
|
|
781
|
+
* A throw or non-boolean return fails with EventWaitError reason filter. A thrown value is the error's cause.
|
|
782
|
+
* Do not return a Promise. Mistaken asynchronous work is neither awaited nor cancelled, and its rejection is discarded
|
|
783
|
+
*/
|
|
784
|
+
readonly filter?: (event: EventMap<M>[K]) => boolean
|
|
785
|
+
/** Total milliseconds to wait from registration, an integer from 1 through 2,147,483,647, default 30,000.
|
|
786
|
+
* Expiry fails with EventWaitError reason timeout, rather than returning an empty event
|
|
787
|
+
*/
|
|
788
|
+
readonly timeoutMs?: number
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/** Queue limits, parallelism, ordering and overflow behavior for one on callback registration.
|
|
792
|
+
* Callbacks are not retried. A callback or middleware failure, including a synchronous throw, is reported and releases
|
|
793
|
+
* the invocation's slot and partition key without stopping later event delivery.
|
|
794
|
+
* Closure waits for active callback cleanup. The type parameter T is the event payload that a partition function receives
|
|
795
|
+
*
|
|
796
|
+
* @category Events and collectors
|
|
797
|
+
*/
|
|
798
|
+
export interface HandlerOptions<T = unknown> extends EventBufferOptions {
|
|
799
|
+
/** Maximum active callbacks, a positive safe integer.
|
|
800
|
+
* The default is 1, or 8 when partition is set.
|
|
801
|
+
* Starts follow receive order. Values above 1 allow callbacks to finish out of order, except within one partition
|
|
802
|
+
*/
|
|
803
|
+
readonly concurrency?: number
|
|
804
|
+
/**
|
|
805
|
+
* Keep related events in order while unrelated events run side by side, up to concurrency.
|
|
806
|
+
* Events with the same key run one at a time in receive order, each starting after the previous one with that key finished.
|
|
807
|
+
* An event whose key is busy waits in the queue while later events with other keys start.
|
|
808
|
+
* The value guild keys each event by its community, which the API calls a guild, and a direct message by its channel.
|
|
809
|
+
* The value channel keys each event by its channel, or by its community when it has no channel.
|
|
810
|
+
* A function receives the event and returns its key as a string.
|
|
811
|
+
* Events without a key, including those for which the function returns undefined, share one key.
|
|
812
|
+
* A function that throws or returns another value is reported as a failure of that event's handler, which then does not run
|
|
813
|
+
*
|
|
814
|
+
* @example
|
|
815
|
+
* ```ts
|
|
816
|
+
* import type { Client, Message } from "@neontechspace/fluxerly"
|
|
817
|
+
* export function orderedPerChannel(client: Client, handle: (message: Message) => Promise<void>) {
|
|
818
|
+
* // Up to 8 channels at a time, and the messages of one channel in order
|
|
819
|
+
* return client.on("messageCreate", (message) => handle(message), { partition: "channel" })
|
|
820
|
+
* }
|
|
821
|
+
* ```
|
|
822
|
+
*/
|
|
823
|
+
readonly partition?: "guild" | "channel" | ((event: T) => string | undefined)
|
|
824
|
+
/** What happens when an event arrives while the waiting queue is full.
|
|
825
|
+
* The default, dropOldest, discards the oldest waiting events to make room, and dropNewest discards the arriving event.
|
|
826
|
+
* Both drop policies keep the subscription running, log a Warn record and count the drop in diagnostics().counters.eventsDropped.
|
|
827
|
+
* The policy stop ends the subscription and reports an overflow failure, so waitForClose returns EventOverflowError
|
|
828
|
+
*/
|
|
829
|
+
readonly overflow?: "stop" | "dropOldest" | "dropNewest"
|
|
830
|
+
}
|