@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/channels.ts
ADDED
|
@@ -0,0 +1,1051 @@
|
|
|
1
|
+
import type { OperationOptions } from "./client.js"
|
|
2
|
+
import type { ClientClosedError } from "./errors.js"
|
|
3
|
+
import type { GuildMember } from "./guilds.js"
|
|
4
|
+
import { operationErrorFields, operationErrorSettings, operationErrorText, type ApiErrorDetail } from "./api-errors.js"
|
|
5
|
+
import { FluxerlyError, type OperationErrorOptions, type OperationOutcome, type OperationReason } from "./errors.js"
|
|
6
|
+
import { freezeInputValidationDetail, type InputValidationDetail } from "./input-validation.js"
|
|
7
|
+
|
|
8
|
+
/** Choose what a new community channel does: Text messages, announcements, voice calls, a category that groups channels, or a link.
|
|
9
|
+
* Received channels use the same constants in GuildChannel.type, including threads, forum channels and media channels.
|
|
10
|
+
* A future Fluxer type that this SDK version does not know arrives as a GuildUnknownChannel, whose type is "unknown"
|
|
11
|
+
* and whose rawType keeps the number
|
|
12
|
+
*
|
|
13
|
+
* @category Channels
|
|
14
|
+
*/
|
|
15
|
+
export const ChannelType: Readonly<{
|
|
16
|
+
/** A community text conversation */
|
|
17
|
+
Text: 0
|
|
18
|
+
/** A community voice-call channel */
|
|
19
|
+
Voice: 2
|
|
20
|
+
/** A grouping parent for community channels */
|
|
21
|
+
Category: 4
|
|
22
|
+
/** A community announcement channel whose published messages can reach following channels */
|
|
23
|
+
Announcement: 5
|
|
24
|
+
/** A thread inside an announcement channel, visible to everyone who can view that channel */
|
|
25
|
+
AnnouncementThread: 10
|
|
26
|
+
/** A thread inside a text, forum or media channel, visible to everyone who can view that channel.
|
|
27
|
+
* Every post in a forum or media channel is a public thread
|
|
28
|
+
*/
|
|
29
|
+
PublicThread: 11
|
|
30
|
+
/** A thread inside a text channel, visible only to its members and to members who can manage threads */
|
|
31
|
+
PrivateThread: 12
|
|
32
|
+
/** A channel that holds posts, each a public thread with its own first message, and no messages of its own */
|
|
33
|
+
Forum: 15
|
|
34
|
+
/** A forum channel that can also hide media download options */
|
|
35
|
+
Media: 16
|
|
36
|
+
/** A channel that points to an external URL */
|
|
37
|
+
Link: 998
|
|
38
|
+
}> = Object.freeze({
|
|
39
|
+
Text: 0,
|
|
40
|
+
Voice: 2,
|
|
41
|
+
Category: 4,
|
|
42
|
+
Announcement: 5,
|
|
43
|
+
AnnouncementThread: 10,
|
|
44
|
+
PublicThread: 11,
|
|
45
|
+
PrivateThread: 12,
|
|
46
|
+
Forum: 15,
|
|
47
|
+
Media: 16,
|
|
48
|
+
Link: 998,
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
/** Known bits in the flags of a thread, forum channel or media channel.
|
|
52
|
+
* Test a bit with bitwise AND, such as `((channel.flags ?? 0) & ChannelFlags.RequireTag) !== 0`. Received flags keep
|
|
53
|
+
* bits this SDK version does not name
|
|
54
|
+
*
|
|
55
|
+
* @category Channels
|
|
56
|
+
*/
|
|
57
|
+
export const ChannelFlags: Readonly<{
|
|
58
|
+
/** On a forum or media post: The post is pinned at the top of its channel. A channel holds at most one pinned
|
|
59
|
+
* post, and archiving the post clears this bit
|
|
60
|
+
*/
|
|
61
|
+
Pinned: 2
|
|
62
|
+
/** On a forum or media channel: A new post, or a change to a post's tags, needs at least one tag */
|
|
63
|
+
RequireTag: 16
|
|
64
|
+
/** On a media channel only: Clients hide the media download options */
|
|
65
|
+
HideMediaDownloadOptions: 32768
|
|
66
|
+
}> = Object.freeze({
|
|
67
|
+
Pinned: 2,
|
|
68
|
+
RequireTag: 16,
|
|
69
|
+
HideMediaDownloadOptions: 32768,
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
/** Inactivity periods, in minutes, after which Fluxer archives a thread.
|
|
73
|
+
* The period counts from the later of the thread's last message and its archiveTimestamp. A new thread uses ThreeDays
|
|
74
|
+
* unless its creation sets another value, and Fluxer does not apply a parent channel's defaultAutoArchiveMinutes to it
|
|
75
|
+
*
|
|
76
|
+
* @category Channels
|
|
77
|
+
*/
|
|
78
|
+
export const ThreadAutoArchiveMinutes: Readonly<{
|
|
79
|
+
/** Archive after one hour without activity */
|
|
80
|
+
OneHour: 60
|
|
81
|
+
/** Archive after one day without activity */
|
|
82
|
+
OneDay: 1440
|
|
83
|
+
/** Archive after three days without activity, the default for a new thread */
|
|
84
|
+
ThreeDays: 4320
|
|
85
|
+
/** Archive after one week without activity */
|
|
86
|
+
OneWeek: 10080
|
|
87
|
+
}> = Object.freeze({
|
|
88
|
+
OneHour: 60,
|
|
89
|
+
OneDay: 1440,
|
|
90
|
+
ThreeDays: 4320,
|
|
91
|
+
OneWeek: 10080,
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
/** Orders in which clients list the posts of a forum or media channel by default.
|
|
95
|
+
* A received defaultSortOrder keeps a value this SDK version does not name
|
|
96
|
+
*
|
|
97
|
+
* @category Channels
|
|
98
|
+
*/
|
|
99
|
+
export const ForumSortOrder: Readonly<{
|
|
100
|
+
/** Newest activity first */
|
|
101
|
+
LatestActivity: 0
|
|
102
|
+
/** Newest post first */
|
|
103
|
+
CreationTime: 1
|
|
104
|
+
}> = Object.freeze({
|
|
105
|
+
LatestActivity: 0,
|
|
106
|
+
CreationTime: 1,
|
|
107
|
+
})
|
|
108
|
+
|
|
109
|
+
/** Layouts in which clients show the posts of a forum channel by default. Media channels have no layout setting.
|
|
110
|
+
* A received defaultForumLayout keeps a value this SDK version does not name
|
|
111
|
+
*
|
|
112
|
+
* @category Channels
|
|
113
|
+
*/
|
|
114
|
+
export const ForumLayout: Readonly<{
|
|
115
|
+
/** No layout chosen, so each client uses its own default */
|
|
116
|
+
Default: 0
|
|
117
|
+
/** Posts as a list */
|
|
118
|
+
List: 1
|
|
119
|
+
/** Posts as a grid of previews */
|
|
120
|
+
Grid: 2
|
|
121
|
+
}> = Object.freeze({
|
|
122
|
+
Default: 0,
|
|
123
|
+
List: 1,
|
|
124
|
+
Grid: 2,
|
|
125
|
+
})
|
|
126
|
+
|
|
127
|
+
/** Give or deny channel permissions to one role or member.
|
|
128
|
+
* A permission absent from both allow and deny remains subject to other applicable roles and overwrites.
|
|
129
|
+
* Build these bitfields with Permissions constants and bigint bitwise operators. This is one explicit overwrite,
|
|
130
|
+
* not the member's final permissions. SDK writes accept values through 9_223_372_036_854_775_807n and send
|
|
131
|
+
* ViewChannelMembers replacements to Fluxer. Received values can use the full unsigned 64-bit range
|
|
132
|
+
*
|
|
133
|
+
* @category Roles and permissions
|
|
134
|
+
*/
|
|
135
|
+
export interface PermissionOverwrite {
|
|
136
|
+
/** Decimal role or member ID */
|
|
137
|
+
readonly id: string
|
|
138
|
+
/** Whether id identifies a role or a community member */
|
|
139
|
+
readonly type: "role" | "member"
|
|
140
|
+
/** Permissions explicitly granted here. Writes accept 0n through 9_223_372_036_854_775_807n, and responses can use unsigned 64-bit values. 0n grants nothing explicitly */
|
|
141
|
+
readonly allow: bigint
|
|
142
|
+
/** Permissions explicitly denied here. Writes accept 0n through 9_223_372_036_854_775_807n, and responses can use unsigned 64-bit values. 0n denies nothing explicitly */
|
|
143
|
+
readonly deny: bigint
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Fields every community channel shares, whatever its type
|
|
148
|
+
*
|
|
149
|
+
* @category Channels
|
|
150
|
+
*/
|
|
151
|
+
export interface GuildChannelBase {
|
|
152
|
+
/** Decimal channel ID */
|
|
153
|
+
readonly id: string
|
|
154
|
+
/** Decimal community ID */
|
|
155
|
+
readonly guildId: string
|
|
156
|
+
/** A ChannelType constant, or "unknown" for a type this SDK version does not know. Compare it to select the
|
|
157
|
+
* matching channel shape
|
|
158
|
+
*/
|
|
159
|
+
readonly type: (typeof ChannelType)[keyof typeof ChannelType] | "unknown"
|
|
160
|
+
/** Channel name, when Fluxer supplies one */
|
|
161
|
+
readonly name?: string
|
|
162
|
+
/** Server ordering position, not an immutable ordering guarantee */
|
|
163
|
+
readonly position?: number
|
|
164
|
+
/** Parent category ID, with null meaning top-level and omission meaning unavailable */
|
|
165
|
+
readonly parentId?: string | null
|
|
166
|
+
/** Explicit channel overwrites, not inherited or effective permissions */
|
|
167
|
+
readonly permissionOverwrites?: readonly PermissionOverwrite[]
|
|
168
|
+
/** Effective adult-content setting from Fluxer's older NSFW field, when supplied */
|
|
169
|
+
readonly nsfw?: boolean
|
|
170
|
+
/** Channel adult-content override, with null inheriting from its category then community */
|
|
171
|
+
readonly nsfwOverride?: boolean | null
|
|
172
|
+
/** Channel content-warning override, when supplied */
|
|
173
|
+
readonly contentWarningLevel?: number
|
|
174
|
+
/** Custom content-warning text, with null inheriting */
|
|
175
|
+
readonly contentWarningText?: string | null
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Message and topic fields shared by community text and announcement channels
|
|
180
|
+
*
|
|
181
|
+
* @category Channels
|
|
182
|
+
*/
|
|
183
|
+
export interface GuildTextChannelBase extends GuildChannelBase {
|
|
184
|
+
/** Text or announcement channel type. Each received shape has its own literal discriminant */
|
|
185
|
+
readonly type: typeof ChannelType.Text | typeof ChannelType.Announcement
|
|
186
|
+
/** Topic, with null clearing it and omission meaning unavailable */
|
|
187
|
+
readonly topic?: string | null
|
|
188
|
+
/** Last message ID, with null meaning no known message */
|
|
189
|
+
readonly lastMessageId?: string | null
|
|
190
|
+
/** ISO 8601 last-pin time, with null meaning no pins */
|
|
191
|
+
readonly lastPinTimestamp?: string | null
|
|
192
|
+
/** Slowmode delay in seconds */
|
|
193
|
+
readonly rateLimitPerUser?: number
|
|
194
|
+
/** Stored default auto-archive period for threads in this channel, in minutes, such as
|
|
195
|
+
* ThreadAutoArchiveMinutes.OneDay. Fluxer sends it only when one is stored, and does not apply it to a new thread
|
|
196
|
+
*/
|
|
197
|
+
readonly defaultAutoArchiveMinutes?: number | null
|
|
198
|
+
/** Slowmode delay in seconds that a new thread in this channel copies when its creation sets none.
|
|
199
|
+
* Fluxer sends it only when one is stored
|
|
200
|
+
*/
|
|
201
|
+
readonly defaultThreadRateLimitPerUser?: number
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* A community text conversation, selected by `type === ChannelType.Text`
|
|
206
|
+
*
|
|
207
|
+
* @category Channels
|
|
208
|
+
*/
|
|
209
|
+
export interface GuildTextChannel extends GuildTextChannelBase {
|
|
210
|
+
/** Always ChannelType.Text */
|
|
211
|
+
readonly type: typeof ChannelType.Text
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* A community announcement channel, selected by `type === ChannelType.Announcement`.
|
|
216
|
+
* It has the same message and topic fields as a text channel
|
|
217
|
+
*
|
|
218
|
+
* @category Channels
|
|
219
|
+
*/
|
|
220
|
+
export interface GuildAnnouncementChannel extends GuildTextChannelBase {
|
|
221
|
+
/** Always ChannelType.Announcement */
|
|
222
|
+
readonly type: typeof ChannelType.Announcement
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* A community voice-call channel, selected by `type === ChannelType.Voice`
|
|
227
|
+
*
|
|
228
|
+
* @category Channels
|
|
229
|
+
*/
|
|
230
|
+
export interface GuildVoiceChannel extends GuildChannelBase {
|
|
231
|
+
/** Always ChannelType.Voice */
|
|
232
|
+
readonly type: typeof ChannelType.Voice
|
|
233
|
+
/** Voice bitrate in bits per second, with null meaning no voice setting */
|
|
234
|
+
readonly bitrate?: number | null
|
|
235
|
+
/** Voice user limit, with null meaning no voice setting */
|
|
236
|
+
readonly userLimit?: number | null
|
|
237
|
+
/** Voice connections permitted per user, with null meaning no voice setting */
|
|
238
|
+
readonly voiceConnectionLimit?: number | null
|
|
239
|
+
/** Voice region ID, with null selecting automatic routing */
|
|
240
|
+
readonly rtcRegion?: string | null
|
|
241
|
+
/** Last message ID in the channel's text chat, with null meaning no known message */
|
|
242
|
+
readonly lastMessageId?: string | null
|
|
243
|
+
/** Slowmode delay in seconds for the channel's text chat */
|
|
244
|
+
readonly rateLimitPerUser?: number
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* A grouping parent for community channels, selected by `type === ChannelType.Category`
|
|
249
|
+
*
|
|
250
|
+
* @category Channels
|
|
251
|
+
*/
|
|
252
|
+
export interface GuildCategoryChannel extends GuildChannelBase {
|
|
253
|
+
/** Always ChannelType.Category */
|
|
254
|
+
readonly type: typeof ChannelType.Category
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* A channel that points to an external URL, selected by `type === ChannelType.Link`
|
|
259
|
+
*
|
|
260
|
+
* @category Channels
|
|
261
|
+
*/
|
|
262
|
+
export interface GuildLinkChannel extends GuildChannelBase {
|
|
263
|
+
/** Always ChannelType.Link */
|
|
264
|
+
readonly type: typeof ChannelType.Link
|
|
265
|
+
/** Link URL, with null clearing it and omission meaning unavailable */
|
|
266
|
+
readonly url?: string | null
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/** The bot's own membership in a thread, as Fluxer reports it beside the thread.
|
|
270
|
+
* A thread read, a thread list or an event only describes this membership at that moment
|
|
271
|
+
*
|
|
272
|
+
* @category Channels
|
|
273
|
+
*/
|
|
274
|
+
export interface ThreadMembership {
|
|
275
|
+
/** ISO 8601 time the bot last joined the thread */
|
|
276
|
+
readonly joinedAt: string
|
|
277
|
+
/** Fluxer's thread member flags, such as notification preferences. Unrecognized bits are kept */
|
|
278
|
+
readonly flags: number
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/** One member of a thread. The object is frozen and does not update when the membership changes
|
|
282
|
+
*
|
|
283
|
+
* @category Channels
|
|
284
|
+
*/
|
|
285
|
+
export interface ThreadMember {
|
|
286
|
+
/** Decimal thread ID */
|
|
287
|
+
readonly threadId: string
|
|
288
|
+
/** Decimal ID of the member's account */
|
|
289
|
+
readonly userId: string
|
|
290
|
+
/** ISO 8601 time the user last joined the thread */
|
|
291
|
+
readonly joinedAt: string
|
|
292
|
+
/** Fluxer's thread member flags, such as notification preferences. Unrecognized bits are kept */
|
|
293
|
+
readonly flags: number
|
|
294
|
+
/** The user's community membership, present only when Fluxer supplied it with the thread member */
|
|
295
|
+
readonly member?: GuildMember
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Fields every thread shares, whatever its type. A thread has no permission overwrites of its own, because Fluxer
|
|
300
|
+
* computes its permissions from the parent channel
|
|
301
|
+
*
|
|
302
|
+
* @category Channels
|
|
303
|
+
*/
|
|
304
|
+
export interface GuildThreadChannelBase extends GuildChannelBase {
|
|
305
|
+
/** One of the three thread types. Each received shape has its own literal discriminant */
|
|
306
|
+
readonly type:
|
|
307
|
+
typeof ChannelType.AnnouncementThread | typeof ChannelType.PublicThread | typeof ChannelType.PrivateThread
|
|
308
|
+
/** Decimal ID of the text, announcement, forum or media channel that holds the thread, never a category */
|
|
309
|
+
readonly parentId: string
|
|
310
|
+
/** Decimal ID of the user or webhook that created the thread */
|
|
311
|
+
readonly ownerId: string
|
|
312
|
+
/** Thread name */
|
|
313
|
+
readonly name: string
|
|
314
|
+
/** Whether the thread is archived. An archived thread accepts no new members, reactions, pins or edits, and a
|
|
315
|
+
* message sent to it unarchives it
|
|
316
|
+
*/
|
|
317
|
+
readonly archived: boolean
|
|
318
|
+
/** Whether only members who can manage threads may act in the thread */
|
|
319
|
+
readonly locked: boolean
|
|
320
|
+
/** Inactivity period in minutes after which Fluxer archives the thread, such as ThreadAutoArchiveMinutes.ThreeDays */
|
|
321
|
+
readonly autoArchiveMinutes: number
|
|
322
|
+
/** ISO 8601 time the thread was last archived, unarchived or given a new autoArchiveMinutes. It equals createdAt
|
|
323
|
+
* until the first of those changes
|
|
324
|
+
*/
|
|
325
|
+
readonly archiveTimestamp: string
|
|
326
|
+
/** ISO 8601 time the thread was created */
|
|
327
|
+
readonly createdAt: string
|
|
328
|
+
/** Last message ID, with null meaning the thread has no message */
|
|
329
|
+
readonly lastMessageId?: string | null
|
|
330
|
+
/** ISO 8601 last-pin time, with null meaning nothing was ever pinned */
|
|
331
|
+
readonly lastPinTimestamp?: string | null
|
|
332
|
+
/** Slowmode delay in seconds */
|
|
333
|
+
readonly rateLimitPerUser?: number
|
|
334
|
+
/** Thread flags. Only ChannelFlags.Pinned can be set, and only on a forum or media post. Unrecognized bits are kept */
|
|
335
|
+
readonly flags?: number
|
|
336
|
+
/** Messages in the thread, excluding the first message of a forum post and deleted messages */
|
|
337
|
+
readonly messageCount?: number
|
|
338
|
+
/** Messages ever sent in the thread, excluding the first message of a forum post. Deleting a message does not lower it */
|
|
339
|
+
readonly totalMessageSent?: number
|
|
340
|
+
/** Approximate number of thread members, capped at 50 */
|
|
341
|
+
readonly memberCount?: number
|
|
342
|
+
/** The bot's own membership, present when Fluxer reports that the bot is a member. Absence does not prove that the
|
|
343
|
+
* bot is not a member, because some reads leave it out
|
|
344
|
+
*/
|
|
345
|
+
readonly membership?: ThreadMembership
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* A thread inside an announcement channel, selected by `type === ChannelType.AnnouncementThread`
|
|
350
|
+
*
|
|
351
|
+
* @category Channels
|
|
352
|
+
*/
|
|
353
|
+
export interface GuildAnnouncementThreadChannel extends GuildThreadChannelBase {
|
|
354
|
+
/** Always ChannelType.AnnouncementThread */
|
|
355
|
+
readonly type: typeof ChannelType.AnnouncementThread
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* A public thread inside a text channel, or a post inside a forum or media channel, selected by
|
|
360
|
+
* `type === ChannelType.PublicThread`
|
|
361
|
+
*
|
|
362
|
+
* @category Channels
|
|
363
|
+
*/
|
|
364
|
+
export interface GuildPublicThreadChannel extends GuildThreadChannelBase {
|
|
365
|
+
/** Always ChannelType.PublicThread */
|
|
366
|
+
readonly type: typeof ChannelType.PublicThread
|
|
367
|
+
/** IDs of the forum tags applied to a forum or media post, at most 5. Absent on a thread in a text channel */
|
|
368
|
+
readonly appliedTagIds?: readonly string[]
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* A private thread inside a text channel, selected by `type === ChannelType.PrivateThread`
|
|
373
|
+
*
|
|
374
|
+
* @category Channels
|
|
375
|
+
*/
|
|
376
|
+
export interface GuildPrivateThreadChannel extends GuildThreadChannelBase {
|
|
377
|
+
/** Always ChannelType.PrivateThread */
|
|
378
|
+
readonly type: typeof ChannelType.PrivateThread
|
|
379
|
+
/** Whether members who cannot manage threads may add other such members */
|
|
380
|
+
readonly invitable: boolean
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/** A thread: A channel inside a text, announcement, forum or media channel that holds its own messages.
|
|
384
|
+
* Compare type with ChannelType constants to narrow to one thread shape, or use isThreadChannel to tell threads from
|
|
385
|
+
* other community channels. The object is frozen and does not update when the thread changes
|
|
386
|
+
*
|
|
387
|
+
* @category Channels
|
|
388
|
+
*/
|
|
389
|
+
export type GuildThreadChannel = GuildAnnouncementThreadChannel | GuildPublicThreadChannel | GuildPrivateThreadChannel
|
|
390
|
+
|
|
391
|
+
/** A tag that posts in a forum or media channel can carry
|
|
392
|
+
*
|
|
393
|
+
* @category Channels
|
|
394
|
+
*/
|
|
395
|
+
export interface ForumTag {
|
|
396
|
+
/** Decimal tag ID */
|
|
397
|
+
readonly id: string
|
|
398
|
+
/** Tag name, unique within its channel */
|
|
399
|
+
readonly name: string
|
|
400
|
+
/** Whether only members who can manage threads may apply or remove the tag */
|
|
401
|
+
readonly moderated: boolean
|
|
402
|
+
/** Decimal ID of a custom emoji of this community, or null when the tag has none */
|
|
403
|
+
readonly emojiId: string | null
|
|
404
|
+
/** A Unicode emoji, or null when the tag has none. At most one of emojiId and emojiName is set */
|
|
405
|
+
readonly emojiName: string | null
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/** The reaction that clients show on each post of a forum or media channel
|
|
409
|
+
*
|
|
410
|
+
* @category Channels
|
|
411
|
+
*/
|
|
412
|
+
export interface ForumDefaultReaction {
|
|
413
|
+
/** Decimal ID of a custom emoji of this community, or null for a Unicode emoji */
|
|
414
|
+
readonly emojiId: string | null
|
|
415
|
+
/** A Unicode emoji, or null for a custom emoji */
|
|
416
|
+
readonly emojiName: string | null
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/** Fields shared by forum and media channels, which hold posts and no messages of their own.
|
|
420
|
+
* Fluxer leaves the post settings out of some payloads, such as the guildChannelDelete event, so each of them is
|
|
421
|
+
* optional and absence means unavailable rather than a default
|
|
422
|
+
*
|
|
423
|
+
* @category Channels
|
|
424
|
+
*/
|
|
425
|
+
export interface GuildForumChannelBase extends GuildChannelBase {
|
|
426
|
+
/** Forum or media channel type. Each received shape has its own literal discriminant */
|
|
427
|
+
readonly type: typeof ChannelType.Forum | typeof ChannelType.Media
|
|
428
|
+
/** Posting guidelines, with null meaning none */
|
|
429
|
+
readonly topic?: string | null
|
|
430
|
+
/** ID of the newest post, with null meaning the channel never had one */
|
|
431
|
+
readonly lastMessageId?: string | null
|
|
432
|
+
/** Delay in seconds between one member's new posts */
|
|
433
|
+
readonly rateLimitPerUser?: number
|
|
434
|
+
/** Channel flags, such as ChannelFlags.RequireTag. Unrecognized bits are kept */
|
|
435
|
+
readonly flags?: number
|
|
436
|
+
/** Tags that posts can carry, at most 20 */
|
|
437
|
+
readonly availableTags?: readonly ForumTag[]
|
|
438
|
+
/** Reaction that clients show on each post, with null meaning none */
|
|
439
|
+
readonly defaultReactionEmoji?: ForumDefaultReaction | null
|
|
440
|
+
/** Default post order, such as ForumSortOrder.LatestActivity, with null meaning none is set */
|
|
441
|
+
readonly defaultSortOrder?: number | null
|
|
442
|
+
/** Default tag matching of a post search, "match_some" or "match_all". Another string Fluxer adds later is kept */
|
|
443
|
+
readonly defaultTagSetting?: string
|
|
444
|
+
/** Stored default auto-archive period for posts, in minutes, with null meaning none is set. Fluxer does not apply
|
|
445
|
+
* it to a new post
|
|
446
|
+
*/
|
|
447
|
+
readonly defaultAutoArchiveMinutes?: number | null
|
|
448
|
+
/** Slowmode delay in seconds that a new post copies when its creation sets none */
|
|
449
|
+
readonly defaultThreadRateLimitPerUser?: number
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* A forum channel, selected by `type === ChannelType.Forum`
|
|
454
|
+
*
|
|
455
|
+
* @category Channels
|
|
456
|
+
*/
|
|
457
|
+
export interface GuildForumChannel extends GuildForumChannelBase {
|
|
458
|
+
/** Always ChannelType.Forum */
|
|
459
|
+
readonly type: typeof ChannelType.Forum
|
|
460
|
+
/** Default post layout, such as ForumLayout.List */
|
|
461
|
+
readonly defaultForumLayout?: number
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* A media channel, a forum channel that can hide media download options, selected by `type === ChannelType.Media`
|
|
466
|
+
*
|
|
467
|
+
* @category Channels
|
|
468
|
+
*/
|
|
469
|
+
export interface GuildMediaChannel extends GuildForumChannelBase {
|
|
470
|
+
/** Always ChannelType.Media */
|
|
471
|
+
readonly type: typeof ChannelType.Media
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Whether a community channel is a thread of any type. Any other value, including undefined, returns false
|
|
476
|
+
* @example
|
|
477
|
+
* ```ts
|
|
478
|
+
* import { isThreadChannel, type GuildChannel } from "@neontechspace/fluxerly"
|
|
479
|
+
* export function parentOf(channel: GuildChannel) {
|
|
480
|
+
* return isThreadChannel(channel) ? channel.parentId : undefined
|
|
481
|
+
* }
|
|
482
|
+
* ```
|
|
483
|
+
*
|
|
484
|
+
* @category Channels
|
|
485
|
+
*/
|
|
486
|
+
export function isThreadChannel(channel: GuildChannel | undefined): channel is GuildThreadChannel {
|
|
487
|
+
if (typeof channel !== "object" || channel === null) return false
|
|
488
|
+
const type: unknown = channel.type
|
|
489
|
+
return (
|
|
490
|
+
type === ChannelType.AnnouncementThread ||
|
|
491
|
+
type === ChannelType.PublicThread ||
|
|
492
|
+
type === ChannelType.PrivateThread
|
|
493
|
+
)
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* A community channel of a type this SDK version does not know, such as a type Fluxer adds later, selected by
|
|
498
|
+
* `type === "unknown"`. No ChannelType constant equals "unknown", so a ChannelType comparison always excludes this
|
|
499
|
+
* shape, and rawType keeps the number Fluxer sent. The common optional fields of text, voice and link channels stay
|
|
500
|
+
* readable, so the channel remains usable without a type-specific shape. A later SDK version that knows the type
|
|
501
|
+
* returns the matching shape instead
|
|
502
|
+
*
|
|
503
|
+
* @category Channels
|
|
504
|
+
*/
|
|
505
|
+
export interface GuildUnknownChannel
|
|
506
|
+
extends
|
|
507
|
+
GuildChannelBase,
|
|
508
|
+
Omit<GuildTextChannelBase, "type" | "defaultAutoArchiveMinutes" | "defaultThreadRateLimitPerUser">,
|
|
509
|
+
Omit<GuildVoiceChannel, "type">,
|
|
510
|
+
Omit<GuildLinkChannel, "type"> {
|
|
511
|
+
/** Always "unknown" */
|
|
512
|
+
readonly type: "unknown"
|
|
513
|
+
/** Numeric channel type Fluxer sent, outside the known ChannelType constants */
|
|
514
|
+
readonly rawType: number
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/** Settings and identity of a community channel returned by a read or gateway event, as one shape per channel type.
|
|
518
|
+
* Compare `type` with ChannelType constants to narrow to exactly one shape, such as `channel.type === ChannelType.Voice`
|
|
519
|
+
* before reading `bitrate`. Threads, forum channels and media channels have their own shapes, and isThreadChannel
|
|
520
|
+
* selects every thread type at once. A type this SDK version does not know is a GuildUnknownChannel with type
|
|
521
|
+
* "unknown", its Fluxer number in rawType and the common optional text, voice and link fields, so a switch on type
|
|
522
|
+
* that also handles "unknown" is exhaustive. The object is frozen and does not update when the channel changes.
|
|
523
|
+
* Optional fields may be unavailable rather than set to their creation defaults. This excludes private conversations,
|
|
524
|
+
* which use DirectMessageChannel
|
|
525
|
+
*
|
|
526
|
+
* @category Channels
|
|
527
|
+
*/
|
|
528
|
+
export type GuildChannel =
|
|
529
|
+
| GuildTextChannel
|
|
530
|
+
| GuildAnnouncementChannel
|
|
531
|
+
| GuildVoiceChannel
|
|
532
|
+
| GuildCategoryChannel
|
|
533
|
+
| GuildAnnouncementThreadChannel
|
|
534
|
+
| GuildPublicThreadChannel
|
|
535
|
+
| GuildPrivateThreadChannel
|
|
536
|
+
| GuildForumChannel
|
|
537
|
+
| GuildMediaChannel
|
|
538
|
+
| GuildLinkChannel
|
|
539
|
+
| GuildUnknownChannel
|
|
540
|
+
|
|
541
|
+
/** Settings shared by new text, announcement, voice, category and link channels.
|
|
542
|
+
* Supply the matching ChannelCreate type. Fluxer decides which settings apply to that channel type and
|
|
543
|
+
* enforces permissions. Omitted permissionOverwrites inherit from the parent category, while [] requests none.
|
|
544
|
+
* Unknown input keys fail locally. The encoded request body must fit within 4,194,304 bytes
|
|
545
|
+
*
|
|
546
|
+
* @category Channels
|
|
547
|
+
*/
|
|
548
|
+
export interface ChannelCreateBase {
|
|
549
|
+
/** Channel name. Raw input may contain at most 10,000 UTF-16 code units. For validation, Fluxer's general-name
|
|
550
|
+
* rules remove U+000C and U+202E, trim surrounding whitespace, strip provider-defined invisible characters,
|
|
551
|
+
* normalize whitespace and collapse its runs, then require 1–100 UTF-16 code units. The SDK sends the original
|
|
552
|
+
* string without lowercasing or hyphenating it
|
|
553
|
+
*/
|
|
554
|
+
readonly name: string
|
|
555
|
+
/** Description shown for the channel, 1–1,024 UTF-16 code units after U+000C and U+202E removal and
|
|
556
|
+
* surrounding-whitespace trimming, or null to clear. The original string is sent unchanged
|
|
557
|
+
*/
|
|
558
|
+
readonly topic?: string | null
|
|
559
|
+
/** Absolute URL for a link channel, or null to clear. The SDK does not open or fetch the URL */
|
|
560
|
+
readonly url?: string | null
|
|
561
|
+
/** Parent category, with null or omission creating a top-level channel */
|
|
562
|
+
readonly parentId?: string | null
|
|
563
|
+
/** Voice audio bitrate in bits per second, integer 8,000–384,000 or null, default 64,000 for voice channels.
|
|
564
|
+
* Fluxer clamps the requested value to the community's enabled bitrate tier. Read the returned channel for the applied value
|
|
565
|
+
*/
|
|
566
|
+
readonly bitrate?: number | null
|
|
567
|
+
/** Maximum voice users from 0 through 99, with 0 unlimited and the voice default */
|
|
568
|
+
readonly userLimit?: number | null
|
|
569
|
+
/** Voice connections per user from 1 through 100, default 5 for voice channels */
|
|
570
|
+
readonly voiceConnectionLimit?: number | null
|
|
571
|
+
/** Explicit overrides, omitted to inherit a parent category and [] to create no overrides */
|
|
572
|
+
readonly permissionOverwrites?: readonly PermissionOverwrite[]
|
|
573
|
+
/** Adult-content setting using Fluxer's older NSFW field. True marks the channel adult-only, while false inherits
|
|
574
|
+
* the parent category or community setting like omission. Use nsfwOverride false to mark it not adult-only.
|
|
575
|
+
* When both are present, nsfwOverride wins
|
|
576
|
+
*/
|
|
577
|
+
readonly nsfw?: boolean
|
|
578
|
+
/** Explicit adult-content override, with null inheriting */
|
|
579
|
+
readonly nsfwOverride?: boolean | null
|
|
580
|
+
/** 0 inherits the content-warning level, 1 requests a channel content warning */
|
|
581
|
+
readonly contentWarningLevel?: number
|
|
582
|
+
/** Warning shown before viewing content, with 0–200 raw UTF-16 code units and null inheriting.
|
|
583
|
+
* No text normalization is applied before validation
|
|
584
|
+
*/
|
|
585
|
+
readonly contentWarningText?: string | null
|
|
586
|
+
/** Delay between a user's messages in seconds, integer 0–21,600 or null. Zero disables slowmode */
|
|
587
|
+
readonly rateLimitPerUser?: number | null
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Default settings for the threads that start inside a text, announcement, forum or media channel.
|
|
592
|
+
* Where threads are not active for a community (GuildListSummary.threadsActive is false), Fluxer ignores both settings
|
|
593
|
+
* on a text or announcement channel
|
|
594
|
+
*
|
|
595
|
+
* @category Channels
|
|
596
|
+
*/
|
|
597
|
+
export interface ThreadParentDefaults {
|
|
598
|
+
/** Auto-archive period in minutes that the channel stores for its threads: One of the ThreadAutoArchiveMinutes values,
|
|
599
|
+
* or null to clear it. Fluxer stores the value but does not apply it to a new thread, which uses
|
|
600
|
+
* ThreadAutoArchiveMinutes.ThreeDays unless its creation sets another period
|
|
601
|
+
*/
|
|
602
|
+
readonly defaultAutoArchiveMinutes?: number | null
|
|
603
|
+
/** Slowmode delay in seconds that a new thread in this channel copies when its creation sets none, an integer
|
|
604
|
+
* from 0 through 21,600, or null to clear it
|
|
605
|
+
*/
|
|
606
|
+
readonly defaultThreadRateLimitPerUser?: number | null
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Creates a text channel
|
|
611
|
+
*
|
|
612
|
+
* @category Channels
|
|
613
|
+
*/
|
|
614
|
+
export interface TextChannelCreate extends ChannelCreateBase, ThreadParentDefaults {
|
|
615
|
+
/** Text channel type */
|
|
616
|
+
readonly type: typeof ChannelType.Text
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Creates an announcement channel with the same settings as a text channel
|
|
621
|
+
*
|
|
622
|
+
* @category Channels
|
|
623
|
+
*/
|
|
624
|
+
export interface AnnouncementChannelCreate extends ChannelCreateBase, ThreadParentDefaults {
|
|
625
|
+
/** Announcement channel type */
|
|
626
|
+
readonly type: typeof ChannelType.Announcement
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Creates a voice channel
|
|
631
|
+
*
|
|
632
|
+
* @category Channels
|
|
633
|
+
*/
|
|
634
|
+
export interface VoiceChannelCreate extends ChannelCreateBase {
|
|
635
|
+
/** Voice channel type */
|
|
636
|
+
readonly type: typeof ChannelType.Voice
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Create a category to group community channels
|
|
641
|
+
*
|
|
642
|
+
* @category Channels
|
|
643
|
+
*/
|
|
644
|
+
export interface CategoryChannelCreate extends ChannelCreateBase {
|
|
645
|
+
/** Category channel type */
|
|
646
|
+
readonly type: typeof ChannelType.Category
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Create a community channel that points readers to a URL
|
|
651
|
+
*
|
|
652
|
+
* @category Channels
|
|
653
|
+
*/
|
|
654
|
+
export interface LinkChannelCreate extends ChannelCreateBase {
|
|
655
|
+
/** Link channel type */
|
|
656
|
+
readonly type: typeof ChannelType.Link
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
/** Settings of one tag that posts in a forum or media channel can carry.
|
|
660
|
+
* Fluxer rejects a name that another tag of the channel already uses. A received ForumTag is also valid input
|
|
661
|
+
*
|
|
662
|
+
* @category Channels
|
|
663
|
+
*/
|
|
664
|
+
export interface ForumTagInput {
|
|
665
|
+
/** Decimal ID of an existing tag, which only an entry of a channel edit's availableTags uses: The entry keeps
|
|
666
|
+
* that tag and replaces its settings, while an entry without an ID adds a tag. Fluxer rejects an ID that the
|
|
667
|
+
* channel does not have, and an ID that appears twice in the list.
|
|
668
|
+
* A new channel has no tags, so its availableTags fail locally with an ID. The single-tag operations never send
|
|
669
|
+
* an ID, so createForumTag ignores one, and editForumTag fails locally unless it equals the tagId argument
|
|
670
|
+
*/
|
|
671
|
+
readonly id?: string
|
|
672
|
+
/** Tag name, 1–50 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming.
|
|
673
|
+
* The original string is sent unchanged
|
|
674
|
+
*/
|
|
675
|
+
readonly name: string
|
|
676
|
+
/** Whether only members who can manage threads may apply or remove the tag. Omission means false */
|
|
677
|
+
readonly moderated?: boolean
|
|
678
|
+
/** Decimal ID of a custom emoji of this community, or null for none. Fluxer rejects an emoji that the community
|
|
679
|
+
* does not have. Set at most one of emojiId and emojiName
|
|
680
|
+
*/
|
|
681
|
+
readonly emojiId?: string | null
|
|
682
|
+
/** A single Unicode emoji, or null for none, up to 64 UTF-16 code units. Fluxer rejects other text.
|
|
683
|
+
* Set at most one of emojiId and emojiName
|
|
684
|
+
*/
|
|
685
|
+
readonly emojiName?: string | null
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/** The reaction that clients show on each post of a forum or media channel.
|
|
689
|
+
* Set at most one of emojiId and emojiName. A received ForumDefaultReaction is also valid input
|
|
690
|
+
*
|
|
691
|
+
* @category Channels
|
|
692
|
+
*/
|
|
693
|
+
export interface ForumDefaultReactionInput {
|
|
694
|
+
/** Decimal ID of a custom emoji of this community, or null. Fluxer rejects an emoji that the community does not have */
|
|
695
|
+
readonly emojiId?: string | null
|
|
696
|
+
/** A single Unicode emoji, or null, up to 64 UTF-16 code units. Fluxer rejects other text */
|
|
697
|
+
readonly emojiName?: string | null
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Settings shared by new forum and media channels. Supply ForumChannelCreate or MediaChannelCreate.
|
|
702
|
+
* The tags, default reaction, sort order, tag setting and flags are the same as the matching ChannelEdit fields.
|
|
703
|
+
* Fluxer rejects creating a forum or media channel in a community where threads are not active
|
|
704
|
+
* (GuildListSummary.threadsActive is false)
|
|
705
|
+
*
|
|
706
|
+
* @category Channels
|
|
707
|
+
*/
|
|
708
|
+
export interface ForumChannelCreateBase extends ChannelCreateBase, ThreadParentDefaults {
|
|
709
|
+
/** Posting guidelines, 1–4,096 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace
|
|
710
|
+
* trimming, or null for none. The original string is sent unchanged
|
|
711
|
+
*/
|
|
712
|
+
readonly topic?: string | null
|
|
713
|
+
/** Tags that posts can carry, at most 20. Fluxer rejects two tags with the same name. Omission creates none */
|
|
714
|
+
readonly availableTags?: readonly ForumTagInput[]
|
|
715
|
+
/** Reaction that clients show on each post, or null for none */
|
|
716
|
+
readonly defaultReactionEmoji?: ForumDefaultReactionInput | null
|
|
717
|
+
/** Default post order, a ForumSortOrder value, or null for none */
|
|
718
|
+
readonly defaultSortOrder?: number | null
|
|
719
|
+
/** How a post search matches several tags by default: "match_some" finds posts with any of them and
|
|
720
|
+
* "match_all" only posts with all of them. Null and omission leave "match_some"
|
|
721
|
+
*/
|
|
722
|
+
readonly defaultTagSetting?: "match_some" | "match_all" | null
|
|
723
|
+
/** Channel flags. Supply ChannelFlags.RequireTag to make every new post carry a tag, which needs at least one tag
|
|
724
|
+
* that is not moderated. On a media channel, add ChannelFlags.HideMediaDownloadOptions to hide the download options.
|
|
725
|
+
* Any other bit fails locally
|
|
726
|
+
*/
|
|
727
|
+
readonly flags?: number
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Creates a forum channel, which holds posts instead of messages
|
|
732
|
+
*
|
|
733
|
+
* @category Channels
|
|
734
|
+
*/
|
|
735
|
+
export interface ForumChannelCreate extends ForumChannelCreateBase {
|
|
736
|
+
/** Forum channel type */
|
|
737
|
+
readonly type: typeof ChannelType.Forum
|
|
738
|
+
/** Default post layout, a ForumLayout value. Null sets ForumLayout.Default */
|
|
739
|
+
readonly defaultForumLayout?: number | null
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Creates a media channel, a forum channel that can hide media download options. It has no layout setting
|
|
744
|
+
*
|
|
745
|
+
* @category Channels
|
|
746
|
+
*/
|
|
747
|
+
export interface MediaChannelCreate extends ForumChannelCreateBase {
|
|
748
|
+
/** Media channel type */
|
|
749
|
+
readonly type: typeof ChannelType.Media
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* One supported community-channel creation request, with Fluxer positioning a new channel itself
|
|
754
|
+
*
|
|
755
|
+
* @category Channels
|
|
756
|
+
*/
|
|
757
|
+
export type ChannelCreate =
|
|
758
|
+
| TextChannelCreate
|
|
759
|
+
| AnnouncementChannelCreate
|
|
760
|
+
| VoiceChannelCreate
|
|
761
|
+
| CategoryChannelCreate
|
|
762
|
+
| LinkChannelCreate
|
|
763
|
+
| ForumChannelCreate
|
|
764
|
+
| MediaChannelCreate
|
|
765
|
+
|
|
766
|
+
/** Change an existing community channel's settings without replacing the channel.
|
|
767
|
+
* Omitted fields stay unchanged. The permissionOverwrites list replaces the whole explicit list, so include entries that
|
|
768
|
+
* must stay. Use channels.reorder to move a channel between categories or change its order. Unknown keys and an empty patch fail locally.
|
|
769
|
+
* Fluxer checks channel-type compatibility and permissions after local validation
|
|
770
|
+
*
|
|
771
|
+
* @category Channels
|
|
772
|
+
*/
|
|
773
|
+
export interface ChannelEdit {
|
|
774
|
+
/** Convert between Text (0) and Announcement (5), alone or with other settings. Omission preserves the type.
|
|
775
|
+
* Other values fail locally. Fluxer requires ManageChannels and rejects converting a text channel that receives
|
|
776
|
+
* follows with CHANNEL_HAS_FOLLOWED_CHANNELS. Converting Announcement to Text queues asynchronous follower removal.
|
|
777
|
+
* Fluxer emits a complete Channel Update with the new type, replacing any cached observation before handlers run.
|
|
778
|
+
* The edit does not await that event or follower removal
|
|
779
|
+
* @see https://github.com/fluxerapp/fluxer/blob/597116a0b4bf3a212789bdebe7f284babc33b445/fluxer_api/src/api/channel/services/channel_data/ChannelOperationsService.ts
|
|
780
|
+
*/
|
|
781
|
+
readonly type?: typeof ChannelType.Text | typeof ChannelType.Announcement
|
|
782
|
+
/** Channel name. Raw input may contain at most 10,000 UTF-16 code units. For validation, Fluxer's general-name
|
|
783
|
+
* rules remove U+000C and U+202E, trim surrounding whitespace, strip provider-defined invisible characters,
|
|
784
|
+
* normalize whitespace and collapse its runs, then require 1–100 UTF-16 code units. The SDK sends the original
|
|
785
|
+
* string without lowercasing or hyphenating it
|
|
786
|
+
*/
|
|
787
|
+
readonly name?: string
|
|
788
|
+
/** Channel description, 1–1,024 UTF-16 code units after U+000C and U+202E removal and
|
|
789
|
+
* surrounding-whitespace trimming, or null to clear. A forum or media channel allows up to 4,096 code units,
|
|
790
|
+
* which Fluxer checks against the channel's type. The original string is sent unchanged
|
|
791
|
+
*/
|
|
792
|
+
readonly topic?: string | null
|
|
793
|
+
/** Absolute link-channel URL, or null to clear. No URL is fetched by this request */
|
|
794
|
+
readonly url?: string | null
|
|
795
|
+
/** Voice bitrate in bits per second, integer 8,000–384,000, or null.
|
|
796
|
+
* Fluxer clamps the requested value to the community's enabled bitrate tier. Read the returned channel for the applied value
|
|
797
|
+
*/
|
|
798
|
+
readonly bitrate?: number | null
|
|
799
|
+
/** Maximum voice users, integer 0–99, or null. Zero requests unlimited users */
|
|
800
|
+
readonly userLimit?: number | null
|
|
801
|
+
/** Maximum simultaneous voice connections per user, integer 1–100, or null */
|
|
802
|
+
readonly voiceConnectionLimit?: number | null
|
|
803
|
+
/** Adult-content setting using Fluxer's older NSFW field. True marks the channel adult-only, while false and null
|
|
804
|
+
* restore inheritance from the parent category or community. Use nsfwOverride false to mark it not adult-only.
|
|
805
|
+
* When both are present, nsfwOverride wins
|
|
806
|
+
*/
|
|
807
|
+
readonly nsfw?: boolean | null
|
|
808
|
+
/** Explicit adult-content override, with null inheriting */
|
|
809
|
+
readonly nsfwOverride?: boolean | null
|
|
810
|
+
/** 0 inherits the content-warning level, 1 requests a channel content warning */
|
|
811
|
+
readonly contentWarningLevel?: number
|
|
812
|
+
/** Warning text with 0–200 raw UTF-16 code units, with null inheriting.
|
|
813
|
+
* No text normalization is applied before validation
|
|
814
|
+
*/
|
|
815
|
+
readonly contentWarningText?: string | null
|
|
816
|
+
/** Delay between a user's messages in seconds, integer 0–21,600, or null. Zero disables slowmode */
|
|
817
|
+
readonly rateLimitPerUser?: number | null
|
|
818
|
+
/** Replace all explicit overwrites, with [] clearing them and omission preserving them */
|
|
819
|
+
readonly permissionOverwrites?: readonly PermissionOverwrite[]
|
|
820
|
+
/** Voice region ID of 1–64 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace
|
|
821
|
+
* trimming, with null selecting automatic routing. The original string is sent unchanged
|
|
822
|
+
*/
|
|
823
|
+
readonly rtcRegion?: string | null
|
|
824
|
+
/** Auto-archive period in minutes that a text, announcement, forum or media channel stores for its threads: One of
|
|
825
|
+
* the ThreadAutoArchiveMinutes values, or null to clear it. Fluxer stores the value but does not apply it to a
|
|
826
|
+
* new thread. Fluxer ignores it for another channel type, and on a text or announcement channel in a community
|
|
827
|
+
* where threads are not active
|
|
828
|
+
*/
|
|
829
|
+
readonly defaultAutoArchiveMinutes?: number | null
|
|
830
|
+
/** Slowmode delay in seconds that a new thread in a text, announcement, forum or media channel copies when its
|
|
831
|
+
* creation sets none, an integer from 0 through 21,600, or null to clear it. Fluxer ignores it for another channel
|
|
832
|
+
* type, and on a text or announcement channel in a community where threads are not active
|
|
833
|
+
*/
|
|
834
|
+
readonly defaultThreadRateLimitPerUser?: number | null
|
|
835
|
+
/** Replace the complete tag list of a forum or media channel, at most 20 tags. Fluxer rejects two tags with the
|
|
836
|
+
* same name. Entries with an id keep that tag, entries without one add a tag, and a tag left out is deleted.
|
|
837
|
+
* Use channels.createForumTag, editForumTag and deleteForumTag to change one tag without sending the list.
|
|
838
|
+
* Fluxer ignores this setting for another channel type
|
|
839
|
+
*/
|
|
840
|
+
readonly availableTags?: readonly ForumTagInput[]
|
|
841
|
+
/** Reaction that clients show on each post of a forum or media channel, or null for none. Fluxer ignores it for
|
|
842
|
+
* another channel type
|
|
843
|
+
*/
|
|
844
|
+
readonly defaultReactionEmoji?: ForumDefaultReactionInput | null
|
|
845
|
+
/** Default post order of a forum or media channel, a ForumSortOrder value, or null for none. Fluxer ignores it for
|
|
846
|
+
* another channel type
|
|
847
|
+
*/
|
|
848
|
+
readonly defaultSortOrder?: number | null
|
|
849
|
+
/** Default post layout of a forum channel, a ForumLayout value. Null sets ForumLayout.Default. Fluxer ignores it
|
|
850
|
+
* for a media channel and for another channel type
|
|
851
|
+
*/
|
|
852
|
+
readonly defaultForumLayout?: number | null
|
|
853
|
+
/** How a post search of a forum or media channel matches several tags by default: "match_some" finds posts with any
|
|
854
|
+
* of them and "match_all" only posts with all of them. Null sets "match_some". Fluxer ignores it for another
|
|
855
|
+
* channel type
|
|
856
|
+
*/
|
|
857
|
+
readonly defaultTagSetting?: "match_some" | "match_all" | null
|
|
858
|
+
/** Flags of a forum or media channel, replacing all of them: Include ChannelFlags.RequireTag to keep it required.
|
|
859
|
+
* RequireTag needs at least one tag that is not moderated, and ChannelFlags.HideMediaDownloadOptions is valid on a
|
|
860
|
+
* media channel only. Fluxer checks both against the channel, and any other bit fails locally.
|
|
861
|
+
* Fluxer ignores this setting for another channel type
|
|
862
|
+
*/
|
|
863
|
+
readonly flags?: number
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
/** Move or reorder one community channel with channels.reorder.
|
|
867
|
+
* Channels left out of the request are not explicit targets. Fluxer applies entries in order, so the requested position
|
|
868
|
+
* may not be the final position if another change happens at the same time
|
|
869
|
+
*
|
|
870
|
+
* @category Channels
|
|
871
|
+
*/
|
|
872
|
+
export interface ChannelPosition {
|
|
873
|
+
/** Decimal channel ID */
|
|
874
|
+
readonly id: string
|
|
875
|
+
/** Nonnegative requested sibling position */
|
|
876
|
+
readonly position?: number
|
|
877
|
+
/** New parent category, with null moving to the top level and omission preserving the parent */
|
|
878
|
+
readonly parentId?: string | null
|
|
879
|
+
/** Sibling directly preceding this channel, with null placing it first */
|
|
880
|
+
readonly precedingSiblingId?: string | null
|
|
881
|
+
/** Copy destination overwrites only when moving into a new category, default false and no sync for the same parent */
|
|
882
|
+
readonly syncPermissionsOnMove?: boolean
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* Visible channel updates delivered together, not a complete community channel list
|
|
887
|
+
*
|
|
888
|
+
* @category Events and collectors
|
|
889
|
+
*/
|
|
890
|
+
export interface GuildChannelUpdateBulk {
|
|
891
|
+
/** Decimal community ID */
|
|
892
|
+
readonly guildId: string
|
|
893
|
+
/** Frozen channel snapshots delivered in this dispatch */
|
|
894
|
+
readonly channels: readonly GuildChannel[]
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
/** Subscribe a text channel to messages published from an announcement channel.
|
|
898
|
+
* Fluxer validates the source, target and permissions without an SDK prefetch
|
|
899
|
+
*
|
|
900
|
+
* @category Channels
|
|
901
|
+
*/
|
|
902
|
+
export interface ChannelFollowInput {
|
|
903
|
+
/** Decimal ID of the receiving community text channel, whose type must be ChannelType.Text */
|
|
904
|
+
readonly targetChannelId: string
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
/** A confirmed announcement-channel follow, returned as a frozen value.
|
|
908
|
+
* Delete webhookId through client.webhooks.delete to stop following
|
|
909
|
+
*
|
|
910
|
+
* @category Channels
|
|
911
|
+
*/
|
|
912
|
+
export interface FollowedChannel {
|
|
913
|
+
/** Decimal ID of the followed announcement channel, not the receiving channel */
|
|
914
|
+
readonly channelId: string
|
|
915
|
+
/** Decimal ID of the channel-follower webhook created in the receiving channel */
|
|
916
|
+
readonly webhookId: string
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
/** A frozen count of channels and communities following one announcement channel.
|
|
920
|
+
* Fluxer can cache these counts for up to 60 seconds. They are not live subscriptions
|
|
921
|
+
*
|
|
922
|
+
* @category Channels
|
|
923
|
+
*/
|
|
924
|
+
export interface ChannelFollowerStats {
|
|
925
|
+
/** Number of following channels */
|
|
926
|
+
readonly channelCount: number
|
|
927
|
+
/** Number of distinct communities containing following channels */
|
|
928
|
+
readonly guildCount: number
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Settings shared by remote community-channel operations
|
|
933
|
+
*
|
|
934
|
+
* @category Options
|
|
935
|
+
*/
|
|
936
|
+
export interface ChannelOperationOptions {
|
|
937
|
+
/** Total milliseconds across local queueing, rate waits, retries and HTTP, integer 1–2,147,483,647, default the client's rest.defaultTimeoutMs, 30,000 unless configured.
|
|
938
|
+
* Owned cleanup is awaited afterward, so the call can finish later than this deadline
|
|
939
|
+
*/
|
|
940
|
+
readonly timeoutMs?: number
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* Default API calls start immediately, with abort cancelling only this call and awaiting owned cleanup
|
|
945
|
+
*
|
|
946
|
+
* @category Options
|
|
947
|
+
*/
|
|
948
|
+
export interface DefaultChannelOperationOptions extends ChannelOperationOptions, OperationOptions {}
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* Settings for a channel mutation whose provider handler consumes an audit-log reason
|
|
952
|
+
*
|
|
953
|
+
* @category Options
|
|
954
|
+
*/
|
|
955
|
+
export interface ChannelAuditOperationOptions extends ChannelOperationOptions {
|
|
956
|
+
/** Optional audit-log reason, 1–512 printable ASCII characters after trimming.
|
|
957
|
+
* Sent as a raw header because Fluxer does not decode URL escapes. Non-ASCII and control characters fail before dispatch.
|
|
958
|
+
* Omission sends no header. Never included in SDK errors or diagnostics.
|
|
959
|
+
* Header delivery does not guarantee provider retention. Fluxer's channel-reorder path currently does not persist it in an audit entry
|
|
960
|
+
*/
|
|
961
|
+
readonly auditReason?: string
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Default API audited channel mutations start immediately. Abort cannot roll back a dispatched mutation
|
|
966
|
+
*
|
|
967
|
+
* @category Options
|
|
968
|
+
*/
|
|
969
|
+
export interface DefaultChannelAuditOperationOptions extends ChannelAuditOperationOptions, OperationOptions {}
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* The channel or thread action named in an expected failure or SdkDefect
|
|
973
|
+
*
|
|
974
|
+
* @category Errors
|
|
975
|
+
*/
|
|
976
|
+
export type ChannelOperation =
|
|
977
|
+
| "channels.get"
|
|
978
|
+
| "channels.fetch"
|
|
979
|
+
| "channels.fetchAll"
|
|
980
|
+
| "channels.follow"
|
|
981
|
+
| "channels.fetchFollowerStats"
|
|
982
|
+
| "channels.create"
|
|
983
|
+
| "channels.edit"
|
|
984
|
+
| "channels.delete"
|
|
985
|
+
| "channels.reorder"
|
|
986
|
+
| "channels.setPermissionOverwrite"
|
|
987
|
+
| "channels.removePermissionOverwrite"
|
|
988
|
+
| "channels.createForumTag"
|
|
989
|
+
| "channels.editForumTag"
|
|
990
|
+
| "channels.deleteForumTag"
|
|
991
|
+
| "threads.create"
|
|
992
|
+
| "threads.createFromMessage"
|
|
993
|
+
| "threads.createPost"
|
|
994
|
+
| "threads.edit"
|
|
995
|
+
| "threads.fetchActive"
|
|
996
|
+
| "threads.fetchArchived"
|
|
997
|
+
| "threads.search"
|
|
998
|
+
| "threads.join"
|
|
999
|
+
| "threads.leave"
|
|
1000
|
+
| "threads.addMember"
|
|
1001
|
+
| "threads.removeMember"
|
|
1002
|
+
| "threads.fetchMember"
|
|
1003
|
+
| "threads.fetchMembers"
|
|
1004
|
+
|
|
1005
|
+
/** Expected failure when reading or changing community channels, threads and forum tags.
|
|
1006
|
+
* Check reason to identify the failure. Check outcome before retrying a change because an uncertain write may have happened.
|
|
1007
|
+
* The error contains no token, private input value or server response body. The default API returns it in an Err.
|
|
1008
|
+
* The Effect API fails with it in its typed error channel.
|
|
1009
|
+
* A missing-permission rejection lists the permissions that the operation needs in details.requiredPermissions when
|
|
1010
|
+
* the SDK knows them, as ApiErrorDetail describes
|
|
1011
|
+
*
|
|
1012
|
+
* @category Errors
|
|
1013
|
+
*/
|
|
1014
|
+
export class ChannelOperationError extends FluxerlyError {
|
|
1015
|
+
/** Stable expected-failure discriminator */
|
|
1016
|
+
readonly _tag = "ChannelOperationError"
|
|
1017
|
+
/** Requested operation */
|
|
1018
|
+
readonly operation: ChannelOperation
|
|
1019
|
+
/** Failure category, described by {@link OperationReason} */
|
|
1020
|
+
readonly reason: OperationReason
|
|
1021
|
+
/** Whether the request may have reached Fluxer, described by {@link OperationOutcome} */
|
|
1022
|
+
readonly outcome: OperationOutcome
|
|
1023
|
+
/** HTTP status when available, otherwise null */
|
|
1024
|
+
readonly status: number | null
|
|
1025
|
+
/** Usable server-required retry wait in milliseconds, otherwise null */
|
|
1026
|
+
readonly retryAfterMs: number | null
|
|
1027
|
+
/** Safe classification of why Fluxer rejected the request, or null when the response could not be classified */
|
|
1028
|
+
readonly apiError: ApiErrorDetail | null
|
|
1029
|
+
/** Safe explanation of the locally invalid property, or null when no input problem could be identified */
|
|
1030
|
+
readonly inputValidation: InputValidationDetail | null
|
|
1031
|
+
/** Create the failure from its operation, reason and outcome, with optional status, retry wait, API detail, input detail and cause */
|
|
1032
|
+
constructor(options: OperationErrorOptions<ChannelOperation>) {
|
|
1033
|
+
const fields = operationErrorFields(options)
|
|
1034
|
+
super(operationErrorText("Channel", fields), operationErrorSettings("channel", fields, options.cause))
|
|
1035
|
+
this.operation = fields.operation
|
|
1036
|
+
this.reason = fields.reason
|
|
1037
|
+
this.outcome = fields.outcome
|
|
1038
|
+
this.status = fields.status
|
|
1039
|
+
this.retryAfterMs = fields.retryAfterMs
|
|
1040
|
+
this.apiError = fields.apiError
|
|
1041
|
+
this.inputValidation = freezeInputValidationDetail(fields.inputValidation)
|
|
1042
|
+
this.name = this._tag
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Native interruption is outside this union, with default API methods additionally returning CancelledError
|
|
1048
|
+
*
|
|
1049
|
+
* @category Errors
|
|
1050
|
+
*/
|
|
1051
|
+
export type ChannelOperationFailure = ChannelOperationError | ClientClosedError
|