dfx 0.21.13 → 0.21.14

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/README.md CHANGED
@@ -8,15 +8,18 @@ A Discord library built on top of @effect/io
8
8
  ## Example
9
9
 
10
10
  ```typescript
11
+ import * as Config from "@effect/io/Config"
11
12
  import * as Effect from "@effect/io/Effect"
12
13
  import { pipe } from "@fp-ts/data/Function"
13
14
  import { Ix } from "dfx"
14
15
  import { runIx, make } from "dfx/gateway"
15
16
 
16
17
  // Create the dependencies layer
17
- const Dependencies = make({
18
- token: "xxx",
19
- })
18
+ const Dependencies = make(
19
+ Config.struct({
20
+ token: Config.string("DISCORD_BOT_TOKEN"),
21
+ }),
22
+ )
20
23
 
21
24
  // Create hello command that responds with "Hello!"
22
25
  const hello = Ix.global(
package/global.d.ts CHANGED
@@ -9,7 +9,7 @@ import { pipe, flow, identity } from "@fp-ts/data/Function";
9
9
  /**
10
10
  * @tsplus global
11
11
  */
12
- import { DiscordConfig, RateLimiter, Log, DiscordREST, BucketDetails, FetchError, Http, JsonParseError, RateLimitStore, StatusCodeError, Flags, Members, IxHelpers, } from "dfx";
12
+ import { DiscordConfig, RateLimiter, Log, DiscordREST, BucketDetails, FetchError, Http, Intents, Ix, JsonParseError, RateLimitStore, StatusCodeError, Flags, Members, IxHelpers, Perms, } from "dfx";
13
13
  /**
14
14
  * @tsplus global
15
15
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfx",
3
- "version": "0.21.13",
3
+ "version": "0.21.14",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@tim-smart/discord-api-docs-parser": "^0.5.0",
30
- "@types/ws": "^8.5.3",
31
- "lerna": "^6.1.0",
30
+ "@types/ws": "^8.5.4",
31
+ "lerna": "^6.4.0",
32
32
  "typescript": "https://cdn.jsdelivr.net/npm/@tsplus/installer@0.0.163/compiler/typescript.tgz"
33
33
  },
34
34
  "dependencies": {
@@ -41,8 +41,8 @@
41
41
  "bufferutil": "^4.0.7",
42
42
  "isomorphic-ws": "^5.0.0",
43
43
  "utf-8-validate": "^5.0.10",
44
- "ws": "^8.11.0"
44
+ "ws": "^8.12.0"
45
45
  },
46
46
  "sideEffects": false,
47
- "gitHead": "9175ffe72430bb62c81d99c74319aa3a3ac55cfe"
47
+ "gitHead": "f90039bfab9a7d39a424647f9d5863b8f5f23d0b"
48
48
  }