dfx 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Cache/driver.js +3 -0
- package/dist/Cache/driver.js.map +1 -0
- package/dist/Cache/memory.js +48 -0
- package/dist/Cache/memory.js.map +1 -0
- package/dist/Cache/memoryTTL.js +113 -0
- package/dist/Cache/memoryTTL.js.map +1 -0
- package/dist/Cache/prelude.js +130 -0
- package/dist/Cache/prelude.js.map +1 -0
- package/dist/Cache.js +77 -0
- package/dist/Cache.js.map +1 -0
- package/dist/DiscordConfig.js +29 -0
- package/dist/DiscordConfig.js.map +1 -0
- package/dist/DiscordGateway/DiscordWS.js +74 -0
- package/dist/DiscordGateway/DiscordWS.js.map +1 -0
- package/dist/DiscordGateway/Messaging.js +34 -0
- package/dist/DiscordGateway/Messaging.js.map +1 -0
- package/dist/DiscordGateway/Shard/StateStore.js +41 -0
- package/dist/DiscordGateway/Shard/StateStore.js.map +1 -0
- package/dist/DiscordGateway/Shard/heartbeats.js +25 -0
- package/dist/DiscordGateway/Shard/heartbeats.js.map +1 -0
- package/dist/DiscordGateway/Shard/identify.js +26 -0
- package/dist/DiscordGateway/Shard/identify.js.map +1 -0
- package/dist/DiscordGateway/Shard/sendEvents.js +26 -0
- package/dist/DiscordGateway/Shard/sendEvents.js.map +1 -0
- package/dist/DiscordGateway/Shard/utils.js +3 -0
- package/dist/DiscordGateway/Shard/utils.js.map +1 -0
- package/dist/DiscordGateway/Shard.js +134 -0
- package/dist/DiscordGateway/Shard.js.map +1 -0
- package/dist/DiscordGateway/ShardStore.js +23 -0
- package/dist/DiscordGateway/ShardStore.js.map +1 -0
- package/dist/DiscordGateway/Sharder.js +57 -0
- package/dist/DiscordGateway/Sharder.js.map +1 -0
- package/dist/DiscordGateway.js +21 -0
- package/dist/DiscordGateway.js.map +1 -0
- package/dist/DiscordREST/Generated.js +2302 -0
- package/dist/DiscordREST/Generated.js.map +1 -0
- package/dist/DiscordREST/utils.js +23 -0
- package/dist/DiscordREST/utils.js.map +1 -0
- package/dist/DiscordREST.js +123 -0
- package/dist/DiscordREST.js.map +1 -0
- package/dist/Helpers/flags.js +45 -0
- package/dist/Helpers/flags.js.map +1 -0
- package/dist/Helpers/intents.js +29 -0
- package/dist/Helpers/intents.js.map +1 -0
- package/dist/Helpers/interactions.js +114 -0
- package/dist/Helpers/interactions.js.map +1 -0
- package/dist/Helpers/members.js +10 -0
- package/dist/Helpers/members.js.map +1 -0
- package/dist/Helpers/permissions.js +84 -0
- package/dist/Helpers/permissions.js.map +1 -0
- package/dist/Helpers/ui.js +135 -0
- package/dist/Helpers/ui.js.map +1 -0
- package/dist/Interactions/builder.js +63 -0
- package/dist/Interactions/builder.js.map +1 -0
- package/dist/Interactions/commandHelper.js +47 -0
- package/dist/Interactions/commandHelper.js.map +1 -0
- package/dist/Interactions/context.js +35 -0
- package/dist/Interactions/context.js.map +1 -0
- package/dist/Interactions/definitions.js +51 -0
- package/dist/Interactions/definitions.js.map +1 -0
- package/dist/Interactions/error.js +2 -0
- package/dist/Interactions/error.js.map +1 -0
- package/dist/Interactions/gateway.js +75 -0
- package/dist/Interactions/gateway.js.map +1 -0
- package/dist/Interactions/handlers.js +61 -0
- package/dist/Interactions/handlers.js.map +1 -0
- package/dist/Interactions/index.js +11 -0
- package/dist/Interactions/index.js.map +1 -0
- package/dist/Interactions/utils.js +29 -0
- package/dist/Interactions/utils.js.map +1 -0
- package/dist/Interactions/webhook.js +56 -0
- package/dist/Interactions/webhook.js.map +1 -0
- package/dist/LICENSE +21 -0
- package/dist/README.md +66 -0
- package/dist/RateLimit/memory.js +35 -0
- package/dist/RateLimit/memory.js.map +1 -0
- package/dist/RateLimit/utils.js +18 -0
- package/dist/RateLimit/utils.js.map +1 -0
- package/dist/RateLimit.js +28 -0
- package/dist/RateLimit.js.map +1 -0
- package/dist/gateway.js +19 -0
- package/dist/gateway.js.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/package.json +48 -0
- package/dist/src/Cache/driver.ts +37 -0
- package/dist/src/Cache/memory.ts +83 -0
- package/dist/src/Cache/memoryTTL.ts +225 -0
- package/dist/src/Cache/prelude.ts +279 -0
- package/dist/src/Cache.ts +261 -0
- package/dist/src/DiscordConfig.ts +67 -0
- package/dist/src/DiscordGateway/DiscordWS.ts +157 -0
- package/dist/src/DiscordGateway/Messaging.ts +71 -0
- package/dist/src/DiscordGateway/Shard/StateStore.ts +72 -0
- package/dist/src/DiscordGateway/Shard/heartbeats.ts +60 -0
- package/dist/src/DiscordGateway/Shard/identify.ts +50 -0
- package/dist/src/DiscordGateway/Shard/sendEvents.ts +43 -0
- package/dist/src/DiscordGateway/Shard/utils.ts +13 -0
- package/dist/src/DiscordGateway/Shard.ts +205 -0
- package/dist/src/DiscordGateway/ShardStore.ts +42 -0
- package/dist/src/DiscordGateway/Sharder.ts +118 -0
- package/dist/src/DiscordGateway.ts +79 -0
- package/dist/src/DiscordREST/Generated.ts +10832 -0
- package/dist/src/DiscordREST/utils.ts +42 -0
- package/dist/src/DiscordREST.ts +256 -0
- package/dist/src/Helpers/flags.ts +73 -0
- package/dist/src/Helpers/intents.ts +35 -0
- package/dist/src/Helpers/interactions.ts +317 -0
- package/dist/src/Helpers/members.ts +18 -0
- package/dist/src/Helpers/permissions.ts +145 -0
- package/dist/src/Helpers/ui.ts +253 -0
- package/dist/src/Interactions/builder.ts +171 -0
- package/dist/src/Interactions/commandHelper.ts +231 -0
- package/dist/src/Interactions/context.ts +104 -0
- package/dist/src/Interactions/definitions.ts +144 -0
- package/dist/src/Interactions/error.ts +3 -0
- package/dist/src/Interactions/gateway.ts +193 -0
- package/dist/src/Interactions/handlers.ts +108 -0
- package/dist/src/Interactions/index.ts +30 -0
- package/dist/src/Interactions/utils.ts +93 -0
- package/dist/src/Interactions/webhook.ts +204 -0
- package/dist/src/RateLimit/memory.ts +63 -0
- package/dist/src/RateLimit/utils.ts +28 -0
- package/dist/src/RateLimit.ts +90 -0
- package/dist/src/gateway.ts +50 -0
- package/dist/src/index.ts +44 -0
- package/dist/src/types.ts +3090 -0
- package/dist/src/utils/Effect.ts +65 -0
- package/dist/src/version.ts +1 -0
- package/dist/src/webhooks.ts +25 -0
- package/dist/types.js +356 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/Effect.js +42 -0
- package/dist/utils/Effect.js.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/dist/webhooks.js +6 -0
- package/dist/webhooks.js.map +1 -0
- package/package.json +83 -31
- package/src/version.ts +1 -1
- package/Cache/driver.js +0 -11
- package/Cache/driver.js.map +0 -1
- package/Cache/memory.js +0 -57
- package/Cache/memory.js.map +0 -1
- package/Cache/memoryTTL.js +0 -128
- package/Cache/memoryTTL.js.map +0 -1
- package/Cache/prelude.js +0 -143
- package/Cache/prelude.js.map +0 -1
- package/Cache.js +0 -145
- package/Cache.js.map +0 -1
- package/DiscordConfig.js +0 -43
- package/DiscordConfig.js.map +0 -1
- package/DiscordGateway/DiscordWS.js +0 -86
- package/DiscordGateway/DiscordWS.js.map +0 -1
- package/DiscordGateway/Messaging.js +0 -43
- package/DiscordGateway/Messaging.js.map +0 -1
- package/DiscordGateway/Shard/StateStore.js +0 -49
- package/DiscordGateway/Shard/StateStore.js.map +0 -1
- package/DiscordGateway/Shard/heartbeats.js +0 -33
- package/DiscordGateway/Shard/heartbeats.js.map +0 -1
- package/DiscordGateway/Shard/identify.js +0 -37
- package/DiscordGateway/Shard/identify.js.map +0 -1
- package/DiscordGateway/Shard/sendEvents.js +0 -39
- package/DiscordGateway/Shard/sendEvents.js.map +0 -1
- package/DiscordGateway/Shard/utils.js +0 -11
- package/DiscordGateway/Shard/utils.js.map +0 -1
- package/DiscordGateway/Shard.js +0 -155
- package/DiscordGateway/Shard.js.map +0 -1
- package/DiscordGateway/ShardStore.js +0 -32
- package/DiscordGateway/ShardStore.js.map +0 -1
- package/DiscordGateway/Sharder.js +0 -75
- package/DiscordGateway/Sharder.js.map +0 -1
- package/DiscordGateway.js +0 -28
- package/DiscordGateway.js.map +0 -1
- package/DiscordREST/Generated.js +0 -2480
- package/DiscordREST/Generated.js.map +0 -1
- package/DiscordREST/utils.js +0 -32
- package/DiscordREST/utils.js.map +0 -1
- package/DiscordREST.js +0 -128
- package/DiscordREST.js.map +0 -1
- package/Helpers/flags.js +0 -57
- package/Helpers/flags.js.map +0 -1
- package/Helpers/intents.js +0 -34
- package/Helpers/intents.js.map +0 -1
- package/Helpers/interactions.js +0 -143
- package/Helpers/interactions.js.map +0 -1
- package/Helpers/members.js +0 -17
- package/Helpers/members.js.map +0 -1
- package/Helpers/permissions.js +0 -97
- package/Helpers/permissions.js.map +0 -1
- package/Helpers/ui.js +0 -162
- package/Helpers/ui.js.map +0 -1
- package/Interactions/builder.js +0 -64
- package/Interactions/builder.js.map +0 -1
- package/Interactions/commandHelper.js +0 -57
- package/Interactions/commandHelper.js.map +0 -1
- package/Interactions/context.js +0 -47
- package/Interactions/context.js.map +0 -1
- package/Interactions/definitions.js +0 -67
- package/Interactions/definitions.js.map +0 -1
- package/Interactions/error.js +0 -8
- package/Interactions/error.js.map +0 -1
- package/Interactions/gateway.js +0 -92
- package/Interactions/gateway.js.map +0 -1
- package/Interactions/handlers.js +0 -73
- package/Interactions/handlers.js.map +0 -1
- package/Interactions/index.js +0 -94
- package/Interactions/index.js.map +0 -1
- package/Interactions/utils.js +0 -35
- package/Interactions/utils.js.map +0 -1
- package/Interactions/webhook.js +0 -89
- package/Interactions/webhook.js.map +0 -1
- package/RateLimit/memory.js +0 -47
- package/RateLimit/memory.js.map +0 -1
- package/RateLimit/utils.js +0 -25
- package/RateLimit/utils.js.map +0 -1
- package/RateLimit.js +0 -37
- package/RateLimit.js.map +0 -1
- package/gateway.js +0 -72
- package/gateway.js.map +0 -1
- package/index.js +0 -71
- package/index.js.map +0 -1
- package/types.js +0 -408
- package/types.js.map +0 -1
- package/utils/Effect.js +0 -53
- package/utils/Effect.js.map +0 -1
- package/version.js +0 -8
- package/version.js.map +0 -1
- package/webhooks.js +0 -55
- package/webhooks.js.map +0 -1
- /package/{Cache → dist/Cache}/driver.d.ts +0 -0
- /package/{Cache → dist/Cache}/driver.d.ts.map +0 -0
- /package/{Cache → dist/Cache}/memory.d.ts +0 -0
- /package/{Cache → dist/Cache}/memory.d.ts.map +0 -0
- /package/{Cache → dist/Cache}/memoryTTL.d.ts +0 -0
- /package/{Cache → dist/Cache}/memoryTTL.d.ts.map +0 -0
- /package/{Cache → dist/Cache}/prelude.d.ts +0 -0
- /package/{Cache → dist/Cache}/prelude.d.ts.map +0 -0
- /package/{Cache.d.ts → dist/Cache.d.ts} +0 -0
- /package/{Cache.d.ts.map → dist/Cache.d.ts.map} +0 -0
- /package/{DiscordConfig.d.ts → dist/DiscordConfig.d.ts} +0 -0
- /package/{DiscordConfig.d.ts.map → dist/DiscordConfig.d.ts.map} +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/DiscordWS.d.ts +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/DiscordWS.d.ts.map +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Messaging.d.ts +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Messaging.d.ts.map +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Shard/StateStore.d.ts +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Shard/StateStore.d.ts.map +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Shard/heartbeats.d.ts +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Shard/heartbeats.d.ts.map +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Shard/identify.d.ts +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Shard/identify.d.ts.map +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Shard/sendEvents.d.ts +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Shard/sendEvents.d.ts.map +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Shard/utils.d.ts +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Shard/utils.d.ts.map +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Shard.d.ts +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Shard.d.ts.map +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/ShardStore.d.ts +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/ShardStore.d.ts.map +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Sharder.d.ts +0 -0
- /package/{DiscordGateway → dist/DiscordGateway}/Sharder.d.ts.map +0 -0
- /package/{DiscordGateway.d.ts → dist/DiscordGateway.d.ts} +0 -0
- /package/{DiscordGateway.d.ts.map → dist/DiscordGateway.d.ts.map} +0 -0
- /package/{DiscordREST → dist/DiscordREST}/Generated.d.ts +0 -0
- /package/{DiscordREST → dist/DiscordREST}/Generated.d.ts.map +0 -0
- /package/{DiscordREST → dist/DiscordREST}/utils.d.ts +0 -0
- /package/{DiscordREST → dist/DiscordREST}/utils.d.ts.map +0 -0
- /package/{DiscordREST.d.ts → dist/DiscordREST.d.ts} +0 -0
- /package/{DiscordREST.d.ts.map → dist/DiscordREST.d.ts.map} +0 -0
- /package/{Helpers → dist/Helpers}/flags.d.ts +0 -0
- /package/{Helpers → dist/Helpers}/flags.d.ts.map +0 -0
- /package/{Helpers → dist/Helpers}/intents.d.ts +0 -0
- /package/{Helpers → dist/Helpers}/intents.d.ts.map +0 -0
- /package/{Helpers → dist/Helpers}/interactions.d.ts +0 -0
- /package/{Helpers → dist/Helpers}/interactions.d.ts.map +0 -0
- /package/{Helpers → dist/Helpers}/members.d.ts +0 -0
- /package/{Helpers → dist/Helpers}/members.d.ts.map +0 -0
- /package/{Helpers → dist/Helpers}/permissions.d.ts +0 -0
- /package/{Helpers → dist/Helpers}/permissions.d.ts.map +0 -0
- /package/{Helpers → dist/Helpers}/ui.d.ts +0 -0
- /package/{Helpers → dist/Helpers}/ui.d.ts.map +0 -0
- /package/{Interactions → dist/Interactions}/builder.d.ts +0 -0
- /package/{Interactions → dist/Interactions}/builder.d.ts.map +0 -0
- /package/{Interactions → dist/Interactions}/commandHelper.d.ts +0 -0
- /package/{Interactions → dist/Interactions}/commandHelper.d.ts.map +0 -0
- /package/{Interactions → dist/Interactions}/context.d.ts +0 -0
- /package/{Interactions → dist/Interactions}/context.d.ts.map +0 -0
- /package/{Interactions → dist/Interactions}/definitions.d.ts +0 -0
- /package/{Interactions → dist/Interactions}/definitions.d.ts.map +0 -0
- /package/{Interactions → dist/Interactions}/error.d.ts +0 -0
- /package/{Interactions → dist/Interactions}/error.d.ts.map +0 -0
- /package/{Interactions → dist/Interactions}/gateway.d.ts +0 -0
- /package/{Interactions → dist/Interactions}/gateway.d.ts.map +0 -0
- /package/{Interactions → dist/Interactions}/handlers.d.ts +0 -0
- /package/{Interactions → dist/Interactions}/handlers.d.ts.map +0 -0
- /package/{Interactions → dist/Interactions}/index.d.ts +0 -0
- /package/{Interactions → dist/Interactions}/index.d.ts.map +0 -0
- /package/{Interactions → dist/Interactions}/utils.d.ts +0 -0
- /package/{Interactions → dist/Interactions}/utils.d.ts.map +0 -0
- /package/{Interactions → dist/Interactions}/webhook.d.ts +0 -0
- /package/{Interactions → dist/Interactions}/webhook.d.ts.map +0 -0
- /package/{RateLimit → dist/RateLimit}/memory.d.ts +0 -0
- /package/{RateLimit → dist/RateLimit}/memory.d.ts.map +0 -0
- /package/{RateLimit → dist/RateLimit}/utils.d.ts +0 -0
- /package/{RateLimit → dist/RateLimit}/utils.d.ts.map +0 -0
- /package/{RateLimit.d.ts → dist/RateLimit.d.ts} +0 -0
- /package/{RateLimit.d.ts.map → dist/RateLimit.d.ts.map} +0 -0
- /package/{gateway.d.ts → dist/gateway.d.ts} +0 -0
- /package/{gateway.d.ts.map → dist/gateway.d.ts.map} +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.d.ts.map → dist/index.d.ts.map} +0 -0
- /package/{mjs → dist/mjs}/Cache/driver.mjs +0 -0
- /package/{mjs → dist/mjs}/Cache/driver.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Cache/memory.mjs +0 -0
- /package/{mjs → dist/mjs}/Cache/memory.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Cache/memoryTTL.mjs +0 -0
- /package/{mjs → dist/mjs}/Cache/memoryTTL.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Cache/prelude.mjs +0 -0
- /package/{mjs → dist/mjs}/Cache/prelude.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Cache.mjs +0 -0
- /package/{mjs → dist/mjs}/Cache.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordConfig.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordConfig.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/DiscordWS.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/DiscordWS.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Messaging.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Messaging.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Shard/StateStore.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Shard/StateStore.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Shard/heartbeats.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Shard/heartbeats.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Shard/identify.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Shard/identify.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Shard/sendEvents.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Shard/sendEvents.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Shard/utils.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Shard/utils.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Shard.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Shard.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/ShardStore.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/ShardStore.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Sharder.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway/Sharder.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordGateway.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordREST/Generated.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordREST/Generated.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordREST/utils.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordREST/utils.mjs.map +0 -0
- /package/{mjs → dist/mjs}/DiscordREST.mjs +0 -0
- /package/{mjs → dist/mjs}/DiscordREST.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Helpers/flags.mjs +0 -0
- /package/{mjs → dist/mjs}/Helpers/flags.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Helpers/intents.mjs +0 -0
- /package/{mjs → dist/mjs}/Helpers/intents.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Helpers/interactions.mjs +0 -0
- /package/{mjs → dist/mjs}/Helpers/interactions.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Helpers/members.mjs +0 -0
- /package/{mjs → dist/mjs}/Helpers/members.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Helpers/permissions.mjs +0 -0
- /package/{mjs → dist/mjs}/Helpers/permissions.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Helpers/ui.mjs +0 -0
- /package/{mjs → dist/mjs}/Helpers/ui.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Interactions/builder.mjs +0 -0
- /package/{mjs → dist/mjs}/Interactions/builder.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Interactions/commandHelper.mjs +0 -0
- /package/{mjs → dist/mjs}/Interactions/commandHelper.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Interactions/context.mjs +0 -0
- /package/{mjs → dist/mjs}/Interactions/context.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Interactions/definitions.mjs +0 -0
- /package/{mjs → dist/mjs}/Interactions/definitions.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Interactions/error.mjs +0 -0
- /package/{mjs → dist/mjs}/Interactions/error.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Interactions/gateway.mjs +0 -0
- /package/{mjs → dist/mjs}/Interactions/gateway.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Interactions/handlers.mjs +0 -0
- /package/{mjs → dist/mjs}/Interactions/handlers.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Interactions/index.mjs +0 -0
- /package/{mjs → dist/mjs}/Interactions/index.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Interactions/utils.mjs +0 -0
- /package/{mjs → dist/mjs}/Interactions/utils.mjs.map +0 -0
- /package/{mjs → dist/mjs}/Interactions/webhook.mjs +0 -0
- /package/{mjs → dist/mjs}/Interactions/webhook.mjs.map +0 -0
- /package/{mjs → dist/mjs}/RateLimit/memory.mjs +0 -0
- /package/{mjs → dist/mjs}/RateLimit/memory.mjs.map +0 -0
- /package/{mjs → dist/mjs}/RateLimit/utils.mjs +0 -0
- /package/{mjs → dist/mjs}/RateLimit/utils.mjs.map +0 -0
- /package/{mjs → dist/mjs}/RateLimit.mjs +0 -0
- /package/{mjs → dist/mjs}/RateLimit.mjs.map +0 -0
- /package/{mjs → dist/mjs}/gateway.mjs +0 -0
- /package/{mjs → dist/mjs}/gateway.mjs.map +0 -0
- /package/{mjs → dist/mjs}/index.mjs +0 -0
- /package/{mjs → dist/mjs}/index.mjs.map +0 -0
- /package/{mjs → dist/mjs}/types.mjs +0 -0
- /package/{mjs → dist/mjs}/types.mjs.map +0 -0
- /package/{mjs → dist/mjs}/utils/Effect.mjs +0 -0
- /package/{mjs → dist/mjs}/utils/Effect.mjs.map +0 -0
- /package/{mjs → dist/mjs}/version.mjs +0 -0
- /package/{mjs → dist/mjs}/version.mjs.map +0 -0
- /package/{mjs → dist/mjs}/webhooks.mjs +0 -0
- /package/{mjs → dist/mjs}/webhooks.mjs.map +0 -0
- /package/{tsconfig.base.json → dist/tsconfig.base.json} +0 -0
- /package/{tsconfig.build.json → dist/tsconfig.build.json} +0 -0
- /package/{tsconfig.examples.json → dist/tsconfig.examples.json} +0 -0
- /package/{tsconfig.json → dist/tsconfig.json} +0 -0
- /package/{tsconfig.madge.json → dist/tsconfig.madge.json} +0 -0
- /package/{tsconfig.test.json → dist/tsconfig.test.json} +0 -0
- /package/{types.d.ts → dist/types.d.ts} +0 -0
- /package/{types.d.ts.map → dist/types.d.ts.map} +0 -0
- /package/{utils → dist/utils}/Effect.d.ts +0 -0
- /package/{utils → dist/utils}/Effect.d.ts.map +0 -0
- /package/{version.d.ts → dist/version.d.ts} +0 -0
- /package/{version.d.ts.map → dist/version.d.ts.map} +0 -0
- /package/{webhooks.d.ts → dist/webhooks.d.ts} +0 -0
- /package/{webhooks.d.ts.map → dist/webhooks.d.ts.map} +0 -0
package/DiscordREST/Generated.js
DELETED
|
@@ -1,2480 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.make = exports.WidgetImageStyles = exports.WebhookTypes = exports.VideoQualityModes = exports.VerificationLevels = exports.UserNotificationSettings = exports.ThreadSortingMode = exports.ThreadSortOrder = exports.ThreadSearchTagSetting = exports.ThreadAutoArchiveDuration = exports.TextInputStyleTypes = exports.TeamMembershipStates = exports.TargetUsersJobStatusTypes = exports.StickerTypes = exports.StickerFormatTypes = exports.StageInstancesPrivacyLevels = exports.SortingOrder = exports.SnowflakeSelectDefaultValueTypes = exports.ReactionTypes = exports.PremiumTypes = exports.PremiumGuildTiers = exports.OnboardingPromptType = exports.OAuth2Scopes = exports.NewMemberActionType = exports.MetadataItemTypes = exports.MessageType = exports.MessageShareCustomUserThemeBaseTheme = exports.MessageComponentTypes = exports.MessageComponentSeparatorSpacingSize = exports.InviteTypes = exports.InviteTargetTypes = exports.InteractionTypes = exports.InteractionContextType = exports.InteractionCallbackTypes = exports.IntegrationTypes = exports.IntegrationExpireGracePeriodTypes = exports.IntegrationExpireBehaviorTypes = exports.GuildScheduledEventStatuses = exports.GuildScheduledEventEntityTypes = exports.GuildOnboardingMode = exports.GuildNSFWContentLevel = exports.GuildMFALevel = exports.GuildFeatures = exports.GuildExplicitContentFilterTypes = exports.ForumLayout = exports.EntitlementTypes = exports.EntitlementTenantFulfillmentStatusResponse = exports.EmbeddedActivityLocationKind = exports.DiscordRestError = exports.ConnectedAccountVisibility = exports.ConnectedAccountProviders = exports.ChannelTypes = exports.ChannelPermissionOverwrites = exports.ButtonStyleTypes = exports.AvailableLocalesEnum = exports.AutomodTriggerType = exports.AutomodKeywordPresetType = exports.AutomodEventType = exports.AutomodActionType = exports.AuditLogActionTypes = exports.ApplicationIntegrationType = exports.ApplicationIdentityProviderAuthType = exports.ApplicationExplicitContentFilterTypes = exports.ApplicationCommandType = exports.ApplicationCommandPermissionType = exports.ApplicationCommandOptionType = exports.AllowedMentionTypes = exports.AfkTimeouts = void 0;
|
|
7
|
-
var HttpClientError = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/unstable/http/HttpClientError"));
|
|
8
|
-
var HttpClientRequest = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/unstable/http/HttpClientRequest"));
|
|
9
|
-
var HttpClientResponse = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/unstable/http/HttpClientResponse"));
|
|
10
|
-
var Data = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/Data"));
|
|
11
|
-
var Effect = /*#__PURE__*/_interopRequireWildcard(/*#__PURE__*/require("effect/Effect"));
|
|
12
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
-
const OAuth2Scopes = exports.OAuth2Scopes = {
|
|
14
|
-
/**
|
|
15
|
-
* allows /users/@me without email
|
|
16
|
-
*/
|
|
17
|
-
IDENTIFY: "identify",
|
|
18
|
-
/**
|
|
19
|
-
* enables /users/@me to return an email
|
|
20
|
-
*/
|
|
21
|
-
EMAIL: "email",
|
|
22
|
-
/**
|
|
23
|
-
* allows /users/@me/connections to return linked third-party accounts
|
|
24
|
-
*/
|
|
25
|
-
CONNECTIONS: "connections",
|
|
26
|
-
/**
|
|
27
|
-
* allows /users/@me/guilds to return basic information about all of a user's guilds
|
|
28
|
-
*/
|
|
29
|
-
GUILDS: "guilds",
|
|
30
|
-
/**
|
|
31
|
-
* allows /guilds/{guild.id}/members/{user.id} to be used for joining users to a guild
|
|
32
|
-
*/
|
|
33
|
-
GUILDS_JOIN: "guilds.join",
|
|
34
|
-
/**
|
|
35
|
-
* allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild
|
|
36
|
-
*/
|
|
37
|
-
GUILDS_MEMBERS_READ: "guilds.members.read",
|
|
38
|
-
/**
|
|
39
|
-
* allows your app to join users to a group dm
|
|
40
|
-
*/
|
|
41
|
-
GDM_JOIN: "gdm.join",
|
|
42
|
-
/**
|
|
43
|
-
* for oauth2 bots, this puts the bot in the user's selected guild by default
|
|
44
|
-
*/
|
|
45
|
-
BOT: "bot",
|
|
46
|
-
/**
|
|
47
|
-
* for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval
|
|
48
|
-
*/
|
|
49
|
-
RPC: "rpc",
|
|
50
|
-
/**
|
|
51
|
-
* for local rpc server access, this allows you to receive notifications pushed out to the user - requires Discord approval
|
|
52
|
-
*/
|
|
53
|
-
RPC_NOTIFICATIONS_READ: "rpc.notifications.read",
|
|
54
|
-
/**
|
|
55
|
-
* for local rpc server access, this allows you to read a user's voice settings and listen for voice events - requires Discord approval
|
|
56
|
-
*/
|
|
57
|
-
RPC_VOICE_READ: "rpc.voice.read",
|
|
58
|
-
/**
|
|
59
|
-
* for local rpc server access, this allows you to update a user's voice settings - requires Discord approval
|
|
60
|
-
*/
|
|
61
|
-
RPC_VOICE_WRITE: "rpc.voice.write",
|
|
62
|
-
/**
|
|
63
|
-
* for local rpc server access, this allows you to read a user's video status - requires Discord approval
|
|
64
|
-
*/
|
|
65
|
-
RPC_VIDEO_READ: "rpc.video.read",
|
|
66
|
-
/**
|
|
67
|
-
* for local rpc server access, this allows you to update a user's video settings - requires Discord approval
|
|
68
|
-
*/
|
|
69
|
-
RPC_VIDEO_WRITE: "rpc.video.write",
|
|
70
|
-
/**
|
|
71
|
-
* for local rpc server access, this allows you to read a user's screenshare status- requires Discord approval
|
|
72
|
-
*/
|
|
73
|
-
RPC_SCREENSHARE_READ: "rpc.screenshare.read",
|
|
74
|
-
/**
|
|
75
|
-
* for local rpc server access, this allows you to update a user's screenshare settings- requires Discord approval
|
|
76
|
-
*/
|
|
77
|
-
RPC_SCREENSHARE_WRITE: "rpc.screenshare.write",
|
|
78
|
-
/**
|
|
79
|
-
* for local rpc server access, this allows you to update a user's activity - requires Discord approval
|
|
80
|
-
*/
|
|
81
|
-
RPC_ACTIVITIES_WRITE: "rpc.activities.write",
|
|
82
|
-
/**
|
|
83
|
-
* this generates a webhook that is returned in the oauth token response for authorization code grants
|
|
84
|
-
*/
|
|
85
|
-
WEBHOOK_INCOMING: "webhook.incoming",
|
|
86
|
-
/**
|
|
87
|
-
* for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates)
|
|
88
|
-
*/
|
|
89
|
-
MESSAGES_READ: "messages.read",
|
|
90
|
-
/**
|
|
91
|
-
* allows your app to upload/update builds for a user's applications - requires Discord approval
|
|
92
|
-
*/
|
|
93
|
-
APPLICATIONS_BUILDS_UPLOAD: "applications.builds.upload",
|
|
94
|
-
/**
|
|
95
|
-
* allows your app to read build data for a user's applications
|
|
96
|
-
*/
|
|
97
|
-
APPLICATIONS_BUILDS_READ: "applications.builds.read",
|
|
98
|
-
/**
|
|
99
|
-
* allows your app to use commands in a guild
|
|
100
|
-
*/
|
|
101
|
-
APPLICATIONS_COMMANDS: "applications.commands",
|
|
102
|
-
/**
|
|
103
|
-
* allows your app to update permissions for its commands in a guild a user has permissions to
|
|
104
|
-
*/
|
|
105
|
-
APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE: "applications.commands.permissions.update",
|
|
106
|
-
/**
|
|
107
|
-
* allows your app to update its commands using a Bearer token - client credentials grant only
|
|
108
|
-
*/
|
|
109
|
-
APPLICATIONS_COMMANDS_UPDATE: "applications.commands.update",
|
|
110
|
-
/**
|
|
111
|
-
* allows your app to read and update store data (SKUs, store listings, achievements, etc.) for a user's applications
|
|
112
|
-
*/
|
|
113
|
-
APPLICATIONS_STORE_UPDATE: "applications.store.update",
|
|
114
|
-
/**
|
|
115
|
-
* allows your app to read entitlements for a user's applications
|
|
116
|
-
*/
|
|
117
|
-
APPLICATIONS_ENTITLEMENTS: "applications.entitlements",
|
|
118
|
-
/**
|
|
119
|
-
* allows your app to fetch data from a user's "Now Playing/Recently Played" list - requires Discord approval
|
|
120
|
-
*/
|
|
121
|
-
ACTIVITIES_READ: "activities.read",
|
|
122
|
-
/**
|
|
123
|
-
* allows your app to update a user's activity - requires Discord approval (NOT REQUIRED FOR GAMESDK ACTIVITY MANAGER)
|
|
124
|
-
*/
|
|
125
|
-
ACTIVITIES_WRITE: "activities.write",
|
|
126
|
-
/**
|
|
127
|
-
* allows your app to send activity invites - requires Discord approval (NOT REQUIRED FOR GAMESDK ACTIVITY MANAGER)
|
|
128
|
-
*/
|
|
129
|
-
ACTIVITIES_INVITES_WRITE: "activities.invites.write",
|
|
130
|
-
/**
|
|
131
|
-
* allows your app to know a user's friends and implicit relationships - requires Discord approval
|
|
132
|
-
*/
|
|
133
|
-
RELATIONSHIPS_READ: "relationships.read",
|
|
134
|
-
/**
|
|
135
|
-
* allows your app to connect to voice on user's behalf and see all the voice members - requires Discord approval
|
|
136
|
-
*/
|
|
137
|
-
VOICE: "voice",
|
|
138
|
-
/**
|
|
139
|
-
* allows your app to see information about the user's DMs and group DMs - requires Discord approval
|
|
140
|
-
*/
|
|
141
|
-
DM_CHANNELS_READ: "dm_channels.read",
|
|
142
|
-
/**
|
|
143
|
-
* allows your app to update a user's connection and metadata for the app
|
|
144
|
-
*/
|
|
145
|
-
ROLE_CONNECTIONS_WRITE: "role_connections.write",
|
|
146
|
-
/**
|
|
147
|
-
* for OpenID Connect, this allows your app to receive user id and basic profile information
|
|
148
|
-
*/
|
|
149
|
-
OPENID: "openid"
|
|
150
|
-
};
|
|
151
|
-
const ApplicationExplicitContentFilterTypes = exports.ApplicationExplicitContentFilterTypes = {
|
|
152
|
-
/**
|
|
153
|
-
* inherit guild content filter setting
|
|
154
|
-
*/
|
|
155
|
-
INHERIT: 0,
|
|
156
|
-
/**
|
|
157
|
-
* interactions will always be scanned
|
|
158
|
-
*/
|
|
159
|
-
ALWAYS: 1
|
|
160
|
-
};
|
|
161
|
-
const TeamMembershipStates = exports.TeamMembershipStates = {
|
|
162
|
-
/**
|
|
163
|
-
* User has been invited to the team.
|
|
164
|
-
*/
|
|
165
|
-
INVITED: 1,
|
|
166
|
-
/**
|
|
167
|
-
* User has accepted the team invitation.
|
|
168
|
-
*/
|
|
169
|
-
ACCEPTED: 2
|
|
170
|
-
};
|
|
171
|
-
const EmbeddedActivityLocationKind = exports.EmbeddedActivityLocationKind = {
|
|
172
|
-
/**
|
|
173
|
-
* guild channel
|
|
174
|
-
*/
|
|
175
|
-
GUILD_CHANNEL: "gc",
|
|
176
|
-
/**
|
|
177
|
-
* private channel
|
|
178
|
-
*/
|
|
179
|
-
PRIVATE_CHANNEL: "pc",
|
|
180
|
-
/**
|
|
181
|
-
* party
|
|
182
|
-
*/
|
|
183
|
-
PARTY: "party"
|
|
184
|
-
};
|
|
185
|
-
const ApplicationCommandType = exports.ApplicationCommandType = {
|
|
186
|
-
/**
|
|
187
|
-
* Slash commands; a text-based command that shows up when a user types /
|
|
188
|
-
*/
|
|
189
|
-
CHAT: 1,
|
|
190
|
-
/**
|
|
191
|
-
* A UI-based command that shows up when you right click or tap on a user
|
|
192
|
-
*/
|
|
193
|
-
USER: 2,
|
|
194
|
-
/**
|
|
195
|
-
* A UI-based command that shows up when you right click or tap on a message
|
|
196
|
-
*/
|
|
197
|
-
MESSAGE: 3,
|
|
198
|
-
/**
|
|
199
|
-
* A command that represents the primary way to use an application (e.g. launching an Activity)
|
|
200
|
-
*/
|
|
201
|
-
PRIMARY_ENTRY_POINT: 4
|
|
202
|
-
};
|
|
203
|
-
const InteractionContextType = exports.InteractionContextType = {
|
|
204
|
-
/**
|
|
205
|
-
* This command can be used within a Guild.
|
|
206
|
-
*/
|
|
207
|
-
GUILD: 0,
|
|
208
|
-
/**
|
|
209
|
-
* This command can be used within a DM with this application's bot.
|
|
210
|
-
*/
|
|
211
|
-
BOT_DM: 1,
|
|
212
|
-
/**
|
|
213
|
-
* This command can be used within DMs and Group DMs with users.
|
|
214
|
-
*/
|
|
215
|
-
PRIVATE_CHANNEL: 2
|
|
216
|
-
};
|
|
217
|
-
const ApplicationIntegrationType = exports.ApplicationIntegrationType = {
|
|
218
|
-
/**
|
|
219
|
-
* For Guild install.
|
|
220
|
-
*/
|
|
221
|
-
GUILD_INSTALL: 0,
|
|
222
|
-
/**
|
|
223
|
-
* For User install.
|
|
224
|
-
*/
|
|
225
|
-
USER_INSTALL: 1
|
|
226
|
-
};
|
|
227
|
-
const ApplicationCommandOptionType = exports.ApplicationCommandOptionType = {
|
|
228
|
-
/**
|
|
229
|
-
* A sub-action within a command or group
|
|
230
|
-
*/
|
|
231
|
-
SUB_COMMAND: 1,
|
|
232
|
-
/**
|
|
233
|
-
* A group of subcommands
|
|
234
|
-
*/
|
|
235
|
-
SUB_COMMAND_GROUP: 2,
|
|
236
|
-
/**
|
|
237
|
-
* A string option
|
|
238
|
-
*/
|
|
239
|
-
STRING: 3,
|
|
240
|
-
/**
|
|
241
|
-
* An integer option. Any integer between -2^53 and 2^53 is a valid value
|
|
242
|
-
*/
|
|
243
|
-
INTEGER: 4,
|
|
244
|
-
/**
|
|
245
|
-
* A boolean option
|
|
246
|
-
*/
|
|
247
|
-
BOOLEAN: 5,
|
|
248
|
-
/**
|
|
249
|
-
* A snowflake option that represents a User
|
|
250
|
-
*/
|
|
251
|
-
USER: 6,
|
|
252
|
-
/**
|
|
253
|
-
* A snowflake option that represents a Channel. Includes all channel types and categories
|
|
254
|
-
*/
|
|
255
|
-
CHANNEL: 7,
|
|
256
|
-
/**
|
|
257
|
-
* A snowflake option that represents a Role
|
|
258
|
-
*/
|
|
259
|
-
ROLE: 8,
|
|
260
|
-
/**
|
|
261
|
-
* A snowflake option that represents anything you can mention
|
|
262
|
-
*/
|
|
263
|
-
MENTIONABLE: 9,
|
|
264
|
-
/**
|
|
265
|
-
* A number option. Any double between -2^53 and 2^53 is a valid value
|
|
266
|
-
*/
|
|
267
|
-
NUMBER: 10,
|
|
268
|
-
/**
|
|
269
|
-
* An attachment option
|
|
270
|
-
*/
|
|
271
|
-
ATTACHMENT: 11
|
|
272
|
-
};
|
|
273
|
-
const ChannelTypes = exports.ChannelTypes = {
|
|
274
|
-
/**
|
|
275
|
-
* A direct message between users
|
|
276
|
-
*/
|
|
277
|
-
DM: 1,
|
|
278
|
-
/**
|
|
279
|
-
* A direct message between multiple users
|
|
280
|
-
*/
|
|
281
|
-
GROUP_DM: 3,
|
|
282
|
-
/**
|
|
283
|
-
* A text channel within a server
|
|
284
|
-
*/
|
|
285
|
-
GUILD_TEXT: 0,
|
|
286
|
-
/**
|
|
287
|
-
* A voice channel within a server
|
|
288
|
-
*/
|
|
289
|
-
GUILD_VOICE: 2,
|
|
290
|
-
/**
|
|
291
|
-
* An organizational category that contains up to 50 channels
|
|
292
|
-
*/
|
|
293
|
-
GUILD_CATEGORY: 4,
|
|
294
|
-
/**
|
|
295
|
-
* A channel that users can follow and crosspost into their own server (formerly news channels)
|
|
296
|
-
*/
|
|
297
|
-
GUILD_ANNOUNCEMENT: 5,
|
|
298
|
-
/**
|
|
299
|
-
* A temporary sub-channel within a GUILD_ANNOUNCEMENT channel
|
|
300
|
-
*/
|
|
301
|
-
ANNOUNCEMENT_THREAD: 10,
|
|
302
|
-
/**
|
|
303
|
-
* A temporary sub-channel within a GUILD_TEXT or GUILD_THREADS_ONLY channel type set
|
|
304
|
-
*/
|
|
305
|
-
PUBLIC_THREAD: 11,
|
|
306
|
-
/**
|
|
307
|
-
* A temporary sub-channel within a GUILD_TEXT channel that is only viewable by those invited and those with the MANAGE_THREADS permission
|
|
308
|
-
*/
|
|
309
|
-
PRIVATE_THREAD: 12,
|
|
310
|
-
/**
|
|
311
|
-
* A voice channel for hosting events with an audience
|
|
312
|
-
*/
|
|
313
|
-
GUILD_STAGE_VOICE: 13,
|
|
314
|
-
/**
|
|
315
|
-
* The channel in a hub containing the listed servers
|
|
316
|
-
*/
|
|
317
|
-
GUILD_DIRECTORY: 14,
|
|
318
|
-
/**
|
|
319
|
-
* Channel that can only contain threads
|
|
320
|
-
*/
|
|
321
|
-
GUILD_FORUM: 15
|
|
322
|
-
};
|
|
323
|
-
const EntitlementTypes = exports.EntitlementTypes = {
|
|
324
|
-
APPLICATION_SUBSCRIPTION: 8,
|
|
325
|
-
QUEST_REWARD: 10
|
|
326
|
-
};
|
|
327
|
-
const EntitlementTenantFulfillmentStatusResponse = exports.EntitlementTenantFulfillmentStatusResponse = {
|
|
328
|
-
UNKNOWN: 0,
|
|
329
|
-
FULFILLMENT_NOT_NEEDED: 1,
|
|
330
|
-
FULFILLMENT_NEEDED: 2,
|
|
331
|
-
FULFILLED: 3,
|
|
332
|
-
FULFILLMENT_FAILED: 4,
|
|
333
|
-
UNFULFILLMENT_NEEDED: 5,
|
|
334
|
-
UNFULFILLED: 6,
|
|
335
|
-
UNFULFILLMENT_FAILED: 7
|
|
336
|
-
};
|
|
337
|
-
const ApplicationCommandPermissionType = exports.ApplicationCommandPermissionType = {
|
|
338
|
-
/**
|
|
339
|
-
* This permission is for a role.
|
|
340
|
-
*/
|
|
341
|
-
ROLE: 1,
|
|
342
|
-
/**
|
|
343
|
-
* This permission is for a user.
|
|
344
|
-
*/
|
|
345
|
-
USER: 2,
|
|
346
|
-
/**
|
|
347
|
-
* This permission is for a channel.
|
|
348
|
-
*/
|
|
349
|
-
CHANNEL: 3
|
|
350
|
-
};
|
|
351
|
-
const MetadataItemTypes = exports.MetadataItemTypes = {
|
|
352
|
-
/**
|
|
353
|
-
* the metadata value (integer) is less than or equal to the guild's configured value (integer)
|
|
354
|
-
*/
|
|
355
|
-
INTEGER_LESS_THAN_EQUAL: 1,
|
|
356
|
-
/**
|
|
357
|
-
* the metadata value (integer) is greater than or equal to the guild's configured value (integer)
|
|
358
|
-
*/
|
|
359
|
-
INTEGER_GREATER_THAN_EQUAL: 2,
|
|
360
|
-
/**
|
|
361
|
-
* the metadata value (integer) is equal to the guild's configured value (integer)
|
|
362
|
-
*/
|
|
363
|
-
INTEGER_EQUAL: 3,
|
|
364
|
-
/**
|
|
365
|
-
* the metadata value (integer) is not equal to the guild's configured value (integer)
|
|
366
|
-
*/
|
|
367
|
-
INTEGER_NOT_EQUAL: 4,
|
|
368
|
-
/**
|
|
369
|
-
* the metadata value (ISO8601 string) is less than or equal to the guild's configured value (integer; days before current date)
|
|
370
|
-
*/
|
|
371
|
-
DATETIME_LESS_THAN_EQUAL: 5,
|
|
372
|
-
/**
|
|
373
|
-
* the metadata value (ISO8601 string) is greater than or equal to the guild's configured value (integer; days before current date)
|
|
374
|
-
*/
|
|
375
|
-
DATETIME_GREATER_THAN_EQUAL: 6,
|
|
376
|
-
/**
|
|
377
|
-
* the metadata value (integer) is equal to the guild's configured value (integer; 1)
|
|
378
|
-
*/
|
|
379
|
-
BOOLEAN_EQUAL: 7,
|
|
380
|
-
/**
|
|
381
|
-
* the metadata value (integer) is not equal to the guild's configured value (integer; 1)
|
|
382
|
-
*/
|
|
383
|
-
BOOLEAN_NOT_EQUAL: 8
|
|
384
|
-
};
|
|
385
|
-
const VideoQualityModes = exports.VideoQualityModes = {
|
|
386
|
-
/**
|
|
387
|
-
* Discord chooses the quality for optimal performance
|
|
388
|
-
*/
|
|
389
|
-
AUTO: 1,
|
|
390
|
-
/**
|
|
391
|
-
* 720p
|
|
392
|
-
*/
|
|
393
|
-
FULL: 2
|
|
394
|
-
};
|
|
395
|
-
const ThreadAutoArchiveDuration = exports.ThreadAutoArchiveDuration = {
|
|
396
|
-
/**
|
|
397
|
-
* One hour
|
|
398
|
-
*/
|
|
399
|
-
ONE_HOUR: 60,
|
|
400
|
-
/**
|
|
401
|
-
* One day
|
|
402
|
-
*/
|
|
403
|
-
ONE_DAY: 1440,
|
|
404
|
-
/**
|
|
405
|
-
* Three days
|
|
406
|
-
*/
|
|
407
|
-
THREE_DAY: 4320,
|
|
408
|
-
/**
|
|
409
|
-
* Seven days
|
|
410
|
-
*/
|
|
411
|
-
SEVEN_DAY: 10080
|
|
412
|
-
};
|
|
413
|
-
const ChannelPermissionOverwrites = exports.ChannelPermissionOverwrites = {
|
|
414
|
-
ROLE: 0,
|
|
415
|
-
MEMBER: 1
|
|
416
|
-
};
|
|
417
|
-
const ThreadSortOrder = exports.ThreadSortOrder = {
|
|
418
|
-
/**
|
|
419
|
-
* Sort forum posts by activity
|
|
420
|
-
*/
|
|
421
|
-
LATEST_ACTIVITY: 0,
|
|
422
|
-
/**
|
|
423
|
-
* Sort forum posts by creation time (from most recent to oldest)
|
|
424
|
-
*/
|
|
425
|
-
CREATION_DATE: 1
|
|
426
|
-
};
|
|
427
|
-
const ForumLayout = exports.ForumLayout = {
|
|
428
|
-
/**
|
|
429
|
-
* No default has been set for forum channel
|
|
430
|
-
*/
|
|
431
|
-
DEFAULT: 0,
|
|
432
|
-
/**
|
|
433
|
-
* Display posts as a list
|
|
434
|
-
*/
|
|
435
|
-
LIST: 1,
|
|
436
|
-
/**
|
|
437
|
-
* Display posts as a collection of tiles
|
|
438
|
-
*/
|
|
439
|
-
GRID: 2
|
|
440
|
-
};
|
|
441
|
-
const ThreadSearchTagSetting = exports.ThreadSearchTagSetting = {
|
|
442
|
-
/**
|
|
443
|
-
* The thread tags must contain all tags in the search query
|
|
444
|
-
*/
|
|
445
|
-
MATCH_ALL: "match_all",
|
|
446
|
-
/**
|
|
447
|
-
* The thread tags must contain at least one of tags in the search query
|
|
448
|
-
*/
|
|
449
|
-
MATCH_SOME: "match_some"
|
|
450
|
-
};
|
|
451
|
-
const InviteTypes = exports.InviteTypes = {
|
|
452
|
-
GUILD: 0,
|
|
453
|
-
GROUP_DM: 1,
|
|
454
|
-
FRIEND: 2
|
|
455
|
-
};
|
|
456
|
-
const GuildFeatures = exports.GuildFeatures = {
|
|
457
|
-
/**
|
|
458
|
-
* guild has access to set an animated guild banner image
|
|
459
|
-
*/
|
|
460
|
-
ANIMATED_BANNER: "ANIMATED_BANNER",
|
|
461
|
-
/**
|
|
462
|
-
* guild has access to set an animated guild icon
|
|
463
|
-
*/
|
|
464
|
-
ANIMATED_ICON: "ANIMATED_ICON",
|
|
465
|
-
/**
|
|
466
|
-
* guild is using the old permissions configuration behavior
|
|
467
|
-
*/
|
|
468
|
-
APPLICATION_COMMAND_PERMISSIONS_V2: "APPLICATION_COMMAND_PERMISSIONS_V2",
|
|
469
|
-
/**
|
|
470
|
-
* guild has set up auto moderation rules
|
|
471
|
-
*/
|
|
472
|
-
AUTO_MODERATION: "AUTO_MODERATION",
|
|
473
|
-
/**
|
|
474
|
-
* guild has access to set a guild banner image
|
|
475
|
-
*/
|
|
476
|
-
BANNER: "BANNER",
|
|
477
|
-
/**
|
|
478
|
-
* guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates
|
|
479
|
-
*/
|
|
480
|
-
COMMUNITY: "COMMUNITY",
|
|
481
|
-
/**
|
|
482
|
-
* guild has enabled monetization
|
|
483
|
-
*/
|
|
484
|
-
CREATOR_MONETIZABLE_PROVISIONAL: "CREATOR_MONETIZABLE_PROVISIONAL",
|
|
485
|
-
/**
|
|
486
|
-
* guild has enabled the role subscription promo page
|
|
487
|
-
*/
|
|
488
|
-
CREATOR_STORE_PAGE: "CREATOR_STORE_PAGE",
|
|
489
|
-
/**
|
|
490
|
-
* guild has been set as a support server on the App Directory
|
|
491
|
-
*/
|
|
492
|
-
DEVELOPER_SUPPORT_SERVER: "DEVELOPER_SUPPORT_SERVER",
|
|
493
|
-
/**
|
|
494
|
-
* guild is able to be discovered in the directory
|
|
495
|
-
*/
|
|
496
|
-
DISCOVERABLE: "DISCOVERABLE",
|
|
497
|
-
/**
|
|
498
|
-
* guild is able to be featured in the directory
|
|
499
|
-
*/
|
|
500
|
-
FEATURABLE: "FEATURABLE",
|
|
501
|
-
/**
|
|
502
|
-
* guild has paused invites, preventing new users from joining
|
|
503
|
-
*/
|
|
504
|
-
INVITES_DISABLED: "INVITES_DISABLED",
|
|
505
|
-
/**
|
|
506
|
-
* guild has access to set an invite splash background
|
|
507
|
-
*/
|
|
508
|
-
INVITE_SPLASH: "INVITE_SPLASH",
|
|
509
|
-
/**
|
|
510
|
-
* guild has enabled Membership Screening
|
|
511
|
-
*/
|
|
512
|
-
MEMBER_VERIFICATION_GATE_ENABLED: "MEMBER_VERIFICATION_GATE_ENABLED",
|
|
513
|
-
/**
|
|
514
|
-
* guild has increased custom sticker slots
|
|
515
|
-
*/
|
|
516
|
-
MORE_STICKERS: "MORE_STICKERS",
|
|
517
|
-
/**
|
|
518
|
-
* guild has access to create announcement channels
|
|
519
|
-
*/
|
|
520
|
-
NEWS: "NEWS",
|
|
521
|
-
/**
|
|
522
|
-
* guild is partnered
|
|
523
|
-
*/
|
|
524
|
-
PARTNERED: "PARTNERED",
|
|
525
|
-
/**
|
|
526
|
-
* guild can be previewed before joining via Membership Screening or the directory
|
|
527
|
-
*/
|
|
528
|
-
PREVIEW_ENABLED: "PREVIEW_ENABLED",
|
|
529
|
-
/**
|
|
530
|
-
* guild has disabled activity alerts in the configured safety alerts channel
|
|
531
|
-
*/
|
|
532
|
-
RAID_ALERTS_DISABLED: "RAID_ALERTS_DISABLED",
|
|
533
|
-
/**
|
|
534
|
-
* guild is able to set role icons
|
|
535
|
-
*/
|
|
536
|
-
ROLE_ICONS: "ROLE_ICONS",
|
|
537
|
-
/**
|
|
538
|
-
* guild has role subscriptions that can be purchased
|
|
539
|
-
*/
|
|
540
|
-
ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE: "ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE",
|
|
541
|
-
/**
|
|
542
|
-
* guild has enabled role subscriptions
|
|
543
|
-
*/
|
|
544
|
-
ROLE_SUBSCRIPTIONS_ENABLED: "ROLE_SUBSCRIPTIONS_ENABLED",
|
|
545
|
-
/**
|
|
546
|
-
* guild has enabled ticketed events
|
|
547
|
-
*/
|
|
548
|
-
TICKETED_EVENTS_ENABLED: "TICKETED_EVENTS_ENABLED",
|
|
549
|
-
/**
|
|
550
|
-
* guild has access to set a vanity URL
|
|
551
|
-
*/
|
|
552
|
-
VANITY_URL: "VANITY_URL",
|
|
553
|
-
/**
|
|
554
|
-
* guild is verified
|
|
555
|
-
*/
|
|
556
|
-
VERIFIED: "VERIFIED",
|
|
557
|
-
/**
|
|
558
|
-
* guild has access to set 384kbps bitrate in voice (previously VIP voice servers)
|
|
559
|
-
*/
|
|
560
|
-
VIP_REGIONS: "VIP_REGIONS",
|
|
561
|
-
/**
|
|
562
|
-
* guild has enabled the welcome screen
|
|
563
|
-
*/
|
|
564
|
-
WELCOME_SCREEN_ENABLED: "WELCOME_SCREEN_ENABLED"
|
|
565
|
-
};
|
|
566
|
-
const VerificationLevels = exports.VerificationLevels = {
|
|
567
|
-
/**
|
|
568
|
-
* unrestricted
|
|
569
|
-
*/
|
|
570
|
-
NONE: 0,
|
|
571
|
-
/**
|
|
572
|
-
* must have verified email on account
|
|
573
|
-
*/
|
|
574
|
-
LOW: 1,
|
|
575
|
-
/**
|
|
576
|
-
* must be registered on Discord for longer than 5 minutes
|
|
577
|
-
*/
|
|
578
|
-
MEDIUM: 2,
|
|
579
|
-
/**
|
|
580
|
-
* must be a member of the server for longer than 10 minutes
|
|
581
|
-
*/
|
|
582
|
-
HIGH: 3,
|
|
583
|
-
/**
|
|
584
|
-
* must have a verified phone number
|
|
585
|
-
*/
|
|
586
|
-
VERY_HIGH: 4
|
|
587
|
-
};
|
|
588
|
-
const GuildNSFWContentLevel = exports.GuildNSFWContentLevel = {
|
|
589
|
-
DEFAULT: 0,
|
|
590
|
-
EXPLICIT: 1,
|
|
591
|
-
SAFE: 2,
|
|
592
|
-
AGE_RESTRICTED: 3
|
|
593
|
-
};
|
|
594
|
-
const InviteTargetTypes = exports.InviteTargetTypes = {
|
|
595
|
-
STREAM: 1,
|
|
596
|
-
EMBEDDED_APPLICATION: 2,
|
|
597
|
-
ROLE_SUBSCRIPTIONS_PURCHASE: 3
|
|
598
|
-
};
|
|
599
|
-
const GuildScheduledEventStatuses = exports.GuildScheduledEventStatuses = {
|
|
600
|
-
SCHEDULED: 1,
|
|
601
|
-
ACTIVE: 2,
|
|
602
|
-
COMPLETED: 3,
|
|
603
|
-
CANCELED: 4
|
|
604
|
-
};
|
|
605
|
-
const GuildScheduledEventEntityTypes = exports.GuildScheduledEventEntityTypes = {
|
|
606
|
-
NONE: 0,
|
|
607
|
-
STAGE_INSTANCE: 1,
|
|
608
|
-
VOICE: 2,
|
|
609
|
-
EXTERNAL: 3
|
|
610
|
-
};
|
|
611
|
-
const MessageType = exports.MessageType = {
|
|
612
|
-
DEFAULT: 0,
|
|
613
|
-
RECIPIENT_ADD: 1,
|
|
614
|
-
RECIPIENT_REMOVE: 2,
|
|
615
|
-
CALL: 3,
|
|
616
|
-
CHANNEL_NAME_CHANGE: 4,
|
|
617
|
-
CHANNEL_ICON_CHANGE: 5,
|
|
618
|
-
CHANNEL_PINNED_MESSAGE: 6,
|
|
619
|
-
USER_JOIN: 7,
|
|
620
|
-
GUILD_BOOST: 8,
|
|
621
|
-
GUILD_BOOST_TIER_1: 9,
|
|
622
|
-
GUILD_BOOST_TIER_2: 10,
|
|
623
|
-
GUILD_BOOST_TIER_3: 11,
|
|
624
|
-
CHANNEL_FOLLOW_ADD: 12,
|
|
625
|
-
GUILD_DISCOVERY_DISQUALIFIED: 14,
|
|
626
|
-
GUILD_DISCOVERY_REQUALIFIED: 15,
|
|
627
|
-
GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING: 16,
|
|
628
|
-
GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING: 17,
|
|
629
|
-
THREAD_CREATED: 18,
|
|
630
|
-
REPLY: 19,
|
|
631
|
-
CHAT_INPUT_COMMAND: 20,
|
|
632
|
-
THREAD_STARTER_MESSAGE: 21,
|
|
633
|
-
GUILD_INVITE_REMINDER: 22,
|
|
634
|
-
CONTEXT_MENU_COMMAND: 23,
|
|
635
|
-
AUTO_MODERATION_ACTION: 24,
|
|
636
|
-
ROLE_SUBSCRIPTION_PURCHASE: 25,
|
|
637
|
-
INTERACTION_PREMIUM_UPSELL: 26,
|
|
638
|
-
STAGE_START: 27,
|
|
639
|
-
STAGE_END: 28,
|
|
640
|
-
STAGE_SPEAKER: 29,
|
|
641
|
-
STAGE_TOPIC: 31,
|
|
642
|
-
GUILD_APPLICATION_PREMIUM_SUBSCRIPTION: 32,
|
|
643
|
-
GUILD_INCIDENT_ALERT_MODE_ENABLED: 36,
|
|
644
|
-
GUILD_INCIDENT_ALERT_MODE_DISABLED: 37,
|
|
645
|
-
GUILD_INCIDENT_REPORT_RAID: 38,
|
|
646
|
-
GUILD_INCIDENT_REPORT_FALSE_ALARM: 39,
|
|
647
|
-
POLL_RESULT: 46,
|
|
648
|
-
HD_STREAMING_UPGRADED: 55
|
|
649
|
-
};
|
|
650
|
-
const MessageComponentTypes = exports.MessageComponentTypes = {
|
|
651
|
-
/**
|
|
652
|
-
* Container for other components
|
|
653
|
-
*/
|
|
654
|
-
ACTION_ROW: 1,
|
|
655
|
-
/**
|
|
656
|
-
* Button object
|
|
657
|
-
*/
|
|
658
|
-
BUTTON: 2,
|
|
659
|
-
/**
|
|
660
|
-
* Select menu for picking from defined text options
|
|
661
|
-
*/
|
|
662
|
-
STRING_SELECT: 3,
|
|
663
|
-
/**
|
|
664
|
-
* Text input object
|
|
665
|
-
*/
|
|
666
|
-
TEXT_INPUT: 4,
|
|
667
|
-
/**
|
|
668
|
-
* Select menu for users
|
|
669
|
-
*/
|
|
670
|
-
USER_SELECT: 5,
|
|
671
|
-
/**
|
|
672
|
-
* Select menu for roles
|
|
673
|
-
*/
|
|
674
|
-
ROLE_SELECT: 6,
|
|
675
|
-
/**
|
|
676
|
-
* Select menu for mentionables (users and roles)
|
|
677
|
-
*/
|
|
678
|
-
MENTIONABLE_SELECT: 7,
|
|
679
|
-
/**
|
|
680
|
-
* Select menu for channels
|
|
681
|
-
*/
|
|
682
|
-
CHANNEL_SELECT: 8,
|
|
683
|
-
/**
|
|
684
|
-
* Section component
|
|
685
|
-
*/
|
|
686
|
-
SECTION: 9,
|
|
687
|
-
/**
|
|
688
|
-
* Text component
|
|
689
|
-
*/
|
|
690
|
-
TEXT_DISPLAY: 10,
|
|
691
|
-
/**
|
|
692
|
-
* Thumbnail component
|
|
693
|
-
*/
|
|
694
|
-
THUMBNAIL: 11,
|
|
695
|
-
/**
|
|
696
|
-
* Media gallery component
|
|
697
|
-
*/
|
|
698
|
-
MEDIA_GALLERY: 12,
|
|
699
|
-
/**
|
|
700
|
-
* File component
|
|
701
|
-
*/
|
|
702
|
-
FILE: 13,
|
|
703
|
-
/**
|
|
704
|
-
* Separator component
|
|
705
|
-
*/
|
|
706
|
-
SEPARATOR: 14,
|
|
707
|
-
/**
|
|
708
|
-
* Container component
|
|
709
|
-
*/
|
|
710
|
-
CONTAINER: 17,
|
|
711
|
-
/**
|
|
712
|
-
* Label component
|
|
713
|
-
*/
|
|
714
|
-
LABEL: 18,
|
|
715
|
-
/**
|
|
716
|
-
* File upload component
|
|
717
|
-
*/
|
|
718
|
-
FILE_UPLOAD: 19,
|
|
719
|
-
/**
|
|
720
|
-
* Radio group component
|
|
721
|
-
*/
|
|
722
|
-
RADIO_GROUP: 21,
|
|
723
|
-
/**
|
|
724
|
-
* Checkbox group component
|
|
725
|
-
*/
|
|
726
|
-
CHECKBOX_GROUP: 22,
|
|
727
|
-
/**
|
|
728
|
-
* Checkbox component
|
|
729
|
-
*/
|
|
730
|
-
CHECKBOX: 23
|
|
731
|
-
};
|
|
732
|
-
const ButtonStyleTypes = exports.ButtonStyleTypes = {
|
|
733
|
-
PRIMARY: 1,
|
|
734
|
-
SECONDARY: 2,
|
|
735
|
-
SUCCESS: 3,
|
|
736
|
-
DANGER: 4,
|
|
737
|
-
LINK: 5,
|
|
738
|
-
PREMIUM: 6
|
|
739
|
-
};
|
|
740
|
-
const SnowflakeSelectDefaultValueTypes = exports.SnowflakeSelectDefaultValueTypes = {
|
|
741
|
-
USER: "user",
|
|
742
|
-
ROLE: "role",
|
|
743
|
-
CHANNEL: "channel"
|
|
744
|
-
};
|
|
745
|
-
const TextInputStyleTypes = exports.TextInputStyleTypes = {
|
|
746
|
-
/**
|
|
747
|
-
* Single-line input
|
|
748
|
-
*/
|
|
749
|
-
SHORT: 1,
|
|
750
|
-
/**
|
|
751
|
-
* Multi-line input
|
|
752
|
-
*/
|
|
753
|
-
PARAGRAPH: 2
|
|
754
|
-
};
|
|
755
|
-
const MessageComponentSeparatorSpacingSize = exports.MessageComponentSeparatorSpacingSize = {
|
|
756
|
-
/**
|
|
757
|
-
* Small spacing
|
|
758
|
-
*/
|
|
759
|
-
SMALL: 1,
|
|
760
|
-
/**
|
|
761
|
-
* Large spacing
|
|
762
|
-
*/
|
|
763
|
-
LARGE: 2
|
|
764
|
-
};
|
|
765
|
-
const StickerTypes = exports.StickerTypes = {
|
|
766
|
-
/**
|
|
767
|
-
* an official sticker in a pack, part of Nitro or in a removed purchasable pack
|
|
768
|
-
*/
|
|
769
|
-
STANDARD: 1,
|
|
770
|
-
/**
|
|
771
|
-
* a sticker uploaded to a guild for the guild's members
|
|
772
|
-
*/
|
|
773
|
-
GUILD: 2
|
|
774
|
-
};
|
|
775
|
-
const StickerFormatTypes = exports.StickerFormatTypes = {
|
|
776
|
-
PNG: 1,
|
|
777
|
-
APNG: 2,
|
|
778
|
-
LOTTIE: 3,
|
|
779
|
-
GIF: 4
|
|
780
|
-
};
|
|
781
|
-
const InteractionTypes = exports.InteractionTypes = {
|
|
782
|
-
/**
|
|
783
|
-
* Sent by Discord to validate your application's interaction handler
|
|
784
|
-
*/
|
|
785
|
-
PING: 1,
|
|
786
|
-
/**
|
|
787
|
-
* Sent when a user uses an application command
|
|
788
|
-
*/
|
|
789
|
-
APPLICATION_COMMAND: 2,
|
|
790
|
-
/**
|
|
791
|
-
* Sent when a user interacts with a message component previously sent by your application
|
|
792
|
-
*/
|
|
793
|
-
MESSAGE_COMPONENT: 3,
|
|
794
|
-
/**
|
|
795
|
-
* Sent when a user is filling in an autocomplete option in a chat command
|
|
796
|
-
*/
|
|
797
|
-
APPLICATION_COMMAND_AUTOCOMPLETE: 4,
|
|
798
|
-
/**
|
|
799
|
-
* Sent when a user submits a modal previously sent by your application
|
|
800
|
-
*/
|
|
801
|
-
MODAL_SUBMIT: 5,
|
|
802
|
-
/**
|
|
803
|
-
* Sent when Discord is checking if a user can purchase a Social Layer SKU
|
|
804
|
-
*/
|
|
805
|
-
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 6
|
|
806
|
-
};
|
|
807
|
-
const MessageShareCustomUserThemeBaseTheme = exports.MessageShareCustomUserThemeBaseTheme = {
|
|
808
|
-
/**
|
|
809
|
-
* No base theme
|
|
810
|
-
*/
|
|
811
|
-
UNSET: 0,
|
|
812
|
-
/**
|
|
813
|
-
* Dark base theme
|
|
814
|
-
*/
|
|
815
|
-
DARK: 1,
|
|
816
|
-
/**
|
|
817
|
-
* Light base theme
|
|
818
|
-
*/
|
|
819
|
-
LIGHT: 2,
|
|
820
|
-
/**
|
|
821
|
-
* Darker base theme
|
|
822
|
-
*/
|
|
823
|
-
DARKER: 3,
|
|
824
|
-
/**
|
|
825
|
-
* Midnight base theme
|
|
826
|
-
*/
|
|
827
|
-
MIDNIGHT: 4
|
|
828
|
-
};
|
|
829
|
-
const AllowedMentionTypes = exports.AllowedMentionTypes = {
|
|
830
|
-
/**
|
|
831
|
-
* Controls role mentions
|
|
832
|
-
*/
|
|
833
|
-
USERS: "users",
|
|
834
|
-
/**
|
|
835
|
-
* Controls user mentions
|
|
836
|
-
*/
|
|
837
|
-
ROLES: "roles",
|
|
838
|
-
/**
|
|
839
|
-
* Controls @everyone and @here mentions
|
|
840
|
-
*/
|
|
841
|
-
EVERYONE: "everyone"
|
|
842
|
-
};
|
|
843
|
-
const ReactionTypes = exports.ReactionTypes = {
|
|
844
|
-
/**
|
|
845
|
-
* Normal reaction type
|
|
846
|
-
*/
|
|
847
|
-
NORMAL: 0,
|
|
848
|
-
/**
|
|
849
|
-
* Burst reaction type
|
|
850
|
-
*/
|
|
851
|
-
BURST: 1
|
|
852
|
-
};
|
|
853
|
-
const ThreadSortingMode = exports.ThreadSortingMode = {
|
|
854
|
-
RELEVANCE: "relevance",
|
|
855
|
-
CREATION_TIME: "creation_time",
|
|
856
|
-
LAST_MESSAGE_TIME: "last_message_time",
|
|
857
|
-
ARCHIVE_TIME: "archive_time"
|
|
858
|
-
};
|
|
859
|
-
const SortingOrder = exports.SortingOrder = {
|
|
860
|
-
ASC: "asc",
|
|
861
|
-
DESC: "desc"
|
|
862
|
-
};
|
|
863
|
-
const WebhookTypes = exports.WebhookTypes = {
|
|
864
|
-
/**
|
|
865
|
-
* Incoming Webhooks can post messages to channels with a generated token
|
|
866
|
-
*/
|
|
867
|
-
GUILD_INCOMING: 1,
|
|
868
|
-
/**
|
|
869
|
-
* Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels
|
|
870
|
-
*/
|
|
871
|
-
CHANNEL_FOLLOWER: 2,
|
|
872
|
-
/**
|
|
873
|
-
* Application webhooks are webhooks used with Interactions
|
|
874
|
-
*/
|
|
875
|
-
APPLICATION_INCOMING: 3
|
|
876
|
-
};
|
|
877
|
-
const UserNotificationSettings = exports.UserNotificationSettings = {
|
|
878
|
-
/**
|
|
879
|
-
* members will receive notifications for all messages by default
|
|
880
|
-
*/
|
|
881
|
-
ALL_MESSAGES: 0,
|
|
882
|
-
/**
|
|
883
|
-
* members will receive notifications only for messages that @mention them by default
|
|
884
|
-
*/
|
|
885
|
-
ONLY_MENTIONS: 1
|
|
886
|
-
};
|
|
887
|
-
const GuildExplicitContentFilterTypes = exports.GuildExplicitContentFilterTypes = {
|
|
888
|
-
/**
|
|
889
|
-
* media content will not be scanned
|
|
890
|
-
*/
|
|
891
|
-
DISABLED: 0,
|
|
892
|
-
/**
|
|
893
|
-
* media content sent by members without roles will be scanned
|
|
894
|
-
*/
|
|
895
|
-
MEMBERS_WITHOUT_ROLES: 1,
|
|
896
|
-
/**
|
|
897
|
-
* media content sent by all members will be scanned
|
|
898
|
-
*/
|
|
899
|
-
ALL_MEMBERS: 2
|
|
900
|
-
};
|
|
901
|
-
const AvailableLocalesEnum = exports.AvailableLocalesEnum = {
|
|
902
|
-
/**
|
|
903
|
-
* The ar locale
|
|
904
|
-
*/
|
|
905
|
-
ar: "ar",
|
|
906
|
-
/**
|
|
907
|
-
* The bg locale
|
|
908
|
-
*/
|
|
909
|
-
bg: "bg",
|
|
910
|
-
/**
|
|
911
|
-
* The cs locale
|
|
912
|
-
*/
|
|
913
|
-
cs: "cs",
|
|
914
|
-
/**
|
|
915
|
-
* The da locale
|
|
916
|
-
*/
|
|
917
|
-
da: "da",
|
|
918
|
-
/**
|
|
919
|
-
* The de locale
|
|
920
|
-
*/
|
|
921
|
-
de: "de",
|
|
922
|
-
/**
|
|
923
|
-
* The el locale
|
|
924
|
-
*/
|
|
925
|
-
el: "el",
|
|
926
|
-
/**
|
|
927
|
-
* The en-GB locale
|
|
928
|
-
*/
|
|
929
|
-
"en-GB": "en-GB",
|
|
930
|
-
/**
|
|
931
|
-
* The en-US locale
|
|
932
|
-
*/
|
|
933
|
-
"en-US": "en-US",
|
|
934
|
-
/**
|
|
935
|
-
* The es-419 locale
|
|
936
|
-
*/
|
|
937
|
-
"es-419": "es-419",
|
|
938
|
-
/**
|
|
939
|
-
* The es-ES locale
|
|
940
|
-
*/
|
|
941
|
-
"es-ES": "es-ES",
|
|
942
|
-
/**
|
|
943
|
-
* The fi locale
|
|
944
|
-
*/
|
|
945
|
-
fi: "fi",
|
|
946
|
-
/**
|
|
947
|
-
* The fr locale
|
|
948
|
-
*/
|
|
949
|
-
fr: "fr",
|
|
950
|
-
/**
|
|
951
|
-
* The he locale
|
|
952
|
-
*/
|
|
953
|
-
he: "he",
|
|
954
|
-
/**
|
|
955
|
-
* The hi locale
|
|
956
|
-
*/
|
|
957
|
-
hi: "hi",
|
|
958
|
-
/**
|
|
959
|
-
* The hr locale
|
|
960
|
-
*/
|
|
961
|
-
hr: "hr",
|
|
962
|
-
/**
|
|
963
|
-
* The hu locale
|
|
964
|
-
*/
|
|
965
|
-
hu: "hu",
|
|
966
|
-
/**
|
|
967
|
-
* The id locale
|
|
968
|
-
*/
|
|
969
|
-
id: "id",
|
|
970
|
-
/**
|
|
971
|
-
* The it locale
|
|
972
|
-
*/
|
|
973
|
-
it: "it",
|
|
974
|
-
/**
|
|
975
|
-
* The ja locale
|
|
976
|
-
*/
|
|
977
|
-
ja: "ja",
|
|
978
|
-
/**
|
|
979
|
-
* The ko locale
|
|
980
|
-
*/
|
|
981
|
-
ko: "ko",
|
|
982
|
-
/**
|
|
983
|
-
* The lt locale
|
|
984
|
-
*/
|
|
985
|
-
lt: "lt",
|
|
986
|
-
/**
|
|
987
|
-
* The nl locale
|
|
988
|
-
*/
|
|
989
|
-
nl: "nl",
|
|
990
|
-
/**
|
|
991
|
-
* The no locale
|
|
992
|
-
*/
|
|
993
|
-
no: "no",
|
|
994
|
-
/**
|
|
995
|
-
* The pl locale
|
|
996
|
-
*/
|
|
997
|
-
pl: "pl",
|
|
998
|
-
/**
|
|
999
|
-
* The pt-BR locale
|
|
1000
|
-
*/
|
|
1001
|
-
"pt-BR": "pt-BR",
|
|
1002
|
-
/**
|
|
1003
|
-
* The ro locale
|
|
1004
|
-
*/
|
|
1005
|
-
ro: "ro",
|
|
1006
|
-
/**
|
|
1007
|
-
* The ru locale
|
|
1008
|
-
*/
|
|
1009
|
-
ru: "ru",
|
|
1010
|
-
/**
|
|
1011
|
-
* The sv-SE locale
|
|
1012
|
-
*/
|
|
1013
|
-
"sv-SE": "sv-SE",
|
|
1014
|
-
/**
|
|
1015
|
-
* The th locale
|
|
1016
|
-
*/
|
|
1017
|
-
th: "th",
|
|
1018
|
-
/**
|
|
1019
|
-
* The tr locale
|
|
1020
|
-
*/
|
|
1021
|
-
tr: "tr",
|
|
1022
|
-
/**
|
|
1023
|
-
* The uk locale
|
|
1024
|
-
*/
|
|
1025
|
-
uk: "uk",
|
|
1026
|
-
/**
|
|
1027
|
-
* The vi locale
|
|
1028
|
-
*/
|
|
1029
|
-
vi: "vi",
|
|
1030
|
-
/**
|
|
1031
|
-
* The zh-CN locale
|
|
1032
|
-
*/
|
|
1033
|
-
"zh-CN": "zh-CN",
|
|
1034
|
-
/**
|
|
1035
|
-
* The zh-TW locale
|
|
1036
|
-
*/
|
|
1037
|
-
"zh-TW": "zh-TW"
|
|
1038
|
-
};
|
|
1039
|
-
const AfkTimeouts = exports.AfkTimeouts = {
|
|
1040
|
-
ONE_MINUTE: 60,
|
|
1041
|
-
FIVE_MINUTES: 300,
|
|
1042
|
-
FIFTEEN_MINUTES: 900,
|
|
1043
|
-
THIRTY_MINUTES: 1800,
|
|
1044
|
-
ONE_HOUR: 3600
|
|
1045
|
-
};
|
|
1046
|
-
const GuildMFALevel = exports.GuildMFALevel = {
|
|
1047
|
-
/**
|
|
1048
|
-
* Guild has no MFA/2FA requirement for moderation actions
|
|
1049
|
-
*/
|
|
1050
|
-
NONE: 0,
|
|
1051
|
-
/**
|
|
1052
|
-
* Guild has a 2FA requirement for moderation actions
|
|
1053
|
-
*/
|
|
1054
|
-
ELEVATED: 1
|
|
1055
|
-
};
|
|
1056
|
-
const PremiumGuildTiers = exports.PremiumGuildTiers = {
|
|
1057
|
-
/**
|
|
1058
|
-
* Guild has not unlocked any Server Boost perks
|
|
1059
|
-
*/
|
|
1060
|
-
NONE: 0,
|
|
1061
|
-
/**
|
|
1062
|
-
* Guild has unlocked Server Boost level 1 perks
|
|
1063
|
-
*/
|
|
1064
|
-
TIER_1: 1,
|
|
1065
|
-
/**
|
|
1066
|
-
* Guild has unlocked Server Boost level 2 perks
|
|
1067
|
-
*/
|
|
1068
|
-
TIER_2: 2,
|
|
1069
|
-
/**
|
|
1070
|
-
* Guild has unlocked Server Boost level 3 perks
|
|
1071
|
-
*/
|
|
1072
|
-
TIER_3: 3
|
|
1073
|
-
};
|
|
1074
|
-
const AuditLogActionTypes = exports.AuditLogActionTypes = {
|
|
1075
|
-
GUILD_UPDATE: 1,
|
|
1076
|
-
CHANNEL_CREATE: 10,
|
|
1077
|
-
CHANNEL_UPDATE: 11,
|
|
1078
|
-
CHANNEL_DELETE: 12,
|
|
1079
|
-
CHANNEL_OVERWRITE_CREATE: 13,
|
|
1080
|
-
CHANNEL_OVERWRITE_UPDATE: 14,
|
|
1081
|
-
CHANNEL_OVERWRITE_DELETE: 15,
|
|
1082
|
-
MEMBER_KICK: 20,
|
|
1083
|
-
MEMBER_PRUNE: 21,
|
|
1084
|
-
MEMBER_BAN_ADD: 22,
|
|
1085
|
-
MEMBER_BAN_REMOVE: 23,
|
|
1086
|
-
MEMBER_UPDATE: 24,
|
|
1087
|
-
MEMBER_ROLE_UPDATE: 25,
|
|
1088
|
-
MEMBER_MOVE: 26,
|
|
1089
|
-
MEMBER_DISCONNECT: 27,
|
|
1090
|
-
BOT_ADD: 28,
|
|
1091
|
-
ROLE_CREATE: 30,
|
|
1092
|
-
ROLE_UPDATE: 31,
|
|
1093
|
-
ROLE_DELETE: 32,
|
|
1094
|
-
INVITE_CREATE: 40,
|
|
1095
|
-
INVITE_UPDATE: 41,
|
|
1096
|
-
INVITE_DELETE: 42,
|
|
1097
|
-
WEBHOOK_CREATE: 50,
|
|
1098
|
-
WEBHOOK_UPDATE: 51,
|
|
1099
|
-
WEBHOOK_DELETE: 52,
|
|
1100
|
-
EMOJI_CREATE: 60,
|
|
1101
|
-
EMOJI_UPDATE: 61,
|
|
1102
|
-
EMOJI_DELETE: 62,
|
|
1103
|
-
MESSAGE_DELETE: 72,
|
|
1104
|
-
MESSAGE_BULK_DELETE: 73,
|
|
1105
|
-
MESSAGE_PIN: 74,
|
|
1106
|
-
MESSAGE_UNPIN: 75,
|
|
1107
|
-
INTEGRATION_CREATE: 80,
|
|
1108
|
-
INTEGRATION_UPDATE: 81,
|
|
1109
|
-
INTEGRATION_DELETE: 82,
|
|
1110
|
-
STAGE_INSTANCE_CREATE: 83,
|
|
1111
|
-
STAGE_INSTANCE_UPDATE: 84,
|
|
1112
|
-
STAGE_INSTANCE_DELETE: 85,
|
|
1113
|
-
STICKER_CREATE: 90,
|
|
1114
|
-
STICKER_UPDATE: 91,
|
|
1115
|
-
STICKER_DELETE: 92,
|
|
1116
|
-
GUILD_SCHEDULED_EVENT_CREATE: 100,
|
|
1117
|
-
GUILD_SCHEDULED_EVENT_UPDATE: 101,
|
|
1118
|
-
GUILD_SCHEDULED_EVENT_DELETE: 102,
|
|
1119
|
-
THREAD_CREATE: 110,
|
|
1120
|
-
THREAD_UPDATE: 111,
|
|
1121
|
-
THREAD_DELETE: 112,
|
|
1122
|
-
APPLICATION_COMMAND_PERMISSION_UPDATE: 121,
|
|
1123
|
-
SOUNDBOARD_SOUND_CREATE: 130,
|
|
1124
|
-
SOUNDBOARD_SOUND_UPDATE: 131,
|
|
1125
|
-
SOUNDBOARD_SOUND_DELETE: 132,
|
|
1126
|
-
AUTO_MODERATION_RULE_CREATE: 140,
|
|
1127
|
-
AUTO_MODERATION_RULE_UPDATE: 141,
|
|
1128
|
-
AUTO_MODERATION_RULE_DELETE: 142,
|
|
1129
|
-
AUTO_MODERATION_BLOCK_MESSAGE: 143,
|
|
1130
|
-
AUTO_MODERATION_FLAG_TO_CHANNEL: 144,
|
|
1131
|
-
AUTO_MODERATION_USER_COMM_DISABLED: 145,
|
|
1132
|
-
AUTO_MODERATION_QUARANTINE_USER: 146,
|
|
1133
|
-
CREATOR_MONETIZATION_REQUEST_CREATED: 150,
|
|
1134
|
-
CREATOR_MONETIZATION_TERMS_ACCEPTED: 151,
|
|
1135
|
-
ONBOARDING_PROMPT_CREATE: 163,
|
|
1136
|
-
ONBOARDING_PROMPT_UPDATE: 164,
|
|
1137
|
-
ONBOARDING_PROMPT_DELETE: 165,
|
|
1138
|
-
ONBOARDING_CREATE: 166,
|
|
1139
|
-
ONBOARDING_UPDATE: 167,
|
|
1140
|
-
GUILD_HOME_FEATURE_ITEM: 171,
|
|
1141
|
-
GUILD_HOME_REMOVE_ITEM: 172,
|
|
1142
|
-
HARMFUL_LINKS_BLOCKED_MESSAGE: 180,
|
|
1143
|
-
HOME_SETTINGS_CREATE: 190,
|
|
1144
|
-
HOME_SETTINGS_UPDATE: 191,
|
|
1145
|
-
VOICE_CHANNEL_STATUS_CREATE: 192,
|
|
1146
|
-
VOICE_CHANNEL_STATUS_DELETE: 193,
|
|
1147
|
-
GUILD_PROFILE_UPDATE: 211
|
|
1148
|
-
};
|
|
1149
|
-
const IntegrationTypes = exports.IntegrationTypes = {
|
|
1150
|
-
DISCORD: "discord",
|
|
1151
|
-
TWITCH: "twitch",
|
|
1152
|
-
YOUTUBE: "youtube",
|
|
1153
|
-
GUILD_SUBSCRIPTION: "guild_subscription"
|
|
1154
|
-
};
|
|
1155
|
-
const AutomodEventType = exports.AutomodEventType = {
|
|
1156
|
-
/**
|
|
1157
|
-
* A user submitted a message to a channel
|
|
1158
|
-
*/
|
|
1159
|
-
MESSAGE_SEND: 1,
|
|
1160
|
-
/**
|
|
1161
|
-
* A user is attempting to join the server or a member's properties were updated.
|
|
1162
|
-
*/
|
|
1163
|
-
GUILD_MEMBER_JOIN_OR_UPDATE: 2
|
|
1164
|
-
};
|
|
1165
|
-
const AutomodActionType = exports.AutomodActionType = {
|
|
1166
|
-
/**
|
|
1167
|
-
* Block a user's message and prevent it from being posted. A custom explanation can be specified and shown to members whenever their message is blocked
|
|
1168
|
-
*/
|
|
1169
|
-
BLOCK_MESSAGE: 1,
|
|
1170
|
-
/**
|
|
1171
|
-
* Send a system message to a channel in order to log the user message that triggered the rule
|
|
1172
|
-
*/
|
|
1173
|
-
FLAG_TO_CHANNEL: 2,
|
|
1174
|
-
/**
|
|
1175
|
-
* Temporarily disable a user's ability to communicate in the server (timeout)
|
|
1176
|
-
*/
|
|
1177
|
-
USER_COMMUNICATION_DISABLED: 3,
|
|
1178
|
-
/**
|
|
1179
|
-
* Prevent a user from interacting in the server
|
|
1180
|
-
*/
|
|
1181
|
-
QUARANTINE_USER: 4
|
|
1182
|
-
};
|
|
1183
|
-
const AutomodTriggerType = exports.AutomodTriggerType = {
|
|
1184
|
-
/**
|
|
1185
|
-
* Check if content contains words from a list of keywords or matches regex
|
|
1186
|
-
*/
|
|
1187
|
-
KEYWORD: 1,
|
|
1188
|
-
/**
|
|
1189
|
-
* DEPRECATED
|
|
1190
|
-
*/
|
|
1191
|
-
SPAM_LINK: 2,
|
|
1192
|
-
/**
|
|
1193
|
-
* Check if content represents generic spam
|
|
1194
|
-
*/
|
|
1195
|
-
ML_SPAM: 3,
|
|
1196
|
-
/**
|
|
1197
|
-
* Check if content contains words from internal pre-defined wordsets
|
|
1198
|
-
*/
|
|
1199
|
-
DEFAULT_KEYWORD_LIST: 4,
|
|
1200
|
-
/**
|
|
1201
|
-
* Check if content contains more unique mentions than allowed
|
|
1202
|
-
*/
|
|
1203
|
-
MENTION_SPAM: 5
|
|
1204
|
-
};
|
|
1205
|
-
const AutomodKeywordPresetType = exports.AutomodKeywordPresetType = {
|
|
1206
|
-
/**
|
|
1207
|
-
* Words and phrases that may be considered profanity
|
|
1208
|
-
*/
|
|
1209
|
-
PROFANITY: 1,
|
|
1210
|
-
/**
|
|
1211
|
-
* Words and phrases that may be considered as sexual content
|
|
1212
|
-
*/
|
|
1213
|
-
SEXUAL_CONTENT: 2,
|
|
1214
|
-
/**
|
|
1215
|
-
* Words and phrases that may be considered slurs and hate speech
|
|
1216
|
-
*/
|
|
1217
|
-
SLURS: 3
|
|
1218
|
-
};
|
|
1219
|
-
const IntegrationExpireBehaviorTypes = exports.IntegrationExpireBehaviorTypes = {
|
|
1220
|
-
/**
|
|
1221
|
-
* Remove role
|
|
1222
|
-
*/
|
|
1223
|
-
REMOVE_ROLE: 0,
|
|
1224
|
-
/**
|
|
1225
|
-
* Kick
|
|
1226
|
-
*/
|
|
1227
|
-
KICK: 1
|
|
1228
|
-
};
|
|
1229
|
-
const IntegrationExpireGracePeriodTypes = exports.IntegrationExpireGracePeriodTypes = {
|
|
1230
|
-
/**
|
|
1231
|
-
* 1 day
|
|
1232
|
-
*/
|
|
1233
|
-
ONE_DAY: 1,
|
|
1234
|
-
/**
|
|
1235
|
-
* 3 days
|
|
1236
|
-
*/
|
|
1237
|
-
THREE_DAYS: 3,
|
|
1238
|
-
/**
|
|
1239
|
-
* 7 days
|
|
1240
|
-
*/
|
|
1241
|
-
SEVEN_DAYS: 7,
|
|
1242
|
-
/**
|
|
1243
|
-
* 14 days
|
|
1244
|
-
*/
|
|
1245
|
-
FOURTEEN_DAYS: 14,
|
|
1246
|
-
/**
|
|
1247
|
-
* 30 days
|
|
1248
|
-
*/
|
|
1249
|
-
THIRTY_DAYS: 30
|
|
1250
|
-
};
|
|
1251
|
-
const NewMemberActionType = exports.NewMemberActionType = {
|
|
1252
|
-
VIEW: 0,
|
|
1253
|
-
TALK: 1
|
|
1254
|
-
};
|
|
1255
|
-
const OnboardingPromptType = exports.OnboardingPromptType = {
|
|
1256
|
-
/**
|
|
1257
|
-
* Multiple choice options
|
|
1258
|
-
*/
|
|
1259
|
-
MULTIPLE_CHOICE: 0,
|
|
1260
|
-
/**
|
|
1261
|
-
* Many options shown as a dropdown
|
|
1262
|
-
*/
|
|
1263
|
-
DROPDOWN: 1
|
|
1264
|
-
};
|
|
1265
|
-
const GuildOnboardingMode = exports.GuildOnboardingMode = {
|
|
1266
|
-
/**
|
|
1267
|
-
* Only Default Channels considered in constraints
|
|
1268
|
-
*/
|
|
1269
|
-
ONBOARDING_DEFAULT: 0,
|
|
1270
|
-
/**
|
|
1271
|
-
* Default Channels and Onboarding Prompts considered in constraints
|
|
1272
|
-
*/
|
|
1273
|
-
ONBOARDING_ADVANCED: 1
|
|
1274
|
-
};
|
|
1275
|
-
const WidgetImageStyles = exports.WidgetImageStyles = {
|
|
1276
|
-
/**
|
|
1277
|
-
* shield style widget with Discord icon and guild members online count
|
|
1278
|
-
*/
|
|
1279
|
-
SHIELD: "shield",
|
|
1280
|
-
/**
|
|
1281
|
-
* large image with guild icon, name and online count. "POWERED BY DISCORD" as the footer of the widget
|
|
1282
|
-
*/
|
|
1283
|
-
BANNER1: "banner1",
|
|
1284
|
-
/**
|
|
1285
|
-
* smaller widget style with guild icon, name and online count. Split on the right with Discord logo
|
|
1286
|
-
*/
|
|
1287
|
-
BANNER2: "banner2",
|
|
1288
|
-
/**
|
|
1289
|
-
* large image with guild icon, name and online count. In the footer, Discord logo on the left and "Chat Now" on the right
|
|
1290
|
-
*/
|
|
1291
|
-
BANNER3: "banner3",
|
|
1292
|
-
/**
|
|
1293
|
-
* large Discord logo at the top of the widget. Guild icon, name and online count in the middle portion of the widget and a "JOIN MY SERVER" button at the bottom
|
|
1294
|
-
*/
|
|
1295
|
-
BANNER4: "banner4"
|
|
1296
|
-
};
|
|
1297
|
-
const InteractionCallbackTypes = exports.InteractionCallbackTypes = {
|
|
1298
|
-
PONG: 1,
|
|
1299
|
-
CHANNEL_MESSAGE_WITH_SOURCE: 4,
|
|
1300
|
-
DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE: 5,
|
|
1301
|
-
DEFERRED_UPDATE_MESSAGE: 6,
|
|
1302
|
-
UPDATE_MESSAGE: 7,
|
|
1303
|
-
APPLICATION_COMMAND_AUTOCOMPLETE_RESULT: 8,
|
|
1304
|
-
MODAL: 9,
|
|
1305
|
-
LAUNCH_ACTIVITY: 12,
|
|
1306
|
-
SOCIAL_LAYER_SKU_PURCHASE_ELIGIBILITY: 13
|
|
1307
|
-
};
|
|
1308
|
-
const TargetUsersJobStatusTypes = exports.TargetUsersJobStatusTypes = {
|
|
1309
|
-
/**
|
|
1310
|
-
* The default value.
|
|
1311
|
-
*/
|
|
1312
|
-
UNSPECIFIED: 0,
|
|
1313
|
-
/**
|
|
1314
|
-
* The job is still being processed.
|
|
1315
|
-
*/
|
|
1316
|
-
PROCESSING: 1,
|
|
1317
|
-
/**
|
|
1318
|
-
* The job has been completed successfully.
|
|
1319
|
-
*/
|
|
1320
|
-
COMPLETED: 2,
|
|
1321
|
-
/**
|
|
1322
|
-
* The job has failed, see error_message field for more details.
|
|
1323
|
-
*/
|
|
1324
|
-
FAILED: 3
|
|
1325
|
-
};
|
|
1326
|
-
const ApplicationIdentityProviderAuthType = exports.ApplicationIdentityProviderAuthType = {
|
|
1327
|
-
OIDC: "OIDC",
|
|
1328
|
-
EPIC_ONLINE_SERVICES_ACCESS_TOKEN: "EPIC_ONLINE_SERVICES_ACCESS_TOKEN",
|
|
1329
|
-
EPIC_ONLINE_SERVICES_ID_TOKEN: "EPIC_ONLINE_SERVICES_ID_TOKEN",
|
|
1330
|
-
STEAM_SESSION_TICKET: "STEAM_SESSION_TICKET",
|
|
1331
|
-
UNITY_SERVICES_ID_TOKEN: "UNITY_SERVICES_ID_TOKEN",
|
|
1332
|
-
DISCORD_BOT_ISSUED_ACCESS_TOKEN: "DISCORD_BOT_ISSUED_ACCESS_TOKEN",
|
|
1333
|
-
APPLE_ID_TOKEN: "APPLE_ID_TOKEN",
|
|
1334
|
-
PLAYSTATION_NETWORK_ID_TOKEN: "PLAYSTATION_NETWORK_ID_TOKEN"
|
|
1335
|
-
};
|
|
1336
|
-
const StageInstancesPrivacyLevels = exports.StageInstancesPrivacyLevels = {
|
|
1337
|
-
/**
|
|
1338
|
-
* The Stage instance is visible publicly. (deprecated)
|
|
1339
|
-
*/
|
|
1340
|
-
PUBLIC: 1,
|
|
1341
|
-
/**
|
|
1342
|
-
* The Stage instance is visible publicly. (deprecated)
|
|
1343
|
-
*/
|
|
1344
|
-
GUILD_ONLY: 2
|
|
1345
|
-
};
|
|
1346
|
-
const PremiumTypes = exports.PremiumTypes = {
|
|
1347
|
-
/**
|
|
1348
|
-
* None
|
|
1349
|
-
*/
|
|
1350
|
-
NONE: 0,
|
|
1351
|
-
/**
|
|
1352
|
-
* Nitro Classic
|
|
1353
|
-
*/
|
|
1354
|
-
TIER_1: 1,
|
|
1355
|
-
/**
|
|
1356
|
-
* Nitro Standard
|
|
1357
|
-
*/
|
|
1358
|
-
TIER_2: 2,
|
|
1359
|
-
/**
|
|
1360
|
-
* Nitro Basic
|
|
1361
|
-
*/
|
|
1362
|
-
TIER_0: 3
|
|
1363
|
-
};
|
|
1364
|
-
const ConnectedAccountProviders = exports.ConnectedAccountProviders = {
|
|
1365
|
-
BATTLENET: "battlenet",
|
|
1366
|
-
BLUESKY: "bluesky",
|
|
1367
|
-
BUNGIE: "bungie",
|
|
1368
|
-
EBAY: "ebay",
|
|
1369
|
-
EPIC_GAMES: "epicgames",
|
|
1370
|
-
FACEBOOK: "facebook",
|
|
1371
|
-
GITHUB: "github",
|
|
1372
|
-
INSTAGRAM: "instagram",
|
|
1373
|
-
MASTODON: "mastodon",
|
|
1374
|
-
LEAGUE_OF_LEGENDS: "leagueoflegends",
|
|
1375
|
-
PAYPAL: "paypal",
|
|
1376
|
-
PLAYSTATION: "playstation",
|
|
1377
|
-
REDDIT: "reddit",
|
|
1378
|
-
RIOT_GAMES: "riotgames",
|
|
1379
|
-
ROBLOX: "roblox",
|
|
1380
|
-
SKYPE: "skype",
|
|
1381
|
-
SPOTIFY: "spotify",
|
|
1382
|
-
STEAM: "steam",
|
|
1383
|
-
TIKTOK: "tiktok",
|
|
1384
|
-
TWITCH: "twitch",
|
|
1385
|
-
TWITTER: "twitter",
|
|
1386
|
-
XBOX: "xbox",
|
|
1387
|
-
YOUTUBE: "youtube",
|
|
1388
|
-
DOMAIN: "domain"
|
|
1389
|
-
};
|
|
1390
|
-
const ConnectedAccountVisibility = exports.ConnectedAccountVisibility = {
|
|
1391
|
-
NONE: 0,
|
|
1392
|
-
EVERYONE: 1
|
|
1393
|
-
};
|
|
1394
|
-
const make = (httpClient, options = {}) => {
|
|
1395
|
-
const unexpectedStatus = response => Effect.flatMap(Effect.orElseSucceed(response.json, () => "Unexpected status code"), description => Effect.fail(new HttpClientError.HttpClientError({
|
|
1396
|
-
reason: new HttpClientError.StatusCodeError({
|
|
1397
|
-
request: response.request,
|
|
1398
|
-
response,
|
|
1399
|
-
description: typeof description === "string" ? description : JSON.stringify(description)
|
|
1400
|
-
})
|
|
1401
|
-
})));
|
|
1402
|
-
const withResponse = options.transformClient ? f => request => Effect.flatMap(Effect.flatMap(options.transformClient(httpClient), client => client.execute(request)), f) : f => request => Effect.flatMap(httpClient.execute(request), f);
|
|
1403
|
-
const decodeSuccess = response => response.json;
|
|
1404
|
-
const decodeVoid = _response => Effect.void;
|
|
1405
|
-
const decodeError = tag => response => Effect.flatMap(response.json, cause => Effect.fail(DiscordRestError(tag, cause, response)));
|
|
1406
|
-
const onRequest = (successCodes, errorCodes) => {
|
|
1407
|
-
const cases = {
|
|
1408
|
-
orElse: unexpectedStatus
|
|
1409
|
-
};
|
|
1410
|
-
for (const code of successCodes) {
|
|
1411
|
-
cases[code] = decodeSuccess;
|
|
1412
|
-
}
|
|
1413
|
-
if (errorCodes) {
|
|
1414
|
-
for (const [code, tag] of Object.entries(errorCodes)) {
|
|
1415
|
-
cases[code] = decodeError(tag);
|
|
1416
|
-
}
|
|
1417
|
-
}
|
|
1418
|
-
if (successCodes.length === 0) {
|
|
1419
|
-
cases["2xx"] = decodeVoid;
|
|
1420
|
-
}
|
|
1421
|
-
return withResponse(HttpClientResponse.matchStatus(cases));
|
|
1422
|
-
};
|
|
1423
|
-
return {
|
|
1424
|
-
httpClient,
|
|
1425
|
-
getMyApplication: () => HttpClientRequest.get(`/applications/@me`).pipe(onRequest(["2xx"], {
|
|
1426
|
-
"429": "RatelimitedResponse",
|
|
1427
|
-
"4xx": "ErrorResponse"
|
|
1428
|
-
})),
|
|
1429
|
-
updateMyApplication: options => HttpClientRequest.patch(`/applications/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1430
|
-
"429": "RatelimitedResponse",
|
|
1431
|
-
"4xx": "ErrorResponse"
|
|
1432
|
-
})),
|
|
1433
|
-
getApplication: applicationId => HttpClientRequest.get(`/applications/${applicationId}`).pipe(onRequest(["2xx"], {
|
|
1434
|
-
"429": "RatelimitedResponse",
|
|
1435
|
-
"4xx": "ErrorResponse"
|
|
1436
|
-
})),
|
|
1437
|
-
updateApplication: (applicationId, options) => HttpClientRequest.patch(`/applications/${applicationId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1438
|
-
"429": "RatelimitedResponse",
|
|
1439
|
-
"4xx": "ErrorResponse"
|
|
1440
|
-
})),
|
|
1441
|
-
applicationsGetActivityInstance: (applicationId, instanceId) => HttpClientRequest.get(`/applications/${applicationId}/activity-instances/${instanceId}`).pipe(onRequest(["2xx"], {
|
|
1442
|
-
"429": "RatelimitedResponse",
|
|
1443
|
-
"4xx": "ErrorResponse"
|
|
1444
|
-
})),
|
|
1445
|
-
uploadApplicationAttachment: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/attachment`).pipe(HttpClientRequest.bodyFormDataRecord(options), onRequest(["2xx"], {
|
|
1446
|
-
"429": "RatelimitedResponse",
|
|
1447
|
-
"4xx": "ErrorResponse"
|
|
1448
|
-
})),
|
|
1449
|
-
listApplicationCommands: (applicationId, options) => HttpClientRequest.get(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.setUrlParams({
|
|
1450
|
-
with_localizations: options?.["with_localizations"]
|
|
1451
|
-
}), onRequest(["2xx"], {
|
|
1452
|
-
"429": "RatelimitedResponse",
|
|
1453
|
-
"4xx": "ErrorResponse"
|
|
1454
|
-
})),
|
|
1455
|
-
bulkSetApplicationCommands: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1456
|
-
"429": "RatelimitedResponse",
|
|
1457
|
-
"4xx": "ErrorResponse"
|
|
1458
|
-
})),
|
|
1459
|
-
createApplicationCommand: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["200", "201"], {
|
|
1460
|
-
"429": "RatelimitedResponse",
|
|
1461
|
-
"4xx": "ErrorResponse"
|
|
1462
|
-
})),
|
|
1463
|
-
getApplicationCommand: (applicationId, commandId) => HttpClientRequest.get(`/applications/${applicationId}/commands/${commandId}`).pipe(onRequest(["2xx"], {
|
|
1464
|
-
"429": "RatelimitedResponse",
|
|
1465
|
-
"4xx": "ErrorResponse"
|
|
1466
|
-
})),
|
|
1467
|
-
deleteApplicationCommand: (applicationId, commandId) => HttpClientRequest.delete(`/applications/${applicationId}/commands/${commandId}`).pipe(onRequest([], {
|
|
1468
|
-
"429": "RatelimitedResponse",
|
|
1469
|
-
"4xx": "ErrorResponse"
|
|
1470
|
-
})),
|
|
1471
|
-
updateApplicationCommand: (applicationId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/commands/${commandId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1472
|
-
"429": "RatelimitedResponse",
|
|
1473
|
-
"4xx": "ErrorResponse"
|
|
1474
|
-
})),
|
|
1475
|
-
listApplicationEmojis: applicationId => HttpClientRequest.get(`/applications/${applicationId}/emojis`).pipe(onRequest(["2xx"], {
|
|
1476
|
-
"429": "RatelimitedResponse",
|
|
1477
|
-
"4xx": "ErrorResponse"
|
|
1478
|
-
})),
|
|
1479
|
-
createApplicationEmoji: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/emojis`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1480
|
-
"429": "RatelimitedResponse",
|
|
1481
|
-
"4xx": "ErrorResponse"
|
|
1482
|
-
})),
|
|
1483
|
-
getApplicationEmoji: (applicationId, emojiId) => HttpClientRequest.get(`/applications/${applicationId}/emojis/${emojiId}`).pipe(onRequest(["2xx"], {
|
|
1484
|
-
"429": "RatelimitedResponse",
|
|
1485
|
-
"4xx": "ErrorResponse"
|
|
1486
|
-
})),
|
|
1487
|
-
deleteApplicationEmoji: (applicationId, emojiId) => HttpClientRequest.delete(`/applications/${applicationId}/emojis/${emojiId}`).pipe(onRequest([], {
|
|
1488
|
-
"429": "RatelimitedResponse",
|
|
1489
|
-
"4xx": "ErrorResponse"
|
|
1490
|
-
})),
|
|
1491
|
-
updateApplicationEmoji: (applicationId, emojiId, options) => HttpClientRequest.patch(`/applications/${applicationId}/emojis/${emojiId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1492
|
-
"429": "RatelimitedResponse",
|
|
1493
|
-
"4xx": "ErrorResponse"
|
|
1494
|
-
})),
|
|
1495
|
-
getEntitlements: (applicationId, options) => HttpClientRequest.get(`/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.setUrlParams({
|
|
1496
|
-
user_id: options?.["user_id"],
|
|
1497
|
-
sku_ids: options?.["sku_ids"],
|
|
1498
|
-
guild_id: options?.["guild_id"],
|
|
1499
|
-
before: options?.["before"],
|
|
1500
|
-
after: options?.["after"],
|
|
1501
|
-
limit: options?.["limit"],
|
|
1502
|
-
exclude_ended: options?.["exclude_ended"],
|
|
1503
|
-
exclude_deleted: options?.["exclude_deleted"],
|
|
1504
|
-
only_active: options?.["only_active"]
|
|
1505
|
-
}), onRequest(["2xx"], {
|
|
1506
|
-
"429": "RatelimitedResponse",
|
|
1507
|
-
"4xx": "ErrorResponse"
|
|
1508
|
-
})),
|
|
1509
|
-
createEntitlement: (applicationId, options) => HttpClientRequest.post(`/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1510
|
-
"429": "RatelimitedResponse",
|
|
1511
|
-
"4xx": "ErrorResponse"
|
|
1512
|
-
})),
|
|
1513
|
-
getEntitlement: (applicationId, entitlementId) => HttpClientRequest.get(`/applications/${applicationId}/entitlements/${entitlementId}`).pipe(onRequest(["2xx"], {
|
|
1514
|
-
"429": "RatelimitedResponse",
|
|
1515
|
-
"4xx": "ErrorResponse"
|
|
1516
|
-
})),
|
|
1517
|
-
deleteEntitlement: (applicationId, entitlementId) => HttpClientRequest.delete(`/applications/${applicationId}/entitlements/${entitlementId}`).pipe(onRequest([], {
|
|
1518
|
-
"429": "RatelimitedResponse",
|
|
1519
|
-
"4xx": "ErrorResponse"
|
|
1520
|
-
})),
|
|
1521
|
-
consumeEntitlement: (applicationId, entitlementId) => HttpClientRequest.post(`/applications/${applicationId}/entitlements/${entitlementId}/consume`).pipe(onRequest([], {
|
|
1522
|
-
"429": "RatelimitedResponse",
|
|
1523
|
-
"4xx": "ErrorResponse"
|
|
1524
|
-
})),
|
|
1525
|
-
listGuildApplicationCommands: (applicationId, guildId, options) => HttpClientRequest.get(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.setUrlParams({
|
|
1526
|
-
with_localizations: options?.["with_localizations"]
|
|
1527
|
-
}), onRequest(["2xx"], {
|
|
1528
|
-
"429": "RatelimitedResponse",
|
|
1529
|
-
"4xx": "ErrorResponse"
|
|
1530
|
-
})),
|
|
1531
|
-
bulkSetGuildApplicationCommands: (applicationId, guildId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1532
|
-
"429": "RatelimitedResponse",
|
|
1533
|
-
"4xx": "ErrorResponse"
|
|
1534
|
-
})),
|
|
1535
|
-
createGuildApplicationCommand: (applicationId, guildId, options) => HttpClientRequest.post(`/applications/${applicationId}/guilds/${guildId}/commands`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["200", "201"], {
|
|
1536
|
-
"429": "RatelimitedResponse",
|
|
1537
|
-
"4xx": "ErrorResponse"
|
|
1538
|
-
})),
|
|
1539
|
-
listGuildApplicationCommandPermissions: (applicationId, guildId) => HttpClientRequest.get(`/applications/${applicationId}/guilds/${guildId}/commands/permissions`).pipe(onRequest(["2xx"], {
|
|
1540
|
-
"429": "RatelimitedResponse",
|
|
1541
|
-
"4xx": "ErrorResponse"
|
|
1542
|
-
})),
|
|
1543
|
-
getGuildApplicationCommand: (applicationId, guildId, commandId) => HttpClientRequest.get(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(onRequest(["2xx"], {
|
|
1544
|
-
"429": "RatelimitedResponse",
|
|
1545
|
-
"4xx": "ErrorResponse"
|
|
1546
|
-
})),
|
|
1547
|
-
deleteGuildApplicationCommand: (applicationId, guildId, commandId) => HttpClientRequest.delete(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(onRequest([], {
|
|
1548
|
-
"429": "RatelimitedResponse",
|
|
1549
|
-
"4xx": "ErrorResponse"
|
|
1550
|
-
})),
|
|
1551
|
-
updateGuildApplicationCommand: (applicationId, guildId, commandId, options) => HttpClientRequest.patch(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1552
|
-
"429": "RatelimitedResponse",
|
|
1553
|
-
"4xx": "ErrorResponse"
|
|
1554
|
-
})),
|
|
1555
|
-
getGuildApplicationCommandPermissions: (applicationId, guildId, commandId) => HttpClientRequest.get(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`).pipe(onRequest(["2xx"], {
|
|
1556
|
-
"429": "RatelimitedResponse",
|
|
1557
|
-
"4xx": "ErrorResponse"
|
|
1558
|
-
})),
|
|
1559
|
-
setGuildApplicationCommandPermissions: (applicationId, guildId, commandId, options) => HttpClientRequest.put(`/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1560
|
-
"429": "RatelimitedResponse",
|
|
1561
|
-
"4xx": "ErrorResponse"
|
|
1562
|
-
})),
|
|
1563
|
-
getApplicationRoleConnectionsMetadata: applicationId => HttpClientRequest.get(`/applications/${applicationId}/role-connections/metadata`).pipe(onRequest(["2xx"], {
|
|
1564
|
-
"429": "RatelimitedResponse",
|
|
1565
|
-
"4xx": "ErrorResponse"
|
|
1566
|
-
})),
|
|
1567
|
-
updateApplicationRoleConnectionsMetadata: (applicationId, options) => HttpClientRequest.put(`/applications/${applicationId}/role-connections/metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1568
|
-
"429": "RatelimitedResponse",
|
|
1569
|
-
"4xx": "ErrorResponse"
|
|
1570
|
-
})),
|
|
1571
|
-
getChannel: channelId => HttpClientRequest.get(`/channels/${channelId}`).pipe(onRequest(["2xx"], {
|
|
1572
|
-
"429": "RatelimitedResponse",
|
|
1573
|
-
"4xx": "ErrorResponse"
|
|
1574
|
-
})),
|
|
1575
|
-
deleteChannel: channelId => HttpClientRequest.delete(`/channels/${channelId}`).pipe(onRequest(["2xx"], {
|
|
1576
|
-
"429": "RatelimitedResponse",
|
|
1577
|
-
"4xx": "ErrorResponse"
|
|
1578
|
-
})),
|
|
1579
|
-
updateChannel: (channelId, options) => HttpClientRequest.patch(`/channels/${channelId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1580
|
-
"429": "RatelimitedResponse",
|
|
1581
|
-
"4xx": "ErrorResponse"
|
|
1582
|
-
})),
|
|
1583
|
-
followChannel: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/followers`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1584
|
-
"429": "RatelimitedResponse",
|
|
1585
|
-
"4xx": "ErrorResponse"
|
|
1586
|
-
})),
|
|
1587
|
-
listChannelInvites: channelId => HttpClientRequest.get(`/channels/${channelId}/invites`).pipe(onRequest(["2xx"], {
|
|
1588
|
-
"429": "RatelimitedResponse",
|
|
1589
|
-
"4xx": "ErrorResponse"
|
|
1590
|
-
})),
|
|
1591
|
-
createChannelInvite: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/invites`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1592
|
-
"429": "RatelimitedResponse",
|
|
1593
|
-
"4xx": "ErrorResponse"
|
|
1594
|
-
})),
|
|
1595
|
-
listMessages: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/messages`).pipe(HttpClientRequest.setUrlParams({
|
|
1596
|
-
around: options?.["around"],
|
|
1597
|
-
before: options?.["before"],
|
|
1598
|
-
after: options?.["after"],
|
|
1599
|
-
limit: options?.["limit"]
|
|
1600
|
-
}), onRequest(["2xx"], {
|
|
1601
|
-
"429": "RatelimitedResponse",
|
|
1602
|
-
"4xx": "ErrorResponse"
|
|
1603
|
-
})),
|
|
1604
|
-
createMessage: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1605
|
-
"429": "RatelimitedResponse",
|
|
1606
|
-
"4xx": "ErrorResponse"
|
|
1607
|
-
})),
|
|
1608
|
-
bulkDeleteMessages: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/bulk-delete`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1609
|
-
"429": "RatelimitedResponse",
|
|
1610
|
-
"4xx": "ErrorResponse"
|
|
1611
|
-
})),
|
|
1612
|
-
listPins: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/messages/pins`).pipe(HttpClientRequest.setUrlParams({
|
|
1613
|
-
before: options?.["before"],
|
|
1614
|
-
limit: options?.["limit"]
|
|
1615
|
-
}), onRequest(["2xx"], {
|
|
1616
|
-
"429": "RatelimitedResponse",
|
|
1617
|
-
"4xx": "ErrorResponse"
|
|
1618
|
-
})),
|
|
1619
|
-
createPin: (channelId, messageId) => HttpClientRequest.put(`/channels/${channelId}/messages/pins/${messageId}`).pipe(onRequest([], {
|
|
1620
|
-
"429": "RatelimitedResponse",
|
|
1621
|
-
"4xx": "ErrorResponse"
|
|
1622
|
-
})),
|
|
1623
|
-
deletePin: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/pins/${messageId}`).pipe(onRequest([], {
|
|
1624
|
-
"429": "RatelimitedResponse",
|
|
1625
|
-
"4xx": "ErrorResponse"
|
|
1626
|
-
})),
|
|
1627
|
-
getMessage: (channelId, messageId) => HttpClientRequest.get(`/channels/${channelId}/messages/${messageId}`).pipe(onRequest(["2xx"], {
|
|
1628
|
-
"429": "RatelimitedResponse",
|
|
1629
|
-
"4xx": "ErrorResponse"
|
|
1630
|
-
})),
|
|
1631
|
-
deleteMessage: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}`).pipe(onRequest([], {
|
|
1632
|
-
"429": "RatelimitedResponse",
|
|
1633
|
-
"4xx": "ErrorResponse"
|
|
1634
|
-
})),
|
|
1635
|
-
updateMessage: (channelId, messageId, options) => HttpClientRequest.patch(`/channels/${channelId}/messages/${messageId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1636
|
-
"429": "RatelimitedResponse",
|
|
1637
|
-
"4xx": "ErrorResponse"
|
|
1638
|
-
})),
|
|
1639
|
-
crosspostMessage: (channelId, messageId) => HttpClientRequest.post(`/channels/${channelId}/messages/${messageId}/crosspost`).pipe(onRequest(["2xx"], {
|
|
1640
|
-
"429": "RatelimitedResponse",
|
|
1641
|
-
"4xx": "ErrorResponse"
|
|
1642
|
-
})),
|
|
1643
|
-
deleteAllMessageReactions: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions`).pipe(onRequest([], {
|
|
1644
|
-
"429": "RatelimitedResponse",
|
|
1645
|
-
"4xx": "ErrorResponse"
|
|
1646
|
-
})),
|
|
1647
|
-
listMessageReactionsByEmoji: (channelId, messageId, emojiName, options) => HttpClientRequest.get(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}`).pipe(HttpClientRequest.setUrlParams({
|
|
1648
|
-
after: options?.["after"],
|
|
1649
|
-
limit: options?.["limit"],
|
|
1650
|
-
type: options?.["type"]
|
|
1651
|
-
}), onRequest(["2xx"], {
|
|
1652
|
-
"429": "RatelimitedResponse",
|
|
1653
|
-
"4xx": "ErrorResponse"
|
|
1654
|
-
})),
|
|
1655
|
-
deleteAllMessageReactionsByEmoji: (channelId, messageId, emojiName) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}`).pipe(onRequest([], {
|
|
1656
|
-
"429": "RatelimitedResponse",
|
|
1657
|
-
"4xx": "ErrorResponse"
|
|
1658
|
-
})),
|
|
1659
|
-
addMyMessageReaction: (channelId, messageId, emojiName) => HttpClientRequest.put(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/@me`).pipe(onRequest([], {
|
|
1660
|
-
"429": "RatelimitedResponse",
|
|
1661
|
-
"4xx": "ErrorResponse"
|
|
1662
|
-
})),
|
|
1663
|
-
deleteMyMessageReaction: (channelId, messageId, emojiName) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/@me`).pipe(onRequest([], {
|
|
1664
|
-
"429": "RatelimitedResponse",
|
|
1665
|
-
"4xx": "ErrorResponse"
|
|
1666
|
-
})),
|
|
1667
|
-
deleteUserMessageReaction: (channelId, messageId, emojiName, userId) => HttpClientRequest.delete(`/channels/${channelId}/messages/${messageId}/reactions/${emojiName}/${userId}`).pipe(onRequest([], {
|
|
1668
|
-
"429": "RatelimitedResponse",
|
|
1669
|
-
"4xx": "ErrorResponse"
|
|
1670
|
-
})),
|
|
1671
|
-
createThreadFromMessage: (channelId, messageId, options) => HttpClientRequest.post(`/channels/${channelId}/messages/${messageId}/threads`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1672
|
-
"429": "RatelimitedResponse",
|
|
1673
|
-
"4xx": "ErrorResponse"
|
|
1674
|
-
})),
|
|
1675
|
-
setChannelPermissionOverwrite: (channelId, overwriteId, options) => HttpClientRequest.put(`/channels/${channelId}/permissions/${overwriteId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1676
|
-
"429": "RatelimitedResponse",
|
|
1677
|
-
"4xx": "ErrorResponse"
|
|
1678
|
-
})),
|
|
1679
|
-
deleteChannelPermissionOverwrite: (channelId, overwriteId) => HttpClientRequest.delete(`/channels/${channelId}/permissions/${overwriteId}`).pipe(onRequest([], {
|
|
1680
|
-
"429": "RatelimitedResponse",
|
|
1681
|
-
"4xx": "ErrorResponse"
|
|
1682
|
-
})),
|
|
1683
|
-
deprecatedListPins: channelId => HttpClientRequest.get(`/channels/${channelId}/pins`).pipe(onRequest(["2xx"], {
|
|
1684
|
-
"429": "RatelimitedResponse",
|
|
1685
|
-
"4xx": "ErrorResponse"
|
|
1686
|
-
})),
|
|
1687
|
-
deprecatedCreatePin: (channelId, messageId) => HttpClientRequest.put(`/channels/${channelId}/pins/${messageId}`).pipe(onRequest([], {
|
|
1688
|
-
"429": "RatelimitedResponse",
|
|
1689
|
-
"4xx": "ErrorResponse"
|
|
1690
|
-
})),
|
|
1691
|
-
deprecatedDeletePin: (channelId, messageId) => HttpClientRequest.delete(`/channels/${channelId}/pins/${messageId}`).pipe(onRequest([], {
|
|
1692
|
-
"429": "RatelimitedResponse",
|
|
1693
|
-
"4xx": "ErrorResponse"
|
|
1694
|
-
})),
|
|
1695
|
-
getAnswerVoters: (channelId, messageId, answerId, options) => HttpClientRequest.get(`/channels/${channelId}/polls/${messageId}/answers/${answerId}`).pipe(HttpClientRequest.setUrlParams({
|
|
1696
|
-
after: options?.["after"],
|
|
1697
|
-
limit: options?.["limit"]
|
|
1698
|
-
}), onRequest(["2xx"], {
|
|
1699
|
-
"429": "RatelimitedResponse",
|
|
1700
|
-
"4xx": "ErrorResponse"
|
|
1701
|
-
})),
|
|
1702
|
-
pollExpire: (channelId, messageId) => HttpClientRequest.post(`/channels/${channelId}/polls/${messageId}/expire`).pipe(onRequest(["2xx"], {
|
|
1703
|
-
"429": "RatelimitedResponse",
|
|
1704
|
-
"4xx": "ErrorResponse"
|
|
1705
|
-
})),
|
|
1706
|
-
addGroupDmUser: (channelId, userId, options) => HttpClientRequest.put(`/channels/${channelId}/recipients/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1707
|
-
"429": "RatelimitedResponse",
|
|
1708
|
-
"4xx": "ErrorResponse"
|
|
1709
|
-
})),
|
|
1710
|
-
deleteGroupDmUser: (channelId, userId) => HttpClientRequest.delete(`/channels/${channelId}/recipients/${userId}`).pipe(onRequest([], {
|
|
1711
|
-
"429": "RatelimitedResponse",
|
|
1712
|
-
"4xx": "ErrorResponse"
|
|
1713
|
-
})),
|
|
1714
|
-
sendSoundboardSound: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/send-soundboard-sound`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1715
|
-
"429": "RatelimitedResponse",
|
|
1716
|
-
"4xx": "ErrorResponse"
|
|
1717
|
-
})),
|
|
1718
|
-
listThreadMembers: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/thread-members`).pipe(HttpClientRequest.setUrlParams({
|
|
1719
|
-
with_member: options?.["with_member"],
|
|
1720
|
-
limit: options?.["limit"],
|
|
1721
|
-
after: options?.["after"]
|
|
1722
|
-
}), onRequest(["2xx"], {
|
|
1723
|
-
"429": "RatelimitedResponse",
|
|
1724
|
-
"4xx": "ErrorResponse"
|
|
1725
|
-
})),
|
|
1726
|
-
joinThread: channelId => HttpClientRequest.put(`/channels/${channelId}/thread-members/@me`).pipe(onRequest([], {
|
|
1727
|
-
"429": "RatelimitedResponse",
|
|
1728
|
-
"4xx": "ErrorResponse"
|
|
1729
|
-
})),
|
|
1730
|
-
leaveThread: channelId => HttpClientRequest.delete(`/channels/${channelId}/thread-members/@me`).pipe(onRequest([], {
|
|
1731
|
-
"429": "RatelimitedResponse",
|
|
1732
|
-
"4xx": "ErrorResponse"
|
|
1733
|
-
})),
|
|
1734
|
-
getThreadMember: (channelId, userId, options) => HttpClientRequest.get(`/channels/${channelId}/thread-members/${userId}`).pipe(HttpClientRequest.setUrlParams({
|
|
1735
|
-
with_member: options?.["with_member"]
|
|
1736
|
-
}), onRequest(["2xx"], {
|
|
1737
|
-
"429": "RatelimitedResponse",
|
|
1738
|
-
"4xx": "ErrorResponse"
|
|
1739
|
-
})),
|
|
1740
|
-
addThreadMember: (channelId, userId) => HttpClientRequest.put(`/channels/${channelId}/thread-members/${userId}`).pipe(onRequest([], {
|
|
1741
|
-
"429": "RatelimitedResponse",
|
|
1742
|
-
"4xx": "ErrorResponse"
|
|
1743
|
-
})),
|
|
1744
|
-
deleteThreadMember: (channelId, userId) => HttpClientRequest.delete(`/channels/${channelId}/thread-members/${userId}`).pipe(onRequest([], {
|
|
1745
|
-
"429": "RatelimitedResponse",
|
|
1746
|
-
"4xx": "ErrorResponse"
|
|
1747
|
-
})),
|
|
1748
|
-
createThread: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/threads`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1749
|
-
"429": "RatelimitedResponse",
|
|
1750
|
-
"4xx": "ErrorResponse"
|
|
1751
|
-
})),
|
|
1752
|
-
listPrivateArchivedThreads: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/threads/archived/private`).pipe(HttpClientRequest.setUrlParams({
|
|
1753
|
-
before: options?.["before"],
|
|
1754
|
-
limit: options?.["limit"]
|
|
1755
|
-
}), onRequest(["2xx"], {
|
|
1756
|
-
"429": "RatelimitedResponse",
|
|
1757
|
-
"4xx": "ErrorResponse"
|
|
1758
|
-
})),
|
|
1759
|
-
listPublicArchivedThreads: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/threads/archived/public`).pipe(HttpClientRequest.setUrlParams({
|
|
1760
|
-
before: options?.["before"],
|
|
1761
|
-
limit: options?.["limit"]
|
|
1762
|
-
}), onRequest(["2xx"], {
|
|
1763
|
-
"429": "RatelimitedResponse",
|
|
1764
|
-
"4xx": "ErrorResponse"
|
|
1765
|
-
})),
|
|
1766
|
-
threadSearch: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/threads/search`).pipe(HttpClientRequest.setUrlParams({
|
|
1767
|
-
name: options?.["name"],
|
|
1768
|
-
slop: options?.["slop"],
|
|
1769
|
-
min_id: options?.["min_id"],
|
|
1770
|
-
max_id: options?.["max_id"],
|
|
1771
|
-
tag: options?.["tag"],
|
|
1772
|
-
tag_setting: options?.["tag_setting"],
|
|
1773
|
-
archived: options?.["archived"],
|
|
1774
|
-
sort_by: options?.["sort_by"],
|
|
1775
|
-
sort_order: options?.["sort_order"],
|
|
1776
|
-
limit: options?.["limit"],
|
|
1777
|
-
offset: options?.["offset"]
|
|
1778
|
-
}), onRequest(["2xx"], {
|
|
1779
|
-
"429": "RatelimitedResponse",
|
|
1780
|
-
"4xx": "ErrorResponse"
|
|
1781
|
-
})),
|
|
1782
|
-
triggerTypingIndicator: channelId => HttpClientRequest.post(`/channels/${channelId}/typing`).pipe(onRequest(["2xx"], {
|
|
1783
|
-
"429": "RatelimitedResponse",
|
|
1784
|
-
"4xx": "ErrorResponse"
|
|
1785
|
-
})),
|
|
1786
|
-
listMyPrivateArchivedThreads: (channelId, options) => HttpClientRequest.get(`/channels/${channelId}/users/@me/threads/archived/private`).pipe(HttpClientRequest.setUrlParams({
|
|
1787
|
-
before: options?.["before"],
|
|
1788
|
-
limit: options?.["limit"]
|
|
1789
|
-
}), onRequest(["2xx"], {
|
|
1790
|
-
"429": "RatelimitedResponse",
|
|
1791
|
-
"4xx": "ErrorResponse"
|
|
1792
|
-
})),
|
|
1793
|
-
listChannelWebhooks: channelId => HttpClientRequest.get(`/channels/${channelId}/webhooks`).pipe(onRequest(["2xx"], {
|
|
1794
|
-
"429": "RatelimitedResponse",
|
|
1795
|
-
"4xx": "ErrorResponse"
|
|
1796
|
-
})),
|
|
1797
|
-
createWebhook: (channelId, options) => HttpClientRequest.post(`/channels/${channelId}/webhooks`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1798
|
-
"429": "RatelimitedResponse",
|
|
1799
|
-
"4xx": "ErrorResponse"
|
|
1800
|
-
})),
|
|
1801
|
-
getGateway: () => HttpClientRequest.get(`/gateway`).pipe(onRequest(["2xx"], {
|
|
1802
|
-
"429": "RatelimitedResponse",
|
|
1803
|
-
"4xx": "ErrorResponse"
|
|
1804
|
-
})),
|
|
1805
|
-
getBotGateway: () => HttpClientRequest.get(`/gateway/bot`).pipe(onRequest(["2xx"], {
|
|
1806
|
-
"429": "RatelimitedResponse",
|
|
1807
|
-
"4xx": "ErrorResponse"
|
|
1808
|
-
})),
|
|
1809
|
-
getGuildTemplate: code => HttpClientRequest.get(`/guilds/templates/${code}`).pipe(onRequest(["2xx"], {
|
|
1810
|
-
"429": "RatelimitedResponse",
|
|
1811
|
-
"4xx": "ErrorResponse"
|
|
1812
|
-
})),
|
|
1813
|
-
getGuild: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}`).pipe(HttpClientRequest.setUrlParams({
|
|
1814
|
-
with_counts: options?.["with_counts"]
|
|
1815
|
-
}), onRequest(["2xx"], {
|
|
1816
|
-
"429": "RatelimitedResponse",
|
|
1817
|
-
"4xx": "ErrorResponse"
|
|
1818
|
-
})),
|
|
1819
|
-
updateGuild: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1820
|
-
"429": "RatelimitedResponse",
|
|
1821
|
-
"4xx": "ErrorResponse"
|
|
1822
|
-
})),
|
|
1823
|
-
listGuildAuditLogEntries: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/audit-logs`).pipe(HttpClientRequest.setUrlParams({
|
|
1824
|
-
user_id: options?.["user_id"],
|
|
1825
|
-
target_id: options?.["target_id"],
|
|
1826
|
-
action_type: options?.["action_type"],
|
|
1827
|
-
before: options?.["before"],
|
|
1828
|
-
after: options?.["after"],
|
|
1829
|
-
limit: options?.["limit"]
|
|
1830
|
-
}), onRequest(["2xx"], {
|
|
1831
|
-
"429": "RatelimitedResponse",
|
|
1832
|
-
"4xx": "ErrorResponse"
|
|
1833
|
-
})),
|
|
1834
|
-
listAutoModerationRules: guildId => HttpClientRequest.get(`/guilds/${guildId}/auto-moderation/rules`).pipe(onRequest(["2xx"], {
|
|
1835
|
-
"429": "RatelimitedResponse",
|
|
1836
|
-
"4xx": "ErrorResponse"
|
|
1837
|
-
})),
|
|
1838
|
-
createAutoModerationRule: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/auto-moderation/rules`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1839
|
-
"429": "RatelimitedResponse",
|
|
1840
|
-
"4xx": "ErrorResponse"
|
|
1841
|
-
})),
|
|
1842
|
-
getAutoModerationRule: (guildId, ruleId) => HttpClientRequest.get(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(onRequest(["2xx"], {
|
|
1843
|
-
"429": "RatelimitedResponse",
|
|
1844
|
-
"4xx": "ErrorResponse"
|
|
1845
|
-
})),
|
|
1846
|
-
deleteAutoModerationRule: (guildId, ruleId) => HttpClientRequest.delete(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(onRequest([], {
|
|
1847
|
-
"429": "RatelimitedResponse",
|
|
1848
|
-
"4xx": "ErrorResponse"
|
|
1849
|
-
})),
|
|
1850
|
-
updateAutoModerationRule: (guildId, ruleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/auto-moderation/rules/${ruleId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1851
|
-
"429": "RatelimitedResponse",
|
|
1852
|
-
"4xx": "ErrorResponse"
|
|
1853
|
-
})),
|
|
1854
|
-
listGuildBans: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/bans`).pipe(HttpClientRequest.setUrlParams({
|
|
1855
|
-
limit: options?.["limit"],
|
|
1856
|
-
before: options?.["before"],
|
|
1857
|
-
after: options?.["after"]
|
|
1858
|
-
}), onRequest(["2xx"], {
|
|
1859
|
-
"429": "RatelimitedResponse",
|
|
1860
|
-
"4xx": "ErrorResponse"
|
|
1861
|
-
})),
|
|
1862
|
-
getGuildBan: (guildId, userId) => HttpClientRequest.get(`/guilds/${guildId}/bans/${userId}`).pipe(onRequest(["2xx"], {
|
|
1863
|
-
"429": "RatelimitedResponse",
|
|
1864
|
-
"4xx": "ErrorResponse"
|
|
1865
|
-
})),
|
|
1866
|
-
banUserFromGuild: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1867
|
-
"429": "RatelimitedResponse",
|
|
1868
|
-
"4xx": "ErrorResponse"
|
|
1869
|
-
})),
|
|
1870
|
-
unbanUserFromGuild: (guildId, userId, options) => HttpClientRequest.delete(`/guilds/${guildId}/bans/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1871
|
-
"429": "RatelimitedResponse",
|
|
1872
|
-
"4xx": "ErrorResponse"
|
|
1873
|
-
})),
|
|
1874
|
-
bulkBanUsersFromGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/bulk-ban`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1875
|
-
"429": "RatelimitedResponse",
|
|
1876
|
-
"4xx": "ErrorResponse"
|
|
1877
|
-
})),
|
|
1878
|
-
listGuildChannels: guildId => HttpClientRequest.get(`/guilds/${guildId}/channels`).pipe(onRequest(["2xx"], {
|
|
1879
|
-
"429": "RatelimitedResponse",
|
|
1880
|
-
"4xx": "ErrorResponse"
|
|
1881
|
-
})),
|
|
1882
|
-
createGuildChannel: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1883
|
-
"429": "RatelimitedResponse",
|
|
1884
|
-
"4xx": "ErrorResponse"
|
|
1885
|
-
})),
|
|
1886
|
-
bulkUpdateGuildChannels: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
1887
|
-
"429": "RatelimitedResponse",
|
|
1888
|
-
"4xx": "ErrorResponse"
|
|
1889
|
-
})),
|
|
1890
|
-
listGuildEmojis: guildId => HttpClientRequest.get(`/guilds/${guildId}/emojis`).pipe(onRequest(["2xx"], {
|
|
1891
|
-
"429": "RatelimitedResponse",
|
|
1892
|
-
"4xx": "ErrorResponse"
|
|
1893
|
-
})),
|
|
1894
|
-
createGuildEmoji: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/emojis`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1895
|
-
"429": "RatelimitedResponse",
|
|
1896
|
-
"4xx": "ErrorResponse"
|
|
1897
|
-
})),
|
|
1898
|
-
getGuildEmoji: (guildId, emojiId) => HttpClientRequest.get(`/guilds/${guildId}/emojis/${emojiId}`).pipe(onRequest(["2xx"], {
|
|
1899
|
-
"429": "RatelimitedResponse",
|
|
1900
|
-
"4xx": "ErrorResponse"
|
|
1901
|
-
})),
|
|
1902
|
-
deleteGuildEmoji: (guildId, emojiId) => HttpClientRequest.delete(`/guilds/${guildId}/emojis/${emojiId}`).pipe(onRequest([], {
|
|
1903
|
-
"429": "RatelimitedResponse",
|
|
1904
|
-
"4xx": "ErrorResponse"
|
|
1905
|
-
})),
|
|
1906
|
-
updateGuildEmoji: (guildId, emojiId, options) => HttpClientRequest.patch(`/guilds/${guildId}/emojis/${emojiId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1907
|
-
"429": "RatelimitedResponse",
|
|
1908
|
-
"4xx": "ErrorResponse"
|
|
1909
|
-
})),
|
|
1910
|
-
listGuildIntegrations: guildId => HttpClientRequest.get(`/guilds/${guildId}/integrations`).pipe(onRequest(["2xx"], {
|
|
1911
|
-
"429": "RatelimitedResponse",
|
|
1912
|
-
"4xx": "ErrorResponse"
|
|
1913
|
-
})),
|
|
1914
|
-
deleteGuildIntegration: (guildId, integrationId) => HttpClientRequest.delete(`/guilds/${guildId}/integrations/${integrationId}`).pipe(onRequest([], {
|
|
1915
|
-
"429": "RatelimitedResponse",
|
|
1916
|
-
"4xx": "ErrorResponse"
|
|
1917
|
-
})),
|
|
1918
|
-
listGuildInvites: guildId => HttpClientRequest.get(`/guilds/${guildId}/invites`).pipe(onRequest(["2xx"], {
|
|
1919
|
-
"429": "RatelimitedResponse",
|
|
1920
|
-
"4xx": "ErrorResponse"
|
|
1921
|
-
})),
|
|
1922
|
-
listGuildMembers: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/members`).pipe(HttpClientRequest.setUrlParams({
|
|
1923
|
-
limit: options?.["limit"],
|
|
1924
|
-
after: options?.["after"]
|
|
1925
|
-
}), onRequest(["2xx"], {
|
|
1926
|
-
"429": "RatelimitedResponse",
|
|
1927
|
-
"4xx": "ErrorResponse"
|
|
1928
|
-
})),
|
|
1929
|
-
updateMyGuildMember: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1930
|
-
"429": "RatelimitedResponse",
|
|
1931
|
-
"4xx": "ErrorResponse"
|
|
1932
|
-
})),
|
|
1933
|
-
searchGuildMembers: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/members/search`).pipe(HttpClientRequest.setUrlParams({
|
|
1934
|
-
limit: options?.["limit"],
|
|
1935
|
-
query: options?.["query"]
|
|
1936
|
-
}), onRequest(["2xx"], {
|
|
1937
|
-
"429": "RatelimitedResponse",
|
|
1938
|
-
"4xx": "ErrorResponse"
|
|
1939
|
-
})),
|
|
1940
|
-
getGuildMember: (guildId, userId) => HttpClientRequest.get(`/guilds/${guildId}/members/${userId}`).pipe(onRequest(["2xx"], {
|
|
1941
|
-
"429": "RatelimitedResponse",
|
|
1942
|
-
"4xx": "ErrorResponse"
|
|
1943
|
-
})),
|
|
1944
|
-
addGuildMember: (guildId, userId, options) => HttpClientRequest.put(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1945
|
-
"429": "RatelimitedResponse",
|
|
1946
|
-
"4xx": "ErrorResponse"
|
|
1947
|
-
})),
|
|
1948
|
-
deleteGuildMember: (guildId, userId) => HttpClientRequest.delete(`/guilds/${guildId}/members/${userId}`).pipe(onRequest([], {
|
|
1949
|
-
"429": "RatelimitedResponse",
|
|
1950
|
-
"4xx": "ErrorResponse"
|
|
1951
|
-
})),
|
|
1952
|
-
updateGuildMember: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1953
|
-
"429": "RatelimitedResponse",
|
|
1954
|
-
"4xx": "ErrorResponse"
|
|
1955
|
-
})),
|
|
1956
|
-
addGuildMemberRole: (guildId, userId, roleId) => HttpClientRequest.put(`/guilds/${guildId}/members/${userId}/roles/${roleId}`).pipe(onRequest([], {
|
|
1957
|
-
"429": "RatelimitedResponse",
|
|
1958
|
-
"4xx": "ErrorResponse"
|
|
1959
|
-
})),
|
|
1960
|
-
deleteGuildMemberRole: (guildId, userId, roleId) => HttpClientRequest.delete(`/guilds/${guildId}/members/${userId}/roles/${roleId}`).pipe(onRequest([], {
|
|
1961
|
-
"429": "RatelimitedResponse",
|
|
1962
|
-
"4xx": "ErrorResponse"
|
|
1963
|
-
})),
|
|
1964
|
-
getGuildNewMemberWelcome: guildId => HttpClientRequest.get(`/guilds/${guildId}/new-member-welcome`).pipe(onRequest(["2xx"], {
|
|
1965
|
-
"429": "RatelimitedResponse",
|
|
1966
|
-
"4xx": "ErrorResponse"
|
|
1967
|
-
})),
|
|
1968
|
-
getGuildsOnboarding: guildId => HttpClientRequest.get(`/guilds/${guildId}/onboarding`).pipe(onRequest(["2xx"], {
|
|
1969
|
-
"429": "RatelimitedResponse",
|
|
1970
|
-
"4xx": "ErrorResponse"
|
|
1971
|
-
})),
|
|
1972
|
-
putGuildsOnboarding: (guildId, options) => HttpClientRequest.put(`/guilds/${guildId}/onboarding`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1973
|
-
"429": "RatelimitedResponse",
|
|
1974
|
-
"4xx": "ErrorResponse"
|
|
1975
|
-
})),
|
|
1976
|
-
getGuildPreview: guildId => HttpClientRequest.get(`/guilds/${guildId}/preview`).pipe(onRequest(["2xx"], {
|
|
1977
|
-
"429": "RatelimitedResponse",
|
|
1978
|
-
"4xx": "ErrorResponse"
|
|
1979
|
-
})),
|
|
1980
|
-
previewPruneGuild: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/prune`).pipe(HttpClientRequest.setUrlParams({
|
|
1981
|
-
days: options?.["days"],
|
|
1982
|
-
include_roles: options?.["include_roles"]
|
|
1983
|
-
}), onRequest(["2xx"], {
|
|
1984
|
-
"429": "RatelimitedResponse",
|
|
1985
|
-
"4xx": "ErrorResponse"
|
|
1986
|
-
})),
|
|
1987
|
-
pruneGuild: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/prune`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
1988
|
-
"429": "RatelimitedResponse",
|
|
1989
|
-
"4xx": "ErrorResponse"
|
|
1990
|
-
})),
|
|
1991
|
-
listGuildVoiceRegions: guildId => HttpClientRequest.get(`/guilds/${guildId}/regions`).pipe(onRequest(["2xx"], {
|
|
1992
|
-
"429": "RatelimitedResponse",
|
|
1993
|
-
"4xx": "ErrorResponse"
|
|
1994
|
-
})),
|
|
1995
|
-
listGuildRoles: guildId => HttpClientRequest.get(`/guilds/${guildId}/roles`).pipe(onRequest(["2xx"], {
|
|
1996
|
-
"429": "RatelimitedResponse",
|
|
1997
|
-
"4xx": "ErrorResponse"
|
|
1998
|
-
})),
|
|
1999
|
-
createGuildRole: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2000
|
-
"429": "RatelimitedResponse",
|
|
2001
|
-
"4xx": "ErrorResponse"
|
|
2002
|
-
})),
|
|
2003
|
-
bulkUpdateGuildRoles: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2004
|
-
"429": "RatelimitedResponse",
|
|
2005
|
-
"4xx": "ErrorResponse"
|
|
2006
|
-
})),
|
|
2007
|
-
guildRoleMemberCounts: guildId => HttpClientRequest.get(`/guilds/${guildId}/roles/member-counts`).pipe(onRequest(["2xx"], {
|
|
2008
|
-
"429": "RatelimitedResponse",
|
|
2009
|
-
"4xx": "ErrorResponse"
|
|
2010
|
-
})),
|
|
2011
|
-
getGuildRole: (guildId, roleId) => HttpClientRequest.get(`/guilds/${guildId}/roles/${roleId}`).pipe(onRequest(["2xx"], {
|
|
2012
|
-
"429": "RatelimitedResponse",
|
|
2013
|
-
"4xx": "ErrorResponse"
|
|
2014
|
-
})),
|
|
2015
|
-
deleteGuildRole: (guildId, roleId) => HttpClientRequest.delete(`/guilds/${guildId}/roles/${roleId}`).pipe(onRequest([], {
|
|
2016
|
-
"429": "RatelimitedResponse",
|
|
2017
|
-
"4xx": "ErrorResponse"
|
|
2018
|
-
})),
|
|
2019
|
-
updateGuildRole: (guildId, roleId, options) => HttpClientRequest.patch(`/guilds/${guildId}/roles/${roleId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2020
|
-
"429": "RatelimitedResponse",
|
|
2021
|
-
"4xx": "ErrorResponse"
|
|
2022
|
-
})),
|
|
2023
|
-
listGuildScheduledEvents: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/scheduled-events`).pipe(HttpClientRequest.setUrlParams({
|
|
2024
|
-
with_user_count: options?.["with_user_count"]
|
|
2025
|
-
}), onRequest(["2xx"], {
|
|
2026
|
-
"429": "RatelimitedResponse",
|
|
2027
|
-
"4xx": "ErrorResponse"
|
|
2028
|
-
})),
|
|
2029
|
-
createGuildScheduledEvent: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/scheduled-events`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2030
|
-
"429": "RatelimitedResponse",
|
|
2031
|
-
"4xx": "ErrorResponse"
|
|
2032
|
-
})),
|
|
2033
|
-
getGuildScheduledEvent: (guildId, guildScheduledEventId, options) => HttpClientRequest.get(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(HttpClientRequest.setUrlParams({
|
|
2034
|
-
with_user_count: options?.["with_user_count"]
|
|
2035
|
-
}), onRequest(["2xx"], {
|
|
2036
|
-
"429": "RatelimitedResponse",
|
|
2037
|
-
"4xx": "ErrorResponse"
|
|
2038
|
-
})),
|
|
2039
|
-
deleteGuildScheduledEvent: (guildId, guildScheduledEventId) => HttpClientRequest.delete(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(onRequest([], {
|
|
2040
|
-
"429": "RatelimitedResponse",
|
|
2041
|
-
"4xx": "ErrorResponse"
|
|
2042
|
-
})),
|
|
2043
|
-
updateGuildScheduledEvent: (guildId, guildScheduledEventId, options) => HttpClientRequest.patch(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2044
|
-
"429": "RatelimitedResponse",
|
|
2045
|
-
"4xx": "ErrorResponse"
|
|
2046
|
-
})),
|
|
2047
|
-
listGuildScheduledEventUsers: (guildId, guildScheduledEventId, options) => HttpClientRequest.get(`/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`).pipe(HttpClientRequest.setUrlParams({
|
|
2048
|
-
with_member: options?.["with_member"],
|
|
2049
|
-
limit: options?.["limit"],
|
|
2050
|
-
before: options?.["before"],
|
|
2051
|
-
after: options?.["after"]
|
|
2052
|
-
}), onRequest(["2xx"], {
|
|
2053
|
-
"429": "RatelimitedResponse",
|
|
2054
|
-
"4xx": "ErrorResponse"
|
|
2055
|
-
})),
|
|
2056
|
-
listGuildSoundboardSounds: guildId => HttpClientRequest.get(`/guilds/${guildId}/soundboard-sounds`).pipe(onRequest(["2xx"], {
|
|
2057
|
-
"429": "RatelimitedResponse",
|
|
2058
|
-
"4xx": "ErrorResponse"
|
|
2059
|
-
})),
|
|
2060
|
-
createGuildSoundboardSound: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/soundboard-sounds`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2061
|
-
"429": "RatelimitedResponse",
|
|
2062
|
-
"4xx": "ErrorResponse"
|
|
2063
|
-
})),
|
|
2064
|
-
getGuildSoundboardSound: (guildId, soundId) => HttpClientRequest.get(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(onRequest(["2xx"], {
|
|
2065
|
-
"429": "RatelimitedResponse",
|
|
2066
|
-
"4xx": "ErrorResponse"
|
|
2067
|
-
})),
|
|
2068
|
-
deleteGuildSoundboardSound: (guildId, soundId) => HttpClientRequest.delete(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(onRequest([], {
|
|
2069
|
-
"429": "RatelimitedResponse",
|
|
2070
|
-
"4xx": "ErrorResponse"
|
|
2071
|
-
})),
|
|
2072
|
-
updateGuildSoundboardSound: (guildId, soundId, options) => HttpClientRequest.patch(`/guilds/${guildId}/soundboard-sounds/${soundId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2073
|
-
"429": "RatelimitedResponse",
|
|
2074
|
-
"4xx": "ErrorResponse"
|
|
2075
|
-
})),
|
|
2076
|
-
listGuildStickers: guildId => HttpClientRequest.get(`/guilds/${guildId}/stickers`).pipe(onRequest(["2xx"], {
|
|
2077
|
-
"429": "RatelimitedResponse",
|
|
2078
|
-
"4xx": "ErrorResponse"
|
|
2079
|
-
})),
|
|
2080
|
-
createGuildSticker: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/stickers`).pipe(HttpClientRequest.bodyFormDataRecord(options), onRequest(["2xx"], {
|
|
2081
|
-
"429": "RatelimitedResponse",
|
|
2082
|
-
"4xx": "ErrorResponse"
|
|
2083
|
-
})),
|
|
2084
|
-
getGuildSticker: (guildId, stickerId) => HttpClientRequest.get(`/guilds/${guildId}/stickers/${stickerId}`).pipe(onRequest(["2xx"], {
|
|
2085
|
-
"429": "RatelimitedResponse",
|
|
2086
|
-
"4xx": "ErrorResponse"
|
|
2087
|
-
})),
|
|
2088
|
-
deleteGuildSticker: (guildId, stickerId) => HttpClientRequest.delete(`/guilds/${guildId}/stickers/${stickerId}`).pipe(onRequest([], {
|
|
2089
|
-
"429": "RatelimitedResponse",
|
|
2090
|
-
"4xx": "ErrorResponse"
|
|
2091
|
-
})),
|
|
2092
|
-
updateGuildSticker: (guildId, stickerId, options) => HttpClientRequest.patch(`/guilds/${guildId}/stickers/${stickerId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2093
|
-
"429": "RatelimitedResponse",
|
|
2094
|
-
"4xx": "ErrorResponse"
|
|
2095
|
-
})),
|
|
2096
|
-
listGuildTemplates: guildId => HttpClientRequest.get(`/guilds/${guildId}/templates`).pipe(onRequest(["2xx"], {
|
|
2097
|
-
"429": "RatelimitedResponse",
|
|
2098
|
-
"4xx": "ErrorResponse"
|
|
2099
|
-
})),
|
|
2100
|
-
createGuildTemplate: (guildId, options) => HttpClientRequest.post(`/guilds/${guildId}/templates`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2101
|
-
"429": "RatelimitedResponse",
|
|
2102
|
-
"4xx": "ErrorResponse"
|
|
2103
|
-
})),
|
|
2104
|
-
syncGuildTemplate: (guildId, code) => HttpClientRequest.put(`/guilds/${guildId}/templates/${code}`).pipe(onRequest(["2xx"], {
|
|
2105
|
-
"429": "RatelimitedResponse",
|
|
2106
|
-
"4xx": "ErrorResponse"
|
|
2107
|
-
})),
|
|
2108
|
-
deleteGuildTemplate: (guildId, code) => HttpClientRequest.delete(`/guilds/${guildId}/templates/${code}`).pipe(onRequest(["2xx"], {
|
|
2109
|
-
"429": "RatelimitedResponse",
|
|
2110
|
-
"4xx": "ErrorResponse"
|
|
2111
|
-
})),
|
|
2112
|
-
updateGuildTemplate: (guildId, code, options) => HttpClientRequest.patch(`/guilds/${guildId}/templates/${code}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2113
|
-
"429": "RatelimitedResponse",
|
|
2114
|
-
"4xx": "ErrorResponse"
|
|
2115
|
-
})),
|
|
2116
|
-
getActiveGuildThreads: guildId => HttpClientRequest.get(`/guilds/${guildId}/threads/active`).pipe(onRequest(["2xx"], {
|
|
2117
|
-
"429": "RatelimitedResponse",
|
|
2118
|
-
"4xx": "ErrorResponse"
|
|
2119
|
-
})),
|
|
2120
|
-
getGuildVanityUrl: guildId => HttpClientRequest.get(`/guilds/${guildId}/vanity-url`).pipe(onRequest(["2xx"], {
|
|
2121
|
-
"429": "RatelimitedResponse",
|
|
2122
|
-
"4xx": "ErrorResponse"
|
|
2123
|
-
})),
|
|
2124
|
-
getSelfVoiceState: guildId => HttpClientRequest.get(`/guilds/${guildId}/voice-states/@me`).pipe(onRequest(["2xx"], {
|
|
2125
|
-
"429": "RatelimitedResponse",
|
|
2126
|
-
"4xx": "ErrorResponse"
|
|
2127
|
-
})),
|
|
2128
|
-
updateSelfVoiceState: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2129
|
-
"429": "RatelimitedResponse",
|
|
2130
|
-
"4xx": "ErrorResponse"
|
|
2131
|
-
})),
|
|
2132
|
-
getVoiceState: (guildId, userId) => HttpClientRequest.get(`/guilds/${guildId}/voice-states/${userId}`).pipe(onRequest(["2xx"], {
|
|
2133
|
-
"429": "RatelimitedResponse",
|
|
2134
|
-
"4xx": "ErrorResponse"
|
|
2135
|
-
})),
|
|
2136
|
-
updateVoiceState: (guildId, userId, options) => HttpClientRequest.patch(`/guilds/${guildId}/voice-states/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2137
|
-
"429": "RatelimitedResponse",
|
|
2138
|
-
"4xx": "ErrorResponse"
|
|
2139
|
-
})),
|
|
2140
|
-
getGuildWebhooks: guildId => HttpClientRequest.get(`/guilds/${guildId}/webhooks`).pipe(onRequest(["2xx"], {
|
|
2141
|
-
"429": "RatelimitedResponse",
|
|
2142
|
-
"4xx": "ErrorResponse"
|
|
2143
|
-
})),
|
|
2144
|
-
getGuildWelcomeScreen: guildId => HttpClientRequest.get(`/guilds/${guildId}/welcome-screen`).pipe(onRequest(["2xx"], {
|
|
2145
|
-
"429": "RatelimitedResponse",
|
|
2146
|
-
"4xx": "ErrorResponse"
|
|
2147
|
-
})),
|
|
2148
|
-
updateGuildWelcomeScreen: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/welcome-screen`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2149
|
-
"429": "RatelimitedResponse",
|
|
2150
|
-
"4xx": "ErrorResponse"
|
|
2151
|
-
})),
|
|
2152
|
-
getGuildWidgetSettings: guildId => HttpClientRequest.get(`/guilds/${guildId}/widget`).pipe(onRequest(["2xx"], {
|
|
2153
|
-
"429": "RatelimitedResponse",
|
|
2154
|
-
"4xx": "ErrorResponse"
|
|
2155
|
-
})),
|
|
2156
|
-
updateGuildWidgetSettings: (guildId, options) => HttpClientRequest.patch(`/guilds/${guildId}/widget`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2157
|
-
"429": "RatelimitedResponse",
|
|
2158
|
-
"4xx": "ErrorResponse"
|
|
2159
|
-
})),
|
|
2160
|
-
getGuildWidget: guildId => HttpClientRequest.get(`/guilds/${guildId}/widget.json`).pipe(onRequest(["2xx"], {
|
|
2161
|
-
"429": "RatelimitedResponse",
|
|
2162
|
-
"4xx": "ErrorResponse"
|
|
2163
|
-
})),
|
|
2164
|
-
getGuildWidgetPng: (guildId, options) => HttpClientRequest.get(`/guilds/${guildId}/widget.png`).pipe(HttpClientRequest.setUrlParams({
|
|
2165
|
-
style: options?.["style"]
|
|
2166
|
-
}), onRequest([], {
|
|
2167
|
-
"429": "RatelimitedResponse",
|
|
2168
|
-
"4xx": "ErrorResponse"
|
|
2169
|
-
})),
|
|
2170
|
-
createInteractionResponse: (interactionId, interactionToken, options) => HttpClientRequest.post(`/interactions/${interactionId}/${interactionToken}/callback`).pipe(HttpClientRequest.setUrlParams({
|
|
2171
|
-
with_response: options.params?.["with_response"]
|
|
2172
|
-
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2173
|
-
"429": "RatelimitedResponse",
|
|
2174
|
-
"4xx": "ErrorResponse"
|
|
2175
|
-
})),
|
|
2176
|
-
inviteResolve: (code, options) => HttpClientRequest.get(`/invites/${code}`).pipe(HttpClientRequest.setUrlParams({
|
|
2177
|
-
with_counts: options?.["with_counts"],
|
|
2178
|
-
guild_scheduled_event_id: options?.["guild_scheduled_event_id"]
|
|
2179
|
-
}), onRequest(["2xx"], {
|
|
2180
|
-
"429": "RatelimitedResponse",
|
|
2181
|
-
"4xx": "ErrorResponse"
|
|
2182
|
-
})),
|
|
2183
|
-
inviteRevoke: code => HttpClientRequest.delete(`/invites/${code}`).pipe(onRequest(["2xx"], {
|
|
2184
|
-
"429": "RatelimitedResponse",
|
|
2185
|
-
"4xx": "ErrorResponse"
|
|
2186
|
-
})),
|
|
2187
|
-
getInviteTargetUsers: code => HttpClientRequest.get(`/invites/${code}/target-users`).pipe(onRequest([], {
|
|
2188
|
-
"429": "RatelimitedResponse",
|
|
2189
|
-
"4xx": "ErrorResponse"
|
|
2190
|
-
})),
|
|
2191
|
-
updateInviteTargetUsers: (code, options) => HttpClientRequest.put(`/invites/${code}/target-users`).pipe(HttpClientRequest.bodyFormDataRecord(options), onRequest([], {
|
|
2192
|
-
"429": "RatelimitedResponse",
|
|
2193
|
-
"4xx": "ErrorResponse"
|
|
2194
|
-
})),
|
|
2195
|
-
getInviteTargetUsersJobStatus: code => HttpClientRequest.get(`/invites/${code}/target-users/job-status`).pipe(onRequest(["2xx"], {
|
|
2196
|
-
"429": "RatelimitedResponse",
|
|
2197
|
-
"4xx": "ErrorResponse"
|
|
2198
|
-
})),
|
|
2199
|
-
createOrJoinLobby: options => HttpClientRequest.put(`/lobbies`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2200
|
-
"429": "RatelimitedResponse",
|
|
2201
|
-
"4xx": "ErrorResponse"
|
|
2202
|
-
})),
|
|
2203
|
-
createLobby: options => HttpClientRequest.post(`/lobbies`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2204
|
-
"429": "RatelimitedResponse",
|
|
2205
|
-
"4xx": "ErrorResponse"
|
|
2206
|
-
})),
|
|
2207
|
-
getLobby: lobbyId => HttpClientRequest.get(`/lobbies/${lobbyId}`).pipe(onRequest(["2xx"], {
|
|
2208
|
-
"429": "RatelimitedResponse",
|
|
2209
|
-
"4xx": "ErrorResponse"
|
|
2210
|
-
})),
|
|
2211
|
-
editLobby: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2212
|
-
"429": "RatelimitedResponse",
|
|
2213
|
-
"4xx": "ErrorResponse"
|
|
2214
|
-
})),
|
|
2215
|
-
editLobbyChannelLink: (lobbyId, options) => HttpClientRequest.patch(`/lobbies/${lobbyId}/channel-linking`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2216
|
-
"429": "RatelimitedResponse",
|
|
2217
|
-
"4xx": "ErrorResponse"
|
|
2218
|
-
})),
|
|
2219
|
-
leaveLobby: lobbyId => HttpClientRequest.delete(`/lobbies/${lobbyId}/members/@me`).pipe(onRequest([], {
|
|
2220
|
-
"429": "RatelimitedResponse",
|
|
2221
|
-
"4xx": "ErrorResponse"
|
|
2222
|
-
})),
|
|
2223
|
-
createLinkedLobbyGuildInviteForSelf: lobbyId => HttpClientRequest.post(`/lobbies/${lobbyId}/members/@me/invites`).pipe(onRequest(["2xx"], {
|
|
2224
|
-
"429": "RatelimitedResponse",
|
|
2225
|
-
"4xx": "ErrorResponse"
|
|
2226
|
-
})),
|
|
2227
|
-
bulkUpdateLobbyMembers: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/members/bulk`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2228
|
-
"429": "RatelimitedResponse",
|
|
2229
|
-
"4xx": "ErrorResponse"
|
|
2230
|
-
})),
|
|
2231
|
-
addLobbyMember: (lobbyId, userId, options) => HttpClientRequest.put(`/lobbies/${lobbyId}/members/${userId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2232
|
-
"429": "RatelimitedResponse",
|
|
2233
|
-
"4xx": "ErrorResponse"
|
|
2234
|
-
})),
|
|
2235
|
-
deleteLobbyMember: (lobbyId, userId) => HttpClientRequest.delete(`/lobbies/${lobbyId}/members/${userId}`).pipe(onRequest([], {
|
|
2236
|
-
"429": "RatelimitedResponse",
|
|
2237
|
-
"4xx": "ErrorResponse"
|
|
2238
|
-
})),
|
|
2239
|
-
createLinkedLobbyGuildInviteForUser: (lobbyId, userId) => HttpClientRequest.post(`/lobbies/${lobbyId}/members/${userId}/invites`).pipe(onRequest(["2xx"], {
|
|
2240
|
-
"429": "RatelimitedResponse",
|
|
2241
|
-
"4xx": "ErrorResponse"
|
|
2242
|
-
})),
|
|
2243
|
-
getLobbyMessages: (lobbyId, options) => HttpClientRequest.get(`/lobbies/${lobbyId}/messages`).pipe(HttpClientRequest.setUrlParams({
|
|
2244
|
-
limit: options?.["limit"]
|
|
2245
|
-
}), onRequest(["2xx"], {
|
|
2246
|
-
"429": "RatelimitedResponse",
|
|
2247
|
-
"4xx": "ErrorResponse"
|
|
2248
|
-
})),
|
|
2249
|
-
createLobbyMessage: (lobbyId, options) => HttpClientRequest.post(`/lobbies/${lobbyId}/messages`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2250
|
-
"429": "RatelimitedResponse",
|
|
2251
|
-
"4xx": "ErrorResponse"
|
|
2252
|
-
})),
|
|
2253
|
-
updateLobbyMessageExternalModerationMetadata: (lobbyId, messageId, options) => HttpClientRequest.put(`/lobbies/${lobbyId}/messages/${messageId}/moderation-metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2254
|
-
"429": "RatelimitedResponse",
|
|
2255
|
-
"4xx": "ErrorResponse"
|
|
2256
|
-
})),
|
|
2257
|
-
getMyOauth2Authorization: () => HttpClientRequest.get(`/oauth2/@me`).pipe(onRequest(["2xx"], {
|
|
2258
|
-
"429": "RatelimitedResponse",
|
|
2259
|
-
"4xx": "ErrorResponse"
|
|
2260
|
-
})),
|
|
2261
|
-
getMyOauth2Application: () => HttpClientRequest.get(`/oauth2/applications/@me`).pipe(onRequest(["2xx"], {
|
|
2262
|
-
"429": "RatelimitedResponse",
|
|
2263
|
-
"4xx": "ErrorResponse"
|
|
2264
|
-
})),
|
|
2265
|
-
getPublicKeys: () => HttpClientRequest.get(`/oauth2/keys`).pipe(onRequest(["2xx"], {
|
|
2266
|
-
"429": "RatelimitedResponse",
|
|
2267
|
-
"4xx": "ErrorResponse"
|
|
2268
|
-
})),
|
|
2269
|
-
getOpenidConnectUserinfo: () => HttpClientRequest.get(`/oauth2/userinfo`).pipe(onRequest(["2xx"], {
|
|
2270
|
-
"429": "RatelimitedResponse",
|
|
2271
|
-
"4xx": "ErrorResponse"
|
|
2272
|
-
})),
|
|
2273
|
-
updateUserMessageExternalModerationMetadata: (userId1, userId2, messageId, options) => HttpClientRequest.put(`/partner-sdk/dms/${userId1}/${userId2}/messages/${messageId}/moderation-metadata`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2274
|
-
"429": "RatelimitedResponse",
|
|
2275
|
-
"4xx": "ErrorResponse"
|
|
2276
|
-
})),
|
|
2277
|
-
partnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2278
|
-
"429": "RatelimitedResponse",
|
|
2279
|
-
"4xx": "ErrorResponse"
|
|
2280
|
-
})),
|
|
2281
|
-
botPartnerSdkUnmergeProvisionalAccount: options => HttpClientRequest.post(`/partner-sdk/provisional-accounts/unmerge/bot`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest([], {
|
|
2282
|
-
"429": "RatelimitedResponse",
|
|
2283
|
-
"4xx": "ErrorResponse"
|
|
2284
|
-
})),
|
|
2285
|
-
partnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2286
|
-
"429": "RatelimitedResponse",
|
|
2287
|
-
"4xx": "ErrorResponse"
|
|
2288
|
-
})),
|
|
2289
|
-
botPartnerSdkToken: options => HttpClientRequest.post(`/partner-sdk/token/bot`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2290
|
-
"429": "RatelimitedResponse",
|
|
2291
|
-
"4xx": "ErrorResponse"
|
|
2292
|
-
})),
|
|
2293
|
-
getSoundboardDefaultSounds: () => HttpClientRequest.get(`/soundboard-default-sounds`).pipe(onRequest(["2xx"], {
|
|
2294
|
-
"429": "RatelimitedResponse",
|
|
2295
|
-
"4xx": "ErrorResponse"
|
|
2296
|
-
})),
|
|
2297
|
-
createStageInstance: options => HttpClientRequest.post(`/stage-instances`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2298
|
-
"429": "RatelimitedResponse",
|
|
2299
|
-
"4xx": "ErrorResponse"
|
|
2300
|
-
})),
|
|
2301
|
-
getStageInstance: channelId => HttpClientRequest.get(`/stage-instances/${channelId}`).pipe(onRequest(["2xx"], {
|
|
2302
|
-
"429": "RatelimitedResponse",
|
|
2303
|
-
"4xx": "ErrorResponse"
|
|
2304
|
-
})),
|
|
2305
|
-
deleteStageInstance: channelId => HttpClientRequest.delete(`/stage-instances/${channelId}`).pipe(onRequest([], {
|
|
2306
|
-
"429": "RatelimitedResponse",
|
|
2307
|
-
"4xx": "ErrorResponse"
|
|
2308
|
-
})),
|
|
2309
|
-
updateStageInstance: (channelId, options) => HttpClientRequest.patch(`/stage-instances/${channelId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2310
|
-
"429": "RatelimitedResponse",
|
|
2311
|
-
"4xx": "ErrorResponse"
|
|
2312
|
-
})),
|
|
2313
|
-
listStickerPacks: () => HttpClientRequest.get(`/sticker-packs`).pipe(onRequest(["2xx"], {
|
|
2314
|
-
"429": "RatelimitedResponse",
|
|
2315
|
-
"4xx": "ErrorResponse"
|
|
2316
|
-
})),
|
|
2317
|
-
getStickerPack: packId => HttpClientRequest.get(`/sticker-packs/${packId}`).pipe(onRequest(["2xx"], {
|
|
2318
|
-
"429": "RatelimitedResponse",
|
|
2319
|
-
"4xx": "ErrorResponse"
|
|
2320
|
-
})),
|
|
2321
|
-
getSticker: stickerId => HttpClientRequest.get(`/stickers/${stickerId}`).pipe(onRequest(["2xx"], {
|
|
2322
|
-
"429": "RatelimitedResponse",
|
|
2323
|
-
"4xx": "ErrorResponse"
|
|
2324
|
-
})),
|
|
2325
|
-
getMyUser: () => HttpClientRequest.get(`/users/@me`).pipe(onRequest(["2xx"], {
|
|
2326
|
-
"429": "RatelimitedResponse",
|
|
2327
|
-
"4xx": "ErrorResponse"
|
|
2328
|
-
})),
|
|
2329
|
-
updateMyUser: options => HttpClientRequest.patch(`/users/@me`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2330
|
-
"429": "RatelimitedResponse",
|
|
2331
|
-
"4xx": "ErrorResponse"
|
|
2332
|
-
})),
|
|
2333
|
-
getCurrentUserApplicationEntitlements: (applicationId, options) => HttpClientRequest.get(`/users/@me/applications/${applicationId}/entitlements`).pipe(HttpClientRequest.setUrlParams({
|
|
2334
|
-
sku_ids: options?.["sku_ids"],
|
|
2335
|
-
exclude_consumed: options?.["exclude_consumed"]
|
|
2336
|
-
}), onRequest(["2xx"], {
|
|
2337
|
-
"429": "RatelimitedResponse",
|
|
2338
|
-
"4xx": "ErrorResponse"
|
|
2339
|
-
})),
|
|
2340
|
-
getApplicationUserRoleConnection: applicationId => HttpClientRequest.get(`/users/@me/applications/${applicationId}/role-connection`).pipe(onRequest(["2xx"], {
|
|
2341
|
-
"429": "RatelimitedResponse",
|
|
2342
|
-
"4xx": "ErrorResponse"
|
|
2343
|
-
})),
|
|
2344
|
-
updateApplicationUserRoleConnection: (applicationId, options) => HttpClientRequest.put(`/users/@me/applications/${applicationId}/role-connection`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2345
|
-
"429": "RatelimitedResponse",
|
|
2346
|
-
"4xx": "ErrorResponse"
|
|
2347
|
-
})),
|
|
2348
|
-
deleteApplicationUserRoleConnection: applicationId => HttpClientRequest.delete(`/users/@me/applications/${applicationId}/role-connection`).pipe(onRequest([], {
|
|
2349
|
-
"429": "RatelimitedResponse",
|
|
2350
|
-
"4xx": "ErrorResponse"
|
|
2351
|
-
})),
|
|
2352
|
-
createDm: options => HttpClientRequest.post(`/users/@me/channels`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2353
|
-
"429": "RatelimitedResponse",
|
|
2354
|
-
"4xx": "ErrorResponse"
|
|
2355
|
-
})),
|
|
2356
|
-
listMyConnections: () => HttpClientRequest.get(`/users/@me/connections`).pipe(onRequest(["2xx"], {
|
|
2357
|
-
"429": "RatelimitedResponse",
|
|
2358
|
-
"4xx": "ErrorResponse"
|
|
2359
|
-
})),
|
|
2360
|
-
listMyGuilds: options => HttpClientRequest.get(`/users/@me/guilds`).pipe(HttpClientRequest.setUrlParams({
|
|
2361
|
-
before: options?.["before"],
|
|
2362
|
-
after: options?.["after"],
|
|
2363
|
-
limit: options?.["limit"],
|
|
2364
|
-
with_counts: options?.["with_counts"]
|
|
2365
|
-
}), onRequest(["2xx"], {
|
|
2366
|
-
"429": "RatelimitedResponse",
|
|
2367
|
-
"4xx": "ErrorResponse"
|
|
2368
|
-
})),
|
|
2369
|
-
leaveGuild: guildId => HttpClientRequest.delete(`/users/@me/guilds/${guildId}`).pipe(onRequest([], {
|
|
2370
|
-
"429": "RatelimitedResponse",
|
|
2371
|
-
"4xx": "ErrorResponse"
|
|
2372
|
-
})),
|
|
2373
|
-
getMyGuildMember: guildId => HttpClientRequest.get(`/users/@me/guilds/${guildId}/member`).pipe(onRequest(["2xx"], {
|
|
2374
|
-
"429": "RatelimitedResponse",
|
|
2375
|
-
"4xx": "ErrorResponse"
|
|
2376
|
-
})),
|
|
2377
|
-
getUser: userId => HttpClientRequest.get(`/users/${userId}`).pipe(onRequest(["2xx"], {
|
|
2378
|
-
"429": "RatelimitedResponse",
|
|
2379
|
-
"4xx": "ErrorResponse"
|
|
2380
|
-
})),
|
|
2381
|
-
listVoiceRegions: () => HttpClientRequest.get(`/voice/regions`).pipe(onRequest(["2xx"], {
|
|
2382
|
-
"429": "RatelimitedResponse",
|
|
2383
|
-
"4xx": "ErrorResponse"
|
|
2384
|
-
})),
|
|
2385
|
-
getWebhook: webhookId => HttpClientRequest.get(`/webhooks/${webhookId}`).pipe(onRequest(["2xx"], {
|
|
2386
|
-
"429": "RatelimitedResponse",
|
|
2387
|
-
"4xx": "ErrorResponse"
|
|
2388
|
-
})),
|
|
2389
|
-
deleteWebhook: webhookId => HttpClientRequest.delete(`/webhooks/${webhookId}`).pipe(onRequest([], {
|
|
2390
|
-
"429": "RatelimitedResponse",
|
|
2391
|
-
"4xx": "ErrorResponse"
|
|
2392
|
-
})),
|
|
2393
|
-
updateWebhook: (webhookId, options) => HttpClientRequest.patch(`/webhooks/${webhookId}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2394
|
-
"429": "RatelimitedResponse",
|
|
2395
|
-
"4xx": "ErrorResponse"
|
|
2396
|
-
})),
|
|
2397
|
-
getWebhookByToken: (webhookId, webhookToken) => HttpClientRequest.get(`/webhooks/${webhookId}/${webhookToken}`).pipe(onRequest(["2xx"], {
|
|
2398
|
-
"429": "RatelimitedResponse",
|
|
2399
|
-
"4xx": "ErrorResponse"
|
|
2400
|
-
})),
|
|
2401
|
-
executeWebhook: (webhookId, webhookToken, options) => HttpClientRequest.post(`/webhooks/${webhookId}/${webhookToken}`).pipe(HttpClientRequest.setUrlParams({
|
|
2402
|
-
wait: options.params?.["wait"],
|
|
2403
|
-
thread_id: options.params?.["thread_id"],
|
|
2404
|
-
with_components: options.params?.["with_components"]
|
|
2405
|
-
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2406
|
-
"429": "RatelimitedResponse",
|
|
2407
|
-
"4xx": "ErrorResponse"
|
|
2408
|
-
})),
|
|
2409
|
-
deleteWebhookByToken: (webhookId, webhookToken) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}`).pipe(onRequest([], {
|
|
2410
|
-
"429": "RatelimitedResponse",
|
|
2411
|
-
"4xx": "ErrorResponse"
|
|
2412
|
-
})),
|
|
2413
|
-
updateWebhookByToken: (webhookId, webhookToken, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}`).pipe(HttpClientRequest.bodyJsonUnsafe(options), onRequest(["2xx"], {
|
|
2414
|
-
"429": "RatelimitedResponse",
|
|
2415
|
-
"4xx": "ErrorResponse"
|
|
2416
|
-
})),
|
|
2417
|
-
executeGithubCompatibleWebhook: (webhookId, webhookToken, options) => HttpClientRequest.post(`/webhooks/${webhookId}/${webhookToken}/github`).pipe(HttpClientRequest.setUrlParams({
|
|
2418
|
-
wait: options.params?.["wait"],
|
|
2419
|
-
thread_id: options.params?.["thread_id"]
|
|
2420
|
-
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest([], {
|
|
2421
|
-
"429": "RatelimitedResponse",
|
|
2422
|
-
"4xx": "ErrorResponse"
|
|
2423
|
-
})),
|
|
2424
|
-
getOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.get(`/webhooks/${webhookId}/${webhookToken}/messages/@original`).pipe(HttpClientRequest.setUrlParams({
|
|
2425
|
-
thread_id: options?.["thread_id"]
|
|
2426
|
-
}), onRequest(["2xx"], {
|
|
2427
|
-
"429": "RatelimitedResponse",
|
|
2428
|
-
"4xx": "ErrorResponse"
|
|
2429
|
-
})),
|
|
2430
|
-
deleteOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}/messages/@original`).pipe(HttpClientRequest.setUrlParams({
|
|
2431
|
-
thread_id: options?.["thread_id"]
|
|
2432
|
-
}), onRequest([], {
|
|
2433
|
-
"429": "RatelimitedResponse",
|
|
2434
|
-
"4xx": "ErrorResponse"
|
|
2435
|
-
})),
|
|
2436
|
-
updateOriginalWebhookMessage: (webhookId, webhookToken, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}/messages/@original`).pipe(HttpClientRequest.setUrlParams({
|
|
2437
|
-
thread_id: options.params?.["thread_id"],
|
|
2438
|
-
with_components: options.params?.["with_components"]
|
|
2439
|
-
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2440
|
-
"429": "RatelimitedResponse",
|
|
2441
|
-
"4xx": "ErrorResponse"
|
|
2442
|
-
})),
|
|
2443
|
-
getWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.get(`/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`).pipe(HttpClientRequest.setUrlParams({
|
|
2444
|
-
thread_id: options?.["thread_id"]
|
|
2445
|
-
}), onRequest(["2xx"], {
|
|
2446
|
-
"429": "RatelimitedResponse",
|
|
2447
|
-
"4xx": "ErrorResponse"
|
|
2448
|
-
})),
|
|
2449
|
-
deleteWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.delete(`/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`).pipe(HttpClientRequest.setUrlParams({
|
|
2450
|
-
thread_id: options?.["thread_id"]
|
|
2451
|
-
}), onRequest([], {
|
|
2452
|
-
"429": "RatelimitedResponse",
|
|
2453
|
-
"4xx": "ErrorResponse"
|
|
2454
|
-
})),
|
|
2455
|
-
updateWebhookMessage: (webhookId, webhookToken, messageId, options) => HttpClientRequest.patch(`/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`).pipe(HttpClientRequest.setUrlParams({
|
|
2456
|
-
thread_id: options.params?.["thread_id"],
|
|
2457
|
-
with_components: options.params?.["with_components"]
|
|
2458
|
-
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2459
|
-
"429": "RatelimitedResponse",
|
|
2460
|
-
"4xx": "ErrorResponse"
|
|
2461
|
-
})),
|
|
2462
|
-
executeSlackCompatibleWebhook: (webhookId, webhookToken, options) => HttpClientRequest.post(`/webhooks/${webhookId}/${webhookToken}/slack`).pipe(HttpClientRequest.setUrlParams({
|
|
2463
|
-
wait: options.params?.["wait"],
|
|
2464
|
-
thread_id: options.params?.["thread_id"]
|
|
2465
|
-
}), HttpClientRequest.bodyJsonUnsafe(options.payload), onRequest(["2xx"], {
|
|
2466
|
-
"429": "RatelimitedResponse",
|
|
2467
|
-
"4xx": "ErrorResponse"
|
|
2468
|
-
}))
|
|
2469
|
-
};
|
|
2470
|
-
};
|
|
2471
|
-
exports.make = make;
|
|
2472
|
-
class DiscordRestErrorImpl extends Data.Error {}
|
|
2473
|
-
const DiscordRestError = (tag, cause, response) => new DiscordRestErrorImpl({
|
|
2474
|
-
_tag: tag,
|
|
2475
|
-
cause,
|
|
2476
|
-
response,
|
|
2477
|
-
request: response.request
|
|
2478
|
-
});
|
|
2479
|
-
exports.DiscordRestError = DiscordRestError;
|
|
2480
|
-
//# sourceMappingURL=Generated.js.map
|