@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/guilds.ts
ADDED
|
@@ -0,0 +1,1108 @@
|
|
|
1
|
+
import type { OperationOptions } from "./client.js"
|
|
2
|
+
import type { ClientClosedError } from "./errors.js"
|
|
3
|
+
import { operationErrorFields, operationErrorSettings, operationErrorText, type ApiErrorDetail } from "./api-errors.js"
|
|
4
|
+
import { FluxerlyError, type OperationErrorOptions, type OperationOutcome, type OperationReason } from "./errors.js"
|
|
5
|
+
import { freezeInputValidationDetail, type InputValidationDetail } from "./input-validation.js"
|
|
6
|
+
|
|
7
|
+
/** Identity and settings of a Fluxer guild, the community that owns channels, members and roles.
|
|
8
|
+
* Reads and gateway events return frozen copies that do not update as the community changes.
|
|
9
|
+
* Optional settings may be missing. A missing value is not necessarily the default used when creating a community
|
|
10
|
+
*
|
|
11
|
+
* @category Guilds and members
|
|
12
|
+
*/
|
|
13
|
+
export interface Guild {
|
|
14
|
+
/** Decimal guild ID */
|
|
15
|
+
readonly id: string
|
|
16
|
+
/** Current community name */
|
|
17
|
+
readonly name: string
|
|
18
|
+
/** Decimal owner user ID, not a permission decision */
|
|
19
|
+
readonly ownerId: string
|
|
20
|
+
/** Feature names supplied by Fluxer, including unknown future names.
|
|
21
|
+
* ANNOUNCEMENT_CHANNELS_DISABLED is observed here, not writable through GuildEdit.featureToggles
|
|
22
|
+
*/
|
|
23
|
+
readonly features: readonly string[]
|
|
24
|
+
/** Icon asset hash, not an image URL. Null means no icon, omission means unavailable */
|
|
25
|
+
readonly icon?: string | null
|
|
26
|
+
/** Banner asset hash, not an image URL. Null means no banner, omission means unavailable */
|
|
27
|
+
readonly banner?: string | null
|
|
28
|
+
/** Background asset hash for invites. Null means no splash, omission means unavailable */
|
|
29
|
+
readonly splash?: string | null
|
|
30
|
+
/** Background asset hash for embedded invites. Null means no splash, omission means unavailable */
|
|
31
|
+
readonly embedSplash?: string | null
|
|
32
|
+
/** Invite splash-card alignment, omission means unavailable */
|
|
33
|
+
readonly splashCardAlignment?: GuildSplashCardAlignment
|
|
34
|
+
/** System-message channel ID. Null disables it, omission means unavailable */
|
|
35
|
+
readonly systemChannelId?: string | null
|
|
36
|
+
/** System-message suppression flags, omission means unavailable */
|
|
37
|
+
readonly systemChannelFlags?: number
|
|
38
|
+
/** AFK voice-channel ID. Null disables it, omission means unavailable */
|
|
39
|
+
readonly afkChannelId?: string | null
|
|
40
|
+
/** Seconds before Fluxer moves inactive voice participants to the AFK channel, omission means unavailable */
|
|
41
|
+
readonly afkTimeoutSeconds?: number
|
|
42
|
+
/** Default notification level for new members, omission means unavailable */
|
|
43
|
+
readonly defaultMessageNotifications?: GuildDefaultMessageNotification
|
|
44
|
+
/** Required member-verification level, omission means unavailable.
|
|
45
|
+
* The retired level 4 from older instances decodes as High (3), matching Fluxer's legacy normalization.
|
|
46
|
+
* Other values outside 0–3 make the response malformed
|
|
47
|
+
* @see https://github.com/fluxerapp/fluxer/blob/597116a0b4bf3a212789bdebe7f284babc33b445/fluxer_api/src/api/models/Guild.ts
|
|
48
|
+
*/
|
|
49
|
+
readonly verificationLevel?: GuildVerificationLevel
|
|
50
|
+
/** Two-factor requirement for moderation permissions, omission means unavailable.
|
|
51
|
+
* While it is GuildMfaLevels.Elevated, Fluxer rejects operations that need Administrator, BanMembers,
|
|
52
|
+
* KickMembers, ManageChannels, ManageGuild, ManageMessages, ManageRoles, ManageThreads, ManageWebhooks or ModerateMembers
|
|
53
|
+
* with HTTP 400 and apiError.code twoFactorRequired, unless the bot owns the community or the account that owns
|
|
54
|
+
* its application has two-factor authentication enabled. The SDK does not know that account's enrolment,
|
|
55
|
+
* so an elevated level signals a possible rejection rather than a certain one
|
|
56
|
+
*/
|
|
57
|
+
readonly mfaLevel?: GuildMfaLevel
|
|
58
|
+
/** Whether Fluxer marks the community as adult content, omission means unavailable */
|
|
59
|
+
readonly nsfw?: boolean
|
|
60
|
+
/** Whether Fluxer displays a community-wide content warning, omission means unavailable */
|
|
61
|
+
readonly contentWarningLevel?: GuildContentWarningLevel
|
|
62
|
+
/** Custom community-wide warning text. Null restores Fluxer's localized default, omission means unavailable */
|
|
63
|
+
readonly contentWarningText?: string | null
|
|
64
|
+
/** Explicit-media filtering level, omission means unavailable */
|
|
65
|
+
readonly explicitContentFilter?: GuildExplicitContentFilter
|
|
66
|
+
/** ISO 8601 historical-message cutoff. Null disables history for members without Read Message History */
|
|
67
|
+
readonly messageHistoryCutoff?: string | null
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** Gateway notification that a community is no longer visible to this client
|
|
71
|
+
*
|
|
72
|
+
* This can describe temporary unavailability rather than community deletion or removal of the bot.
|
|
73
|
+
* The `unavailable` field is true when Fluxer temporarily withholds the community and false when its field is absent.
|
|
74
|
+
* The `unavailableHidden` field is true when Fluxer marks that unavailable community hidden and false when its field is absent
|
|
75
|
+
*
|
|
76
|
+
* @category Events and collectors
|
|
77
|
+
*/
|
|
78
|
+
export interface GuildDeletion {
|
|
79
|
+
/** Decimal guild ID */
|
|
80
|
+
readonly id: string
|
|
81
|
+
/** Whether Fluxer reports a temporary unavailable placeholder */
|
|
82
|
+
readonly unavailable: boolean
|
|
83
|
+
/** Whether Fluxer reports that temporary placeholder as hidden */
|
|
84
|
+
readonly unavailableHidden: boolean
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Suppress selected automatic messages in a community's system channel through GuildEdit.systemChannelFlags
|
|
89
|
+
*
|
|
90
|
+
* @category Guilds and members
|
|
91
|
+
*/
|
|
92
|
+
export const GuildSystemChannelFlags: Readonly<{
|
|
93
|
+
/** Hide automatic member-join notifications */
|
|
94
|
+
SuppressJoinNotifications: 1
|
|
95
|
+
}> = Object.freeze({
|
|
96
|
+
SuppressJoinNotifications: 1,
|
|
97
|
+
})
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* One known system-channel flag bit. A flags value of zero clears every currently supported suppression
|
|
101
|
+
*
|
|
102
|
+
* @category Guilds and members
|
|
103
|
+
*/
|
|
104
|
+
export type GuildSystemChannelFlag = (typeof GuildSystemChannelFlags)[keyof typeof GuildSystemChannelFlags]
|
|
105
|
+
|
|
106
|
+
/** Set the initial notification preference for new community members through GuildEdit.defaultMessageNotifications.
|
|
107
|
+
* Existing members can keep their own notification preferences
|
|
108
|
+
*
|
|
109
|
+
* @category Guilds and members
|
|
110
|
+
*/
|
|
111
|
+
export const GuildDefaultMessageNotifications: Readonly<{
|
|
112
|
+
/** Notify for all messages by default */
|
|
113
|
+
AllMessages: 0
|
|
114
|
+
/** Notify only when mentioned by default */
|
|
115
|
+
OnlyMentions: 1
|
|
116
|
+
}> = Object.freeze({
|
|
117
|
+
AllMessages: 0,
|
|
118
|
+
OnlyMentions: 1,
|
|
119
|
+
})
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* One Fluxer default-notification level
|
|
123
|
+
*
|
|
124
|
+
* @category Guilds and members
|
|
125
|
+
*/
|
|
126
|
+
export type GuildDefaultMessageNotification =
|
|
127
|
+
(typeof GuildDefaultMessageNotifications)[keyof typeof GuildDefaultMessageNotifications]
|
|
128
|
+
|
|
129
|
+
/** Values for the verification policy required before members can participate in a community.
|
|
130
|
+
* Use GuildEdit.verificationLevel to request a level. Fluxer enforces the account requirements for each level.
|
|
131
|
+
* Fluxer's verification check exempts the community owner, bots and members with assigned roles.
|
|
132
|
+
* Discoverable communities enforce at least Low even when the stored setting is None.
|
|
133
|
+
* These describe the verification check only, not all requirements for sending messages or joining voice
|
|
134
|
+
* @see https://github.com/fluxerapp/fluxer/blob/597116a0b4bf3a212789bdebe7f284babc33b445/fluxer_api/src/api/utils/GuildVerificationUtils.ts
|
|
135
|
+
*
|
|
136
|
+
* @category Guilds and members
|
|
137
|
+
*/
|
|
138
|
+
export const GuildVerificationLevels: Readonly<{
|
|
139
|
+
/** No community-level verification requirement, except that discoverable communities still enforce Low */
|
|
140
|
+
None: 0
|
|
141
|
+
/** Require a verified email address for members who are not exempt */
|
|
142
|
+
Low: 1
|
|
143
|
+
/** Require Low and an account at least five minutes old */
|
|
144
|
+
Medium: 2
|
|
145
|
+
/** Require Medium and, when join time is available, at least ten minutes of community membership */
|
|
146
|
+
High: 3
|
|
147
|
+
}> = Object.freeze({
|
|
148
|
+
None: 0,
|
|
149
|
+
Low: 1,
|
|
150
|
+
Medium: 2,
|
|
151
|
+
High: 3,
|
|
152
|
+
})
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* One Fluxer member-verification level
|
|
156
|
+
*
|
|
157
|
+
* @category Guilds and members
|
|
158
|
+
*/
|
|
159
|
+
export type GuildVerificationLevel = (typeof GuildVerificationLevels)[keyof typeof GuildVerificationLevels]
|
|
160
|
+
|
|
161
|
+
/** Values of Guild.mfaLevel, the community's two-factor requirement for moderation permissions.
|
|
162
|
+
* Only the community owner can change it in Fluxer, and GuildEdit does not change it.
|
|
163
|
+
* The owner is exempt, and a bot follows the two-factor enrolment of the account that owns its application
|
|
164
|
+
* @see https://github.com/fluxerapp/fluxer/blob/597116a0b4bf3a212789bdebe7f284babc33b445/packages/constants/src/GuildConstants.ts
|
|
165
|
+
*
|
|
166
|
+
* @category Guilds and members
|
|
167
|
+
*/
|
|
168
|
+
export const GuildMfaLevels: Readonly<{
|
|
169
|
+
/** No two-factor requirement for moderation permissions */
|
|
170
|
+
None: 0
|
|
171
|
+
/** Moderation permissions work only for the owner and for callers with two-factor authentication enabled.
|
|
172
|
+
* Other callers receive apiError.code twoFactorRequired
|
|
173
|
+
*/
|
|
174
|
+
Elevated: 1
|
|
175
|
+
}> = Object.freeze({
|
|
176
|
+
None: 0,
|
|
177
|
+
Elevated: 1,
|
|
178
|
+
})
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* One Fluxer community two-factor requirement level
|
|
182
|
+
*
|
|
183
|
+
* @category Guilds and members
|
|
184
|
+
*/
|
|
185
|
+
export type GuildMfaLevel = (typeof GuildMfaLevels)[keyof typeof GuildMfaLevels]
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Choose whose uploaded media Fluxer filters for explicit content through GuildEdit.explicitContentFilter
|
|
189
|
+
*
|
|
190
|
+
* @category Guilds and members
|
|
191
|
+
*/
|
|
192
|
+
export const GuildExplicitContentFilters: Readonly<{
|
|
193
|
+
/** Do not enable this filtering policy */
|
|
194
|
+
Disabled: 0
|
|
195
|
+
/** Apply filtering to members without assigned roles */
|
|
196
|
+
MembersWithoutRoles: 1
|
|
197
|
+
/** Apply filtering to all members */
|
|
198
|
+
AllMembers: 2
|
|
199
|
+
}> = Object.freeze({
|
|
200
|
+
Disabled: 0,
|
|
201
|
+
MembersWithoutRoles: 1,
|
|
202
|
+
AllMembers: 2,
|
|
203
|
+
})
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* One Fluxer explicit-media filtering level
|
|
207
|
+
*
|
|
208
|
+
* @category Guilds and members
|
|
209
|
+
*/
|
|
210
|
+
export type GuildExplicitContentFilter = (typeof GuildExplicitContentFilters)[keyof typeof GuildExplicitContentFilters]
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Choose the community-wide warning policy through GuildEdit.contentWarningLevel
|
|
214
|
+
*
|
|
215
|
+
* @category Guilds and members
|
|
216
|
+
*/
|
|
217
|
+
export const GuildContentWarningLevels: Readonly<{
|
|
218
|
+
/** Use the inherited warning policy */
|
|
219
|
+
Inherit: 0
|
|
220
|
+
/** Request a community-wide content warning */
|
|
221
|
+
ContentWarning: 1
|
|
222
|
+
}> = Object.freeze({
|
|
223
|
+
Inherit: 0,
|
|
224
|
+
ContentWarning: 1,
|
|
225
|
+
})
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* One Fluxer community-wide content-warning level
|
|
229
|
+
*
|
|
230
|
+
* @category Guilds and members
|
|
231
|
+
*/
|
|
232
|
+
export type GuildContentWarningLevel = (typeof GuildContentWarningLevels)[keyof typeof GuildContentWarningLevels]
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Position the card over the invite splash image through GuildEdit.splashCardAlignment
|
|
236
|
+
*
|
|
237
|
+
* @category Guilds and members
|
|
238
|
+
*/
|
|
239
|
+
export const GuildSplashCardAlignments: Readonly<{
|
|
240
|
+
/** Center the invitation card over its background image */
|
|
241
|
+
Center: 0
|
|
242
|
+
/** Place the invitation card on the left side of its background image */
|
|
243
|
+
Left: 1
|
|
244
|
+
/** Place the invitation card on the right side of its background image */
|
|
245
|
+
Right: 2
|
|
246
|
+
}> = Object.freeze({
|
|
247
|
+
Center: 0,
|
|
248
|
+
Left: 1,
|
|
249
|
+
Right: 2,
|
|
250
|
+
})
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* One Fluxer invite splash-card alignment
|
|
254
|
+
*
|
|
255
|
+
* @category Guilds and members
|
|
256
|
+
*/
|
|
257
|
+
export type GuildSplashCardAlignment = (typeof GuildSplashCardAlignments)[keyof typeof GuildSplashCardAlignments]
|
|
258
|
+
|
|
259
|
+
/** Optional community behaviors that a bot with ManageGuild can replace through GuildEdit.featureToggles.
|
|
260
|
+
* Supply the complete desired set, not just toggles to add. Cloning must be enabled on the source community
|
|
261
|
+
*
|
|
262
|
+
* @category Guilds and members
|
|
263
|
+
*/
|
|
264
|
+
export const GuildFeatureToggles: Readonly<{
|
|
265
|
+
/** Disable community invitations */
|
|
266
|
+
InvitesDisabled: "INVITES_DISABLED"
|
|
267
|
+
/** Permit flexible text-channel names. Disabling this can sanitize existing channel names */
|
|
268
|
+
TextChannelFlexibleNames: "TEXT_CHANNEL_FLEXIBLE_NAMES"
|
|
269
|
+
/** Display the community banner in a separate section below the community header in the Fluxer app */
|
|
270
|
+
DetachedBanner: "DETACHED_BANNER"
|
|
271
|
+
/** Allow eligible callers to clone this community's emoji into another community */
|
|
272
|
+
CloneEmojiEnabled: "CLONE_EMOJI_ENABLED"
|
|
273
|
+
/** Allow eligible callers to clone this community's stickers into another community */
|
|
274
|
+
CloneStickerEnabled: "CLONE_STICKER_ENABLED"
|
|
275
|
+
/** Hide the community owner's crown indicator */
|
|
276
|
+
HideOwnerCrown: "HIDE_OWNER_CROWN"
|
|
277
|
+
}> = Object.freeze({
|
|
278
|
+
InvitesDisabled: "INVITES_DISABLED",
|
|
279
|
+
TextChannelFlexibleNames: "TEXT_CHANNEL_FLEXIBLE_NAMES",
|
|
280
|
+
DetachedBanner: "DETACHED_BANNER",
|
|
281
|
+
CloneEmojiEnabled: "CLONE_EMOJI_ENABLED",
|
|
282
|
+
CloneStickerEnabled: "CLONE_STICKER_ENABLED",
|
|
283
|
+
HideOwnerCrown: "HIDE_OWNER_CROWN",
|
|
284
|
+
})
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* One community feature that a bot can include in GuildEdit.featureToggles
|
|
288
|
+
*
|
|
289
|
+
* @category Guilds and members
|
|
290
|
+
*/
|
|
291
|
+
export type GuildFeatureToggle = (typeof GuildFeatureToggles)[keyof typeof GuildFeatureToggles]
|
|
292
|
+
|
|
293
|
+
/** The community's current custom invitation code and shareable URL, or null fields when no custom code is set.
|
|
294
|
+
* This is distinct from individually created channel invites. The SDK does not retain this frozen result or verify
|
|
295
|
+
* that a later join can succeed
|
|
296
|
+
*
|
|
297
|
+
* @category Guilds and members
|
|
298
|
+
*/
|
|
299
|
+
export interface GuildVanityUrl {
|
|
300
|
+
/** Lowercase custom code, or null when removed. Share only with intended recipients */
|
|
301
|
+
readonly code: string | null
|
|
302
|
+
/** Hosted Fluxer invite URL, or null without a code. Never included in SDK diagnostics */
|
|
303
|
+
readonly url: string | null
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/** Custom invitation details with a use count returned by guilds.fetchVanityUrl.
|
|
307
|
+
* The guilds.editVanityUrl method returns GuildVanityUrl without a hidden follow-up count read.
|
|
308
|
+
* The observed count can change immediately after the request
|
|
309
|
+
*
|
|
310
|
+
* @category Guilds and members
|
|
311
|
+
*/
|
|
312
|
+
export interface GuildVanityUrlUsage extends GuildVanityUrl {
|
|
313
|
+
/** Observed nonnegative use count, not retained or inferred by editVanityUrl */
|
|
314
|
+
readonly uses: number
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Change an existing community's settings through the bot client
|
|
319
|
+
*
|
|
320
|
+
* Omitted properties remain unchanged and null clears the applicable setting. Fluxer requires ManageGuild and can
|
|
321
|
+
* reject feature-gated assets, invalid channel types, content, discoverability or historical-cutoff values after local
|
|
322
|
+
* validation. The encoded JSON body, including data URIs, cannot exceed 4,194,304 bytes. This does not create,
|
|
323
|
+
* delete, transfer ownership of, or change MFA requirements for a community
|
|
324
|
+
*
|
|
325
|
+
* @example
|
|
326
|
+
* ```ts
|
|
327
|
+
* import { GuildDefaultMessageNotifications, type Client } from "@neontechspace/fluxerly"
|
|
328
|
+
*
|
|
329
|
+
* export function guildSettingsExample(client: Client, guildId: string) {
|
|
330
|
+
* return client.guilds.edit(guildId, {
|
|
331
|
+
* defaultMessageNotifications: GuildDefaultMessageNotifications.OnlyMentions,
|
|
332
|
+
* })
|
|
333
|
+
* }
|
|
334
|
+
* export function inspectCustomInvite(client: Client, guildId: string) {
|
|
335
|
+
* return client.guilds.fetchVanityUrl(guildId)
|
|
336
|
+
* }
|
|
337
|
+
* export function setCustomInvite(client: Client, guildId: string, code: string) {
|
|
338
|
+
* return client.guilds.editVanityUrl(guildId, code)
|
|
339
|
+
* }
|
|
340
|
+
* export function removeCustomInvite(client: Client, guildId: string) {
|
|
341
|
+
* return client.guilds.editVanityUrl(guildId, null)
|
|
342
|
+
* }
|
|
343
|
+
* ```
|
|
344
|
+
*
|
|
345
|
+
* @category Guilds and members
|
|
346
|
+
*/
|
|
347
|
+
export interface GuildEdit {
|
|
348
|
+
/** Community name, 1–100 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming.
|
|
349
|
+
* Normalization is validation-only, and the original string is sent unchanged
|
|
350
|
+
*/
|
|
351
|
+
readonly name?: string
|
|
352
|
+
/** Image data URI for the community icon, or null to clear it */
|
|
353
|
+
readonly icon?: string | null
|
|
354
|
+
/** Image data URI for the community banner, or null to clear it */
|
|
355
|
+
readonly banner?: string | null
|
|
356
|
+
/** Image data URI for the invite splash, or null to clear it */
|
|
357
|
+
readonly splash?: string | null
|
|
358
|
+
/** Image data URI for the embedded-invite splash, or null to clear it */
|
|
359
|
+
readonly embedSplash?: string | null
|
|
360
|
+
/** System-message channel ID, or null to disable system messages */
|
|
361
|
+
readonly systemChannelId?: string | null
|
|
362
|
+
/** Bitwise combination of GuildSystemChannelFlags. Zero clears all supported suppression flags */
|
|
363
|
+
readonly systemChannelFlags?: number
|
|
364
|
+
/** AFK voice-channel ID, or null to disable automatic AFK moves */
|
|
365
|
+
readonly afkChannelId?: string | null
|
|
366
|
+
/** Integer AFK timeout in seconds from 60 through 3600 */
|
|
367
|
+
readonly afkTimeoutSeconds?: number
|
|
368
|
+
/** Default notification level for new members */
|
|
369
|
+
readonly defaultMessageNotifications?: GuildDefaultMessageNotification
|
|
370
|
+
/** Verification required before members can participate, from None (0) through High (3).
|
|
371
|
+
* The retired phone-verification level 4 fails locally instead of being mapped to High
|
|
372
|
+
*/
|
|
373
|
+
readonly verificationLevel?: GuildVerificationLevel
|
|
374
|
+
/** Mark or unmark the community as adult content */
|
|
375
|
+
readonly nsfw?: boolean
|
|
376
|
+
/** Whether Fluxer displays a community-wide content warning before entry */
|
|
377
|
+
readonly contentWarningLevel?: GuildContentWarningLevel
|
|
378
|
+
/** Warning text with 0–200 raw UTF-16 code units, or null to restore Fluxer's localized default.
|
|
379
|
+
* No text normalization is applied before validation
|
|
380
|
+
*/
|
|
381
|
+
readonly contentWarningText?: string | null
|
|
382
|
+
/** Explicit-media filtering level */
|
|
383
|
+
readonly explicitContentFilter?: GuildExplicitContentFilter
|
|
384
|
+
/** Invite splash-card alignment */
|
|
385
|
+
readonly splashCardAlignment?: GuildSplashCardAlignment
|
|
386
|
+
/**
|
|
387
|
+
* Complete desired set of bot-toggleable features, replacing every prior toggle in GuildFeatureToggles.
|
|
388
|
+
* Entries are copied by index when the operation starts.
|
|
389
|
+
* Include CloneEmojiEnabled and CloneStickerEnabled to allow cloning from this community. Omitting them disables
|
|
390
|
+
* that permission. Keep them in the list when changing another toggle if cloning should remain enabled.
|
|
391
|
+
* Deprecated CLONE_EMOJI_DISABLED and CLONE_STICKER_DISABLED values are rejected, not inverted or translated.
|
|
392
|
+
* Fluxer preserves its managed, unknown and deprecated observed features. Disabling TextChannelFlexibleNames
|
|
393
|
+
* makes Fluxer sanitize existing channel names, an external side effect that is not rolled back if the response
|
|
394
|
+
* is lost. The SDK conservatively invalidates retained community-channel observations when this list disables that toggle
|
|
395
|
+
*/
|
|
396
|
+
readonly featureToggles?: readonly GuildFeatureToggle[]
|
|
397
|
+
/**
|
|
398
|
+
* ISO 8601 cutoff for members without Read Message History, or null to disable their historical access.
|
|
399
|
+
* The value needs seconds and a Z or ±hh:mm offset, may have any fraction, and is sent unchanged.
|
|
400
|
+
* Other forms and impossible calendar dates are rejected before dispatch.
|
|
401
|
+
* Fluxer rejects timestamps before community creation or in the future
|
|
402
|
+
*/
|
|
403
|
+
readonly messageHistoryCutoff?: string | null
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/** Address one user's membership in one community for member reads and changes.
|
|
407
|
+
* The same account can have different nicknames, roles and moderation state in different communities.
|
|
408
|
+
* This contains IDs only and does not retain a client or fetch the membership
|
|
409
|
+
*
|
|
410
|
+
* @category Guilds and members
|
|
411
|
+
*/
|
|
412
|
+
export interface MemberReference {
|
|
413
|
+
/** Decimal guild ID */
|
|
414
|
+
readonly guildId: string
|
|
415
|
+
/** Decimal user ID */
|
|
416
|
+
readonly userId: string
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Identifies one member and, optionally, one of that member's active voice connections
|
|
421
|
+
*
|
|
422
|
+
* @category Guilds and members
|
|
423
|
+
*/
|
|
424
|
+
export interface VoiceConnectionReference extends MemberReference {
|
|
425
|
+
/** Connection ID from a voice-state observation, 1–32 UTF-16 code units after U+000C and U+202E removal
|
|
426
|
+
* and surrounding-whitespace trimming. The original string is sent unchanged. Omit to target every active
|
|
427
|
+
* connection for this member
|
|
428
|
+
*/
|
|
429
|
+
readonly connectionId?: string
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* The community mute state to set for a member connected to voice
|
|
434
|
+
*
|
|
435
|
+
* @category Guilds and members
|
|
436
|
+
*/
|
|
437
|
+
export interface VoiceMuteInput {
|
|
438
|
+
/** True to community-mute the member, false to remove the community mute */
|
|
439
|
+
readonly muted: boolean
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* The community deafen state to set for a member connected to voice
|
|
444
|
+
*
|
|
445
|
+
* @category Guilds and members
|
|
446
|
+
*/
|
|
447
|
+
export interface VoiceDeafenInput {
|
|
448
|
+
/** True to community-deafen the member, false to remove the community deafen */
|
|
449
|
+
readonly deafened: boolean
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/** A user's membership in one community, including assigned roles, community-profile settings and available moderation state.
|
|
453
|
+
* This frozen snapshot comes from REST or member-add/update events. It does not update in place or calculate
|
|
454
|
+
* permissions. Account identity and community-specific customization are distinct
|
|
455
|
+
*
|
|
456
|
+
* @category Guilds and members
|
|
457
|
+
*/
|
|
458
|
+
export interface GuildMember extends MemberReference {
|
|
459
|
+
/** ISO 8601 timeout expiry, null when cleared, omitted when unavailable. A past timestamp is not an active timeout */
|
|
460
|
+
readonly communicationDisabledUntil?: string | null
|
|
461
|
+
/** Account username */
|
|
462
|
+
readonly username: string
|
|
463
|
+
/** Omitted upstream bot flags mean false */
|
|
464
|
+
readonly isBot: boolean
|
|
465
|
+
/** Roles assigned to this member. The implicit everyone role is not listed and grants are not expanded here */
|
|
466
|
+
readonly roleIds: readonly string[]
|
|
467
|
+
/** ISO 8601 community join timestamp */
|
|
468
|
+
readonly joinedAt: string
|
|
469
|
+
/** Community-specific display name. Null means no nickname, omission means unavailable */
|
|
470
|
+
readonly nickname?: string | null
|
|
471
|
+
/** Community avatar hash, preserving absent versus null */
|
|
472
|
+
readonly avatar?: string | null
|
|
473
|
+
/** Community banner hash, preserving absent versus null */
|
|
474
|
+
readonly banner?: string | null
|
|
475
|
+
/** Community-profile RGB accent color, preserving absent versus null */
|
|
476
|
+
readonly accentColor?: number | null
|
|
477
|
+
/** Community-profile bitfield supplied by Fluxer, preserving absent versus null */
|
|
478
|
+
readonly profileFlags?: number | null
|
|
479
|
+
/** Community reply-mention preference, preserving absent versus null */
|
|
480
|
+
readonly mentionFlags?: MemberMentionPreference | null
|
|
481
|
+
/** Whether Fluxer reports this member as community-muted, omitted when the returned member data excludes voice flags */
|
|
482
|
+
readonly isMuted?: boolean
|
|
483
|
+
/** Whether Fluxer reports this member as community-deafened, omitted when the returned member data excludes voice flags */
|
|
484
|
+
readonly isDeafened?: boolean
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Known Fluxer community-profile bit flags. Other nonnegative 32-bit bits can be observed for forward compatibility
|
|
489
|
+
*
|
|
490
|
+
* @category Guilds and members
|
|
491
|
+
*/
|
|
492
|
+
export const GuildMemberProfileFlags: Readonly<{
|
|
493
|
+
/** Mark the community-profile avatar as explicitly unset */
|
|
494
|
+
AvatarUnset: 1
|
|
495
|
+
/** Mark the community-profile banner as explicitly unset */
|
|
496
|
+
BannerUnset: 2
|
|
497
|
+
}> = Object.freeze({
|
|
498
|
+
AvatarUnset: 1,
|
|
499
|
+
BannerUnset: 2,
|
|
500
|
+
})
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Fluxer's per-community reply-mention preferences
|
|
504
|
+
*
|
|
505
|
+
* @category Guilds and members
|
|
506
|
+
*/
|
|
507
|
+
export const MemberMentionPreferences: Readonly<{
|
|
508
|
+
/** Express no preference about mentions on replies */
|
|
509
|
+
NoPreference: 0
|
|
510
|
+
/** Prefer replies to mention this member */
|
|
511
|
+
PreferMention: 1
|
|
512
|
+
/** Prefer replies not to mention this member */
|
|
513
|
+
PreferNoMention: 2
|
|
514
|
+
}> = Object.freeze({
|
|
515
|
+
NoPreference: 0,
|
|
516
|
+
PreferMention: 1,
|
|
517
|
+
PreferNoMention: 2,
|
|
518
|
+
})
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* One of Fluxer's currently defined per-community reply-mention preferences
|
|
522
|
+
*
|
|
523
|
+
* @category Guilds and members
|
|
524
|
+
*/
|
|
525
|
+
export type MemberMentionPreference = (typeof MemberMentionPreferences)[keyof typeof MemberMentionPreferences]
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Change this bot's nickname and community-specific profile in one community
|
|
529
|
+
*
|
|
530
|
+
* Omitted properties are not sent and leave the provider value unchanged. Null clears the corresponding property.
|
|
531
|
+
* Fluxer can silently ignore avatar, banner, bio and accentColor when its per-community-profile customization feature is
|
|
532
|
+
* unavailable, so an HTTP success does not establish those changes. Its response does not expose bio or pronouns,
|
|
533
|
+
* leaving those fields write-only through this SDK. Fluxer performs its own image, content, verification and
|
|
534
|
+
* permission checks after this SDK validates the input shape
|
|
535
|
+
*
|
|
536
|
+
* @category Guilds and members
|
|
537
|
+
*/
|
|
538
|
+
export interface MemberProfileEdit {
|
|
539
|
+
/** Community nickname, or null to clear. A raw empty string fails. A nonempty string containing only trim whitespace
|
|
540
|
+
* is accepted as Fluxer's clear value. Otherwise, validation removes U+000C and U+202E, trims surrounding
|
|
541
|
+
* whitespace, and requires 1–32 UTF-16 code units. The original string is sent unchanged
|
|
542
|
+
*/
|
|
543
|
+
readonly nickname?: string | null
|
|
544
|
+
/** Image data URI, or null to clear. Fluxer validates the decoded image and may silently ignore it */
|
|
545
|
+
readonly avatar?: string | null
|
|
546
|
+
/** Image data URI, or null to clear. Fluxer validates the decoded image and may silently ignore it */
|
|
547
|
+
readonly banner?: string | null
|
|
548
|
+
/** Community-profile biography, 1–320 normalized UTF-16 code units, or null to clear. The response does not return it.
|
|
549
|
+
* Validation removes U+000C and U+202E and trims surrounding whitespace. The original string is sent unchanged
|
|
550
|
+
*/
|
|
551
|
+
readonly bio?: string | null
|
|
552
|
+
/** Community-profile pronouns, 1–40 normalized UTF-16 code units, or null to clear. The response does not return them.
|
|
553
|
+
* Validation removes U+000C and U+202E and trims surrounding whitespace. The original string is sent unchanged
|
|
554
|
+
*/
|
|
555
|
+
readonly pronouns?: string | null
|
|
556
|
+
/** RGB integer from 0 through 16,777,215, or null to clear. Fluxer may silently ignore it */
|
|
557
|
+
readonly accentColor?: number | null
|
|
558
|
+
/** Nonnegative 32-bit profile bitfield, or null to clear. Known values are GuildMemberProfileFlags */
|
|
559
|
+
readonly profileFlags?: number | null
|
|
560
|
+
/** Per-community reply-mention preference, or null to clear the override */
|
|
561
|
+
readonly mentionFlags?: MemberMentionPreference | null
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/** Select one REST page of community members, for example to inspect a bounded set or continue after a previous user ID.
|
|
565
|
+
* Use members.iterate for bounded multi-page traversal. A page alone is not a complete guild snapshot
|
|
566
|
+
*
|
|
567
|
+
* @category Guilds and members
|
|
568
|
+
*/
|
|
569
|
+
export interface MemberQuery {
|
|
570
|
+
/** Maximum member count, integer 1–1000, default 100 */
|
|
571
|
+
readonly limit?: number
|
|
572
|
+
/** Return user IDs greater than this decimal ID */
|
|
573
|
+
readonly after?: string
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/** Details of one community this bot belongs to, freshly returned by the REST membership list.
|
|
577
|
+
* This is not a cached Guild and does not update a cached Guild. The permissions and approximate counts remain absent
|
|
578
|
+
* when Fluxer omits them, including provider lookup failures. Absence is not zero or a complete-membership claim
|
|
579
|
+
*
|
|
580
|
+
* @category Guilds and members
|
|
581
|
+
*/
|
|
582
|
+
export interface GuildListSummary extends Guild {
|
|
583
|
+
/** Raw unsigned permission bits that Fluxer made available for this membership. Omission is unavailable, not zero */
|
|
584
|
+
readonly permissions?: bigint
|
|
585
|
+
/** Provider-supplied approximate member count when withCounts was requested and Fluxer could obtain it */
|
|
586
|
+
readonly approximateMemberCount?: number
|
|
587
|
+
/** Provider-supplied approximate presence count when withCounts was requested and Fluxer could obtain it */
|
|
588
|
+
readonly approximatePresenceCount?: number
|
|
589
|
+
/** Whether Fluxer reports that threads, forum channels and media channels are available to the caller in this
|
|
590
|
+
* community. Fluxer marks only available communities, so false also covers a list that never marks any, such as
|
|
591
|
+
* one read with an OAuth access token
|
|
592
|
+
*/
|
|
593
|
+
readonly threadsActive: boolean
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* One remote page of the authenticated bot's community memberships
|
|
598
|
+
*
|
|
599
|
+
* @category Guilds and members
|
|
600
|
+
*/
|
|
601
|
+
export interface GuildListQuery {
|
|
602
|
+
/** Page size, integer 1–200, default 200 */
|
|
603
|
+
readonly limit?: number
|
|
604
|
+
/** Existing membership cursor before which to list. Cannot be combined with after.
|
|
605
|
+
* If the cursor membership no longer exists, Fluxer can restart the page from the beginning
|
|
606
|
+
*/
|
|
607
|
+
readonly before?: string
|
|
608
|
+
/** Existing membership cursor after which to list. Cannot be combined with before.
|
|
609
|
+
* If the cursor membership no longer exists, Fluxer can restart the page from the beginning
|
|
610
|
+
*/
|
|
611
|
+
readonly after?: string
|
|
612
|
+
/** Request provider-supplied approximate member and presence counts. Defaults to false.
|
|
613
|
+
* Fluxer can omit requested counts and permissions, so omitted fields remain unavailable rather than zero
|
|
614
|
+
*/
|
|
615
|
+
readonly withCounts?: boolean
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Settings shared by remote guild, member and role operations
|
|
620
|
+
*
|
|
621
|
+
* @category Options
|
|
622
|
+
*/
|
|
623
|
+
export interface GuildOperationOptions {
|
|
624
|
+
/** 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.
|
|
625
|
+
* Owned cleanup is awaited afterward, so completion can take longer
|
|
626
|
+
*/
|
|
627
|
+
readonly timeoutMs?: number
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Default API calls start immediately. Abort cancels only this call and awaits owned cleanup
|
|
632
|
+
*
|
|
633
|
+
* @category Options
|
|
634
|
+
*/
|
|
635
|
+
export interface DefaultGuildOperationOptions extends GuildOperationOptions, OperationOptions {}
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Settings for members.fetchCanManage: Whose rank to check, and the shared deadline of its reads
|
|
639
|
+
*
|
|
640
|
+
* @category Options
|
|
641
|
+
*/
|
|
642
|
+
export interface CanManageOptions extends GuildOperationOptions {
|
|
643
|
+
/** User ID of the member whose rank is checked against the target, such as the moderator who ran a command.
|
|
644
|
+
* Omit to check the bot itself. The actor must be a member of the target's community, or the read fails with notFound
|
|
645
|
+
*/
|
|
646
|
+
readonly actorUserId?: string
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Default API settings for members.fetchCanManage. Abort cancels only this call and awaits owned cleanup
|
|
651
|
+
*
|
|
652
|
+
* @category Options
|
|
653
|
+
*/
|
|
654
|
+
export interface DefaultCanManageOptions extends CanManageOptions, OperationOptions {}
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Settings for a guild mutation whose provider handler consumes an audit-log reason
|
|
658
|
+
*
|
|
659
|
+
* @category Options
|
|
660
|
+
*/
|
|
661
|
+
export interface GuildAuditOperationOptions extends GuildOperationOptions {
|
|
662
|
+
/** Optional audit-log reason, 1–512 printable ASCII characters after trimming.
|
|
663
|
+
* Sent as a raw header because Fluxer does not decode URL escapes. Non-ASCII and control characters fail before dispatch.
|
|
664
|
+
* Omission sends no header. Never included in SDK errors or diagnostics.
|
|
665
|
+
* Header delivery does not guarantee provider retention. Fluxer's member-role add/remove path currently does not persist it in an audit entry
|
|
666
|
+
*/
|
|
667
|
+
readonly auditReason?: string
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* Default API audited guild mutations start immediately. Abort cannot roll back a dispatched mutation
|
|
672
|
+
*
|
|
673
|
+
* @category Options
|
|
674
|
+
*/
|
|
675
|
+
export interface DefaultGuildAuditOperationOptions extends GuildAuditOperationOptions, OperationOptions {}
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Moderation-only request settings, with the same deadline, audit and cleanup ownership as guild mutations
|
|
679
|
+
*
|
|
680
|
+
* @category Options
|
|
681
|
+
*/
|
|
682
|
+
export interface ModerationOptions extends GuildAuditOperationOptions {}
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Default API moderation starts immediately. Aborting waits for owned cleanup but cannot roll back a dispatched action
|
|
686
|
+
*
|
|
687
|
+
* @category Options
|
|
688
|
+
*/
|
|
689
|
+
export interface DefaultModerationOptions extends ModerationOptions, OperationOptions {}
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Timeout-only request settings. A timeoutReason is provider audit metadata, not a stored GuildMember field
|
|
693
|
+
*
|
|
694
|
+
* @category Options
|
|
695
|
+
*/
|
|
696
|
+
export interface TimeoutOptions extends ModerationOptions {
|
|
697
|
+
/** Optional timeout audit metadata. Null or omission sends no meaningful reason. A string must contain 1–512
|
|
698
|
+
* UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming. The original string is sent unchanged
|
|
699
|
+
*/
|
|
700
|
+
readonly timeoutReason?: string | null
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* Default API timeout operations begin immediately. Aborting waits for owned cleanup but cannot roll back a dispatched timeout change
|
|
705
|
+
*
|
|
706
|
+
* @category Options
|
|
707
|
+
*/
|
|
708
|
+
export interface DefaultTimeoutOptions extends TimeoutOptions, OperationOptions {}
|
|
709
|
+
|
|
710
|
+
/** Ban an account from a community permanently or for a provider-managed duration, optionally deleting recent messages.
|
|
711
|
+
* The server owns expiry and any requested deletion job. Removing or expiring a ban does not restore membership
|
|
712
|
+
* or deleted messages
|
|
713
|
+
*
|
|
714
|
+
* @category Guilds and members
|
|
715
|
+
*/
|
|
716
|
+
export interface BanInput {
|
|
717
|
+
/** Stored ban reason, up to 512 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace
|
|
718
|
+
* trimming. The original string is sent unchanged. Omit to use auditReason when supplied, otherwise no reason
|
|
719
|
+
*/
|
|
720
|
+
readonly reason?: string
|
|
721
|
+
/** Ban length in milliseconds, in whole seconds: 0 or omitted for a permanent ban, or 60,000–63,072,000,000 (two years)
|
|
722
|
+
* for a provider-managed temporary ban. A value with a millisecond part is rejected as input naming input.durationMs.
|
|
723
|
+
* A `duration` command argument with `wholeSeconds: true`, `min: 60_000` and `max: 63_072_000_000` can be passed unchanged.
|
|
724
|
+
* Expiry does not rejoin the user. No SDK timer or automatic unban request is created.
|
|
725
|
+
* Provider database TTL expiry need not emit guildBanRemove. Reconcile with members.fetchBans rather than waiting for that event
|
|
726
|
+
*/
|
|
727
|
+
readonly durationMs?: number
|
|
728
|
+
/** How far back to delete the user's recent messages, in milliseconds and whole seconds, 0–604,800,000 (seven days), default 0.
|
|
729
|
+
* Destructive asynchronous server job, separate from ban completion and not undone by unbanning
|
|
730
|
+
*/
|
|
731
|
+
readonly deleteMessagesMs?: number
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/** Recorded ban details returned by members.fetchBans, including available reason, moderator and expiry.
|
|
735
|
+
* This frozen observation does not establish that the ban is still active at a later time
|
|
736
|
+
*
|
|
737
|
+
* @category Guilds and members
|
|
738
|
+
*/
|
|
739
|
+
export interface GuildBan extends MemberReference {
|
|
740
|
+
/** Account username returned with this ban */
|
|
741
|
+
readonly username: string
|
|
742
|
+
/** Omitted upstream bot flag means false */
|
|
743
|
+
readonly isBot: boolean
|
|
744
|
+
/** Stored reason, preserving absent versus null */
|
|
745
|
+
readonly reason?: string | null
|
|
746
|
+
/** Decimal user ID of the moderator */
|
|
747
|
+
readonly moderatorId: string
|
|
748
|
+
/** ISO 8601 time the ban was recorded */
|
|
749
|
+
readonly bannedAt: string
|
|
750
|
+
/** ISO 8601 expiry, null for permanent, omitted when unavailable. Database expiry need not emit a removal event */
|
|
751
|
+
readonly expiresAt?: string | null
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Address one role inside its owning community for role reads and changes, without fetching it or retaining a client
|
|
756
|
+
*
|
|
757
|
+
* @category Roles and permissions
|
|
758
|
+
*/
|
|
759
|
+
export interface RoleReference {
|
|
760
|
+
/** Decimal guild ID */
|
|
761
|
+
readonly guildId: string
|
|
762
|
+
/** Decimal role ID */
|
|
763
|
+
readonly id: string
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
/** A community role that groups members and supplies permission grants, hierarchy rank and display settings.
|
|
767
|
+
* Every community also has an implicit everyone role whose ID equals the guild ID.
|
|
768
|
+
* This frozen snapshot is not a member's effective permissions and does not update as roles change
|
|
769
|
+
*
|
|
770
|
+
* @category Roles and permissions
|
|
771
|
+
*/
|
|
772
|
+
export interface GuildRole extends RoleReference {
|
|
773
|
+
/** Role display name */
|
|
774
|
+
readonly name: string
|
|
775
|
+
/** RGB integer, zero means no explicit color */
|
|
776
|
+
readonly color: number
|
|
777
|
+
/** Community hierarchy position. Positions can tie, including newly created roles */
|
|
778
|
+
readonly position: number
|
|
779
|
+
/** Raw grants from Fluxer, including unknown future bits, as an unsigned 64-bit bigint */
|
|
780
|
+
readonly permissions: bigint
|
|
781
|
+
/** Whether members with this role are displayed as a separate group in the member list */
|
|
782
|
+
readonly hoist: boolean
|
|
783
|
+
/** Whether anyone can mention the role */
|
|
784
|
+
readonly mentionable: boolean
|
|
785
|
+
/** Separate member-list ordering, preserving absent versus null */
|
|
786
|
+
readonly hoistPosition?: number | null
|
|
787
|
+
/** Role emoji, preserving absent versus null */
|
|
788
|
+
readonly unicodeEmoji?: string | null
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/** Create a named community role with an optional color and permission grants.
|
|
792
|
+
* New roles have no grants by default in this SDK. Use roles.edit afterward for hoist and mentionable settings.
|
|
793
|
+
* Role creation does not assign the role to a member, and Fluxer chooses its initial hierarchy position
|
|
794
|
+
*
|
|
795
|
+
* @category Roles and permissions
|
|
796
|
+
*/
|
|
797
|
+
export interface RoleCreate {
|
|
798
|
+
/** Role name, 1–100 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming.
|
|
799
|
+
* The original string is sent unchanged
|
|
800
|
+
*/
|
|
801
|
+
readonly name: string
|
|
802
|
+
/** RGB integer 0–16,777,215, default 0 */
|
|
803
|
+
readonly color?: number
|
|
804
|
+
/** Bigint from 0n through 9_223_372_036_854_775_807n, default 0n: Unlike raw Fluxer, never inherit everyone's grants implicitly. Explicit ViewChannelMembers replacements are advertised to Fluxer by the SDK */
|
|
805
|
+
readonly permissions?: bigint
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/** Change the name, grants or display settings of an existing role.
|
|
809
|
+
* Omitted fields stay unchanged and at least one defined field is required. The permissions field replaces grants instead of
|
|
810
|
+
* adding to them. The implicit everyone role accepts only color and permissions. Use roles.reorder for hierarchy rank
|
|
811
|
+
*
|
|
812
|
+
* @category Roles and permissions
|
|
813
|
+
*/
|
|
814
|
+
export interface RoleEdit {
|
|
815
|
+
/** Role name, 1–100 UTF-16 code units after U+000C and U+202E removal and surrounding-whitespace trimming.
|
|
816
|
+
* The original string is sent unchanged
|
|
817
|
+
*/
|
|
818
|
+
readonly name?: string
|
|
819
|
+
/** RGB integer 0–16,777,215 */
|
|
820
|
+
readonly color?: number
|
|
821
|
+
/** Replace raw grants with a bigint from 0n through 9_223_372_036_854_775_807n, not an incremental grant. Explicit ViewChannelMembers replacements are advertised to Fluxer by the SDK */
|
|
822
|
+
readonly permissions?: bigint
|
|
823
|
+
/** Display members separately */
|
|
824
|
+
readonly hoist?: boolean
|
|
825
|
+
/** Signed 32-bit member-list position. Null clears it */
|
|
826
|
+
readonly hoistPosition?: number | null
|
|
827
|
+
/** Allow anyone to mention this role */
|
|
828
|
+
readonly mentionable?: boolean
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* One bulk role update, not individual update events or a complete role list. Unchanged roles may be omitted
|
|
833
|
+
*
|
|
834
|
+
* @category Roles and permissions
|
|
835
|
+
*/
|
|
836
|
+
export interface GuildRoleUpdateBulk {
|
|
837
|
+
/** Decimal guild ID */
|
|
838
|
+
readonly guildId: string
|
|
839
|
+
/** Frozen role observations delivered together */
|
|
840
|
+
readonly roles: readonly GuildRole[]
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
/** Named permission grants for role inputs, channel overwrites and raw permission checks
|
|
844
|
+
*
|
|
845
|
+
* Combine bigint values with |, such as Permissions.ViewChannel | Permissions.SendMessages.
|
|
846
|
+
* Test a grant with (bits & Permissions.SendMessages) === Permissions.SendMessages.
|
|
847
|
+
* Convert bigint to a decimal string before JSON serialization, which cannot serialize bigint directly.
|
|
848
|
+
* These are raw grants, not effective-permission calculations: Hierarchy, channel overwrites and server rules still apply.
|
|
849
|
+
* Unknown unsigned 64-bit bits can be passed explicitly. Fluxer may mask or reject grants
|
|
850
|
+
*
|
|
851
|
+
* @category Roles and permissions
|
|
852
|
+
*/
|
|
853
|
+
export const Permissions: Readonly<{
|
|
854
|
+
/** Create invitation links to a community or channel */
|
|
855
|
+
CreateInstantInvite: bigint
|
|
856
|
+
/** Remove members from a community without banning them from joining again */
|
|
857
|
+
KickMembers: bigint
|
|
858
|
+
/** Ban accounts from a community and optionally remove their recent messages */
|
|
859
|
+
BanMembers: bigint
|
|
860
|
+
/** Grant all permission bits and bypass channel overwrites. Hierarchy and other server checks still apply */
|
|
861
|
+
Administrator: bigint
|
|
862
|
+
/** Create, edit or delete community channels and categories */
|
|
863
|
+
ManageChannels: bigint
|
|
864
|
+
/** Change community-wide settings, such as its name and icon */
|
|
865
|
+
ManageGuild: bigint
|
|
866
|
+
/** Start a new emoji reaction on a message, rather than only join an existing reaction */
|
|
867
|
+
AddReactions: bigint
|
|
868
|
+
/** Read the community's recorded administrative and moderation activity */
|
|
869
|
+
ViewAuditLog: bigint
|
|
870
|
+
/** Use the priority push-to-talk key binding to make speech stand out over other speakers */
|
|
871
|
+
PrioritySpeaker: bigint
|
|
872
|
+
/** Share a camera or screen in a voice channel */
|
|
873
|
+
Stream: bigint
|
|
874
|
+
/** See a channel, subject to the channel's applicable overwrites */
|
|
875
|
+
ViewChannel: bigint
|
|
876
|
+
/** Post messages in a channel */
|
|
877
|
+
SendMessages: bigint
|
|
878
|
+
/** Send text-to-speech messages that enabled recipients can hear read aloud */
|
|
879
|
+
SendTtsMessages: bigint
|
|
880
|
+
/** Delete other members' messages. Pinning and unpinning use PinMessages separately */
|
|
881
|
+
ManageMessages: bigint
|
|
882
|
+
/** Show automatic embedded previews for links in messages */
|
|
883
|
+
EmbedLinks: bigint
|
|
884
|
+
/** Upload files and media with messages */
|
|
885
|
+
AttachFiles: bigint
|
|
886
|
+
/** Read earlier messages in a channel, subject to community history-cutoff rules */
|
|
887
|
+
ReadMessageHistory: bigint
|
|
888
|
+
/** Use @everyone and @here, and mention roles even when they are not marked mentionable */
|
|
889
|
+
MentionEveryone: bigint
|
|
890
|
+
/** Use custom emoji owned by other communities */
|
|
891
|
+
UseExternalEmojis: bigint
|
|
892
|
+
/** Join a voice channel and listen to participants */
|
|
893
|
+
Connect: bigint
|
|
894
|
+
/** Transmit speech in a voice channel */
|
|
895
|
+
Speak: bigint
|
|
896
|
+
/** Community-mute other voice participants, preventing them from speaking to everyone */
|
|
897
|
+
MuteMembers: bigint
|
|
898
|
+
/** Community-deafen other voice participants, preventing them from hearing or speaking */
|
|
899
|
+
DeafenMembers: bigint
|
|
900
|
+
/** Move members between voice channels they can access, or disconnect them from voice */
|
|
901
|
+
MoveMembers: bigint
|
|
902
|
+
/** Use voice activity detection to transmit speech without holding a push-to-talk key */
|
|
903
|
+
UseVad: bigint
|
|
904
|
+
/** Change the member's own nickname in the community */
|
|
905
|
+
ChangeNickname: bigint
|
|
906
|
+
/** Change other members' community nicknames */
|
|
907
|
+
ManageNicknames: bigint
|
|
908
|
+
/** Manage roles below the member's highest role and edit channel permission overwrites */
|
|
909
|
+
ManageRoles: bigint
|
|
910
|
+
/** Create, edit or delete webhooks in the applicable community or channel */
|
|
911
|
+
ManageWebhooks: bigint
|
|
912
|
+
/** Edit or delete custom emoji and stickers created by other members */
|
|
913
|
+
ManageExpressions: bigint
|
|
914
|
+
/** Archive, lock, rename and delete threads, see every private thread and act in a locked thread.
|
|
915
|
+
* Guild.mfaLevel describes when an elevated MFA level makes Fluxer reject its use
|
|
916
|
+
*/
|
|
917
|
+
ManageThreads: bigint
|
|
918
|
+
/** Start a public thread or an announcement thread */
|
|
919
|
+
CreatePublicThreads: bigint
|
|
920
|
+
/** Start a private thread in a text channel */
|
|
921
|
+
CreatePrivateThreads: bigint
|
|
922
|
+
/** Use custom stickers owned by other communities */
|
|
923
|
+
UseExternalStickers: bigint
|
|
924
|
+
/** Send messages in threads and add other members to them. In a thread, Fluxer uses this permission in place of
|
|
925
|
+
* SendMessages
|
|
926
|
+
*/
|
|
927
|
+
SendMessagesInThreads: bigint
|
|
928
|
+
/** Apply member timeouts that temporarily restrict messaging, reactions and voice participation */
|
|
929
|
+
ModerateMembers: bigint
|
|
930
|
+
/** Upload custom emoji and stickers and manage the member's own creations */
|
|
931
|
+
CreateExpressions: bigint
|
|
932
|
+
/** Pin or unpin messages, including messages written by other members */
|
|
933
|
+
PinMessages: bigint
|
|
934
|
+
/** Send messages without waiting for the channel's per-user slowmode delay */
|
|
935
|
+
BypassSlowmode: bigint
|
|
936
|
+
/** Change the voice-server region used by a voice channel */
|
|
937
|
+
UpdateRtcRegion: bigint
|
|
938
|
+
/** See the member list for the applicable channel */
|
|
939
|
+
ViewChannelMembers: bigint
|
|
940
|
+
}> = Object.freeze({
|
|
941
|
+
CreateInstantInvite: 1n << 0n,
|
|
942
|
+
KickMembers: 1n << 1n,
|
|
943
|
+
BanMembers: 1n << 2n,
|
|
944
|
+
Administrator: 1n << 3n,
|
|
945
|
+
ManageChannels: 1n << 4n,
|
|
946
|
+
ManageGuild: 1n << 5n,
|
|
947
|
+
AddReactions: 1n << 6n,
|
|
948
|
+
ViewAuditLog: 1n << 7n,
|
|
949
|
+
PrioritySpeaker: 1n << 8n,
|
|
950
|
+
Stream: 1n << 9n,
|
|
951
|
+
ViewChannel: 1n << 10n,
|
|
952
|
+
SendMessages: 1n << 11n,
|
|
953
|
+
SendTtsMessages: 1n << 12n,
|
|
954
|
+
ManageMessages: 1n << 13n,
|
|
955
|
+
EmbedLinks: 1n << 14n,
|
|
956
|
+
AttachFiles: 1n << 15n,
|
|
957
|
+
ReadMessageHistory: 1n << 16n,
|
|
958
|
+
MentionEveryone: 1n << 17n,
|
|
959
|
+
UseExternalEmojis: 1n << 18n,
|
|
960
|
+
Connect: 1n << 20n,
|
|
961
|
+
Speak: 1n << 21n,
|
|
962
|
+
MuteMembers: 1n << 22n,
|
|
963
|
+
DeafenMembers: 1n << 23n,
|
|
964
|
+
MoveMembers: 1n << 24n,
|
|
965
|
+
UseVad: 1n << 25n,
|
|
966
|
+
ChangeNickname: 1n << 26n,
|
|
967
|
+
ManageNicknames: 1n << 27n,
|
|
968
|
+
ManageRoles: 1n << 28n,
|
|
969
|
+
ManageWebhooks: 1n << 29n,
|
|
970
|
+
ManageExpressions: 1n << 30n,
|
|
971
|
+
ManageThreads: 1n << 34n,
|
|
972
|
+
CreatePublicThreads: 1n << 35n,
|
|
973
|
+
CreatePrivateThreads: 1n << 36n,
|
|
974
|
+
UseExternalStickers: 1n << 37n,
|
|
975
|
+
SendMessagesInThreads: 1n << 38n,
|
|
976
|
+
ModerateMembers: 1n << 40n,
|
|
977
|
+
CreateExpressions: 1n << 43n,
|
|
978
|
+
PinMessages: 1n << 51n,
|
|
979
|
+
BypassSlowmode: 1n << 52n,
|
|
980
|
+
UpdateRtcRegion: 1n << 53n,
|
|
981
|
+
ViewChannelMembers: 1n << 54n,
|
|
982
|
+
})
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* One requested hierarchy position, not an absolute final-position guarantee
|
|
986
|
+
*
|
|
987
|
+
* @category Roles and permissions
|
|
988
|
+
*/
|
|
989
|
+
export interface RolePosition {
|
|
990
|
+
/** Decimal role ID, excluding the implicit everyone role */
|
|
991
|
+
readonly id: string
|
|
992
|
+
/** Nonnegative safe integer ordering value. Fluxer normalizes positions and applies manageable-role constraints */
|
|
993
|
+
readonly position: number
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* One display-order assignment, independent of permission hierarchy and the role's hoist flag
|
|
998
|
+
*
|
|
999
|
+
* @category Roles and permissions
|
|
1000
|
+
*/
|
|
1001
|
+
export interface RoleHoistPosition {
|
|
1002
|
+
/** Decimal role ID, excluding everyone */
|
|
1003
|
+
readonly id: string
|
|
1004
|
+
/** Signed 32-bit display ordering value, not the permission-hierarchy position */
|
|
1005
|
+
readonly hoistPosition: number
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* The guild or related-resource action named in an expected failure or SdkDefect
|
|
1010
|
+
*
|
|
1011
|
+
* @category Errors
|
|
1012
|
+
*/
|
|
1013
|
+
export type GuildOperation =
|
|
1014
|
+
| "permissions.calculate"
|
|
1015
|
+
| "permissions.fetch"
|
|
1016
|
+
| `hierarchy.${"compare" | "isAbove" | "canManage"}`
|
|
1017
|
+
| "members.search"
|
|
1018
|
+
| `discovery.${"search" | "fetchStatus" | "fetchCategories" | "apply" | "edit" | "withdraw"}`
|
|
1019
|
+
| `invites.${"fetch" | "create" | "fetchForChannel" | "fetchForGuild" | "delete"}`
|
|
1020
|
+
| `${"emojis" | "stickers"}.${"get" | "fetchAll" | "fetchMetadata" | "fetchSource" | "create" | "createMany" | "clone" | "edit" | "delete"}`
|
|
1021
|
+
| "guilds.get"
|
|
1022
|
+
| "guilds.edit"
|
|
1023
|
+
| "guilds.fetchVanityUrl"
|
|
1024
|
+
| "guilds.editVanityUrl"
|
|
1025
|
+
| "auditLogs.fetchPage"
|
|
1026
|
+
| "members.get"
|
|
1027
|
+
| "roles.get"
|
|
1028
|
+
| "guilds.fetch"
|
|
1029
|
+
| "guilds.fetchPage"
|
|
1030
|
+
| "guilds.leave"
|
|
1031
|
+
| "guilds.deleteOwnMessages"
|
|
1032
|
+
| "members.ban"
|
|
1033
|
+
| "members.unban"
|
|
1034
|
+
| "members.fetchBans"
|
|
1035
|
+
| "members.timeout"
|
|
1036
|
+
| "members.clearTimeout"
|
|
1037
|
+
| "members.kick"
|
|
1038
|
+
| "members.fetch"
|
|
1039
|
+
| "members.fetchSelf"
|
|
1040
|
+
| "members.fetchCanManage"
|
|
1041
|
+
| "members.fetchPage"
|
|
1042
|
+
| "members.editSelf"
|
|
1043
|
+
| "members.setNickname"
|
|
1044
|
+
| "members.move"
|
|
1045
|
+
| "members.disconnect"
|
|
1046
|
+
| "members.setMute"
|
|
1047
|
+
| "members.setDeaf"
|
|
1048
|
+
| "members.setRoles"
|
|
1049
|
+
| "members.addRole"
|
|
1050
|
+
| "members.removeRole"
|
|
1051
|
+
| "roles.fetchAll"
|
|
1052
|
+
| "roles.create"
|
|
1053
|
+
| "roles.edit"
|
|
1054
|
+
| "roles.delete"
|
|
1055
|
+
| "roles.reorder"
|
|
1056
|
+
| "roles.setHoistPositions"
|
|
1057
|
+
| "roles.resetHoistPositions"
|
|
1058
|
+
|
|
1059
|
+
/** Expected failure from guild, member, role and related resource operations.
|
|
1060
|
+
* Before retrying, check `operation` for the failed step, `reason` for the failure type and `outcome` for whether the request may have reached Fluxer.
|
|
1061
|
+
* Safe metadata excludes tokens, private input values and upstream response bodies. Default API methods return this
|
|
1062
|
+
* error in an Err, while Effect methods fail in the typed error channel. Local misuse is thrown instead: The
|
|
1063
|
+
* hierarchy helpers, permissions.calculate and cache lookups throw it with reason input for malformed input.
|
|
1064
|
+
* Cancellation and client closure use separate error types. An HTTP response does not establish that a corresponding
|
|
1065
|
+
* gateway event was delivered.
|
|
1066
|
+
* A missing-permission rejection lists the permissions that the operation needs in details.requiredPermissions when
|
|
1067
|
+
* the SDK knows them, as ApiErrorDetail describes
|
|
1068
|
+
*
|
|
1069
|
+
* @category Errors
|
|
1070
|
+
*/
|
|
1071
|
+
export class GuildOperationError extends FluxerlyError {
|
|
1072
|
+
/** Stable expected-failure discriminator */
|
|
1073
|
+
readonly _tag = "GuildOperationError"
|
|
1074
|
+
/** Requested operation */
|
|
1075
|
+
readonly operation: GuildOperation
|
|
1076
|
+
/** Failure category, described by {@link OperationReason} */
|
|
1077
|
+
readonly reason: OperationReason
|
|
1078
|
+
/** Whether the request may have reached Fluxer, described by {@link OperationOutcome} */
|
|
1079
|
+
readonly outcome: OperationOutcome
|
|
1080
|
+
/** HTTP status when available, otherwise null */
|
|
1081
|
+
readonly status: number | null
|
|
1082
|
+
/** Usable server-required retry wait in milliseconds, otherwise null */
|
|
1083
|
+
readonly retryAfterMs: number | null
|
|
1084
|
+
/** Safe classification of why Fluxer rejected the request, or null when the response could not be classified */
|
|
1085
|
+
readonly apiError: ApiErrorDetail | null
|
|
1086
|
+
/** Safe explanation of the locally invalid property, or null when no input problem could be identified */
|
|
1087
|
+
readonly inputValidation: InputValidationDetail | null
|
|
1088
|
+
/** Create the failure from its operation, reason and outcome, with optional status, retry wait, API detail, input detail and cause */
|
|
1089
|
+
constructor(options: OperationErrorOptions<GuildOperation>) {
|
|
1090
|
+
const fields = operationErrorFields(options)
|
|
1091
|
+
super(operationErrorText("Guild", fields), operationErrorSettings("guild", fields, options.cause))
|
|
1092
|
+
this.operation = fields.operation
|
|
1093
|
+
this.reason = fields.reason
|
|
1094
|
+
this.outcome = fields.outcome
|
|
1095
|
+
this.status = fields.status
|
|
1096
|
+
this.retryAfterMs = fields.retryAfterMs
|
|
1097
|
+
this.apiError = fields.apiError
|
|
1098
|
+
this.inputValidation = freezeInputValidationDetail(fields.inputValidation)
|
|
1099
|
+
this.name = this._tag
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* Native interruption is outside this union. Default API methods additionally return CancelledError
|
|
1105
|
+
*
|
|
1106
|
+
* @category Errors
|
|
1107
|
+
*/
|
|
1108
|
+
export type GuildOperationFailure = GuildOperationError | ClientClosedError
|