oceanic.js 1.2.1 → 1.2.2-dev.2b2ca65

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.
@@ -30,7 +30,7 @@ export default class Interactions {
30
30
  */
31
31
  deleteFollowupMessage(applicationID: string, interactionToken: string, messageID: string): Promise<void>;
32
32
  /**
33
- * Delete the original interaction response. Does not work with ephemeral messages.
33
+ * Delete the original interaction response.
34
34
  * @param applicationID The ID of the application.
35
35
  * @param interactionToken The token of the interaction.
36
36
  */
@@ -85,7 +85,7 @@ class Interactions {
85
85
  await this.#manager.webhooks.deleteMessage(applicationID, interactionToken, messageID);
86
86
  }
87
87
  /**
88
- * Delete the original interaction response. Does not work with ephemeral messages.
88
+ * Delete the original interaction response.
89
89
  * @param applicationID The ID of the application.
90
90
  * @param interactionToken The token of the interaction.
91
91
  */
@@ -66,7 +66,7 @@ export default class CommandInteraction<T extends AnyTextChannelWithoutGroup | U
66
66
  */
67
67
  deleteFollowup(messageID: string): Promise<void>;
68
68
  /**
69
- * Delete the original interaction response. Does not work with ephemeral messages.
69
+ * Delete the original interaction response.
70
70
  */
71
71
  deleteOriginal(): Promise<void>;
72
72
  /**
@@ -180,7 +180,7 @@ class CommandInteraction extends Interaction_1.default {
180
180
  return this.client.rest.interactions.deleteFollowupMessage(this.applicationID, this.token, messageID);
181
181
  }
182
182
  /**
183
- * Delete the original interaction response. Does not work with ephemeral messages.
183
+ * Delete the original interaction response.
184
184
  */
185
185
  async deleteOriginal() {
186
186
  return this.client.rest.interactions.deleteOriginalMessage(this.applicationID, this.token);
@@ -73,7 +73,7 @@ export default class ComponentInteraction<T extends AnyTextChannelWithoutGroup |
73
73
  */
74
74
  deleteFollowup(messageID: string): Promise<void>;
75
75
  /**
76
- * Delete the original interaction response. Does not work with ephemeral messages.
76
+ * Delete the original interaction response.
77
77
  */
78
78
  deleteOriginal(): Promise<void>;
79
79
  /**
@@ -180,7 +180,7 @@ class ComponentInteraction extends Interaction_1.default {
180
180
  return this.client.rest.interactions.deleteFollowupMessage(this.applicationID, this.token, messageID);
181
181
  }
182
182
  /**
183
- * Delete the original interaction response. Does not work with ephemeral messages.
183
+ * Delete the original interaction response.
184
184
  */
185
185
  async deleteOriginal() {
186
186
  return this.client.rest.interactions.deleteOriginalMessage(this.applicationID, this.token);
@@ -66,7 +66,7 @@ export default class ModalSubmitInteraction<T extends AnyTextChannelWithoutGroup
66
66
  */
67
67
  deleteFollowup(messageID: string): Promise<void>;
68
68
  /**
69
- * Delete the original interaction response. Does not work with ephemeral messages.
69
+ * Delete the original interaction response.
70
70
  */
71
71
  deleteOriginal(): Promise<void>;
72
72
  /**
@@ -108,7 +108,7 @@ class ModalSubmitInteraction extends Interaction_1.default {
108
108
  return this.client.rest.interactions.deleteFollowupMessage(this.applicationID, this.token, messageID);
109
109
  }
110
110
  /**
111
- * Delete the original interaction response. Does not work with ephemeral messages.
111
+ * Delete the original interaction response.
112
112
  */
113
113
  async deleteOriginal() {
114
114
  return this.client.rest.interactions.deleteOriginalMessage(this.applicationID, this.token);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oceanic.js",
3
- "version": "1.2.1",
3
+ "version": "1.2.2-dev.2b2ca65",
4
4
  "description": "A NodeJS library for interfacing with Discord.",
5
5
  "main": "./dist/lib/index.js",
6
6
  "types": "./dist/lib/index.d.ts",
package/package.json CHANGED
@@ -1,69 +1,69 @@
1
1
  {
2
- "name": "oceanic.js",
3
- "version": "1.2.1",
4
- "description": "A NodeJS library for interfacing with Discord.",
5
- "main": "./dist/lib/index.js",
6
- "types": "./dist/lib/index.d.ts",
7
- "module": "./esm.mjs",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/lib/index.d.ts",
11
- "require": "./dist/lib/index.js",
12
- "import": "./esm.mjs"
13
- }
14
- },
15
- "scripts": {
16
- "lint": "eslint lib --ext .ts",
17
- "lint:fix": "eslint lib --ext .ts --fix",
18
- "prepublishOnly": "node scripts/build",
19
- "test:build": "npm run prepublishOnly",
20
- "test:esm": "node --no-warnings --no-deprecation --experimental-specifier-resolution=node esm.mjs",
21
- "test:docs": "npm i --no-save --ignore-scripts typedoc typedoc-plugin-extras typedoc-plugin-rename-defaults && node scripts/doc-test.js && npx --yes typedoc"
22
- },
23
- "repository": {
24
- "type": "git",
25
- "url": "git+https://github.com/OceanicJS/Oceanic.git"
26
- },
27
- "keywords": [
28
- "discord",
29
- "library",
30
- "discord-api",
31
- "api"
32
- ],
33
- "author": "Donovan Daniels <hewwo@yiff.rocks>",
34
- "contributors": [
35
- "Nuckyz (https://github.com/Nuckyz)"
36
- ],
37
- "license": "MIT",
38
- "bugs": {
39
- "url": "https://github.com/OceanicJS/Oceanic/issues"
40
- },
41
- "homepage": "https://github.com/OceanicJS/Oceanic#readme",
42
- "devDependencies": {
43
- "@favware/npm-deprecate": "^1.0.5",
44
- "@types/node": "^18.11.0",
45
- "@types/pako": "^2.0.0",
46
- "@types/ws": "^8.5.3",
47
- "@typescript-eslint/eslint-plugin": "^5.40.1",
48
- "@typescript-eslint/parser": "^5.40.1",
49
- "eslint": "^8.25.0",
50
- "eslint-plugin-import": "^2.26.0",
51
- "eslint-plugin-import-newlines": "^1.2.3",
52
- "eslint-plugin-jsdoc": "^39.3.13",
53
- "eslint-plugin-json": "^3.1.0",
54
- "eslint-plugin-prefer-arrow": "^1.2.3",
55
- "eslint-plugin-unicorn": "^44.0.2",
56
- "eslint-plugin-unused-imports": "^2.0.0",
57
- "typescript": "^4.8.4"
58
- },
59
- "dependencies": {
60
- "undici": "^5.11.0",
61
- "ws": "^8.9.0"
62
- },
63
- "engines": {
64
- "node": ">=16.16.0"
65
- },
66
- "optionalDependencies": {
67
- "@discordjs/voice": "^0.13.0"
2
+ "name": "oceanic.js",
3
+ "version": "1.2.2-dev.2b2ca65",
4
+ "description": "A NodeJS library for interfacing with Discord.",
5
+ "main": "./dist/lib/index.js",
6
+ "types": "./dist/lib/index.d.ts",
7
+ "module": "./esm.mjs",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/lib/index.d.ts",
11
+ "require": "./dist/lib/index.js",
12
+ "import": "./esm.mjs"
68
13
  }
14
+ },
15
+ "scripts": {
16
+ "lint": "eslint lib --ext .ts",
17
+ "lint:fix": "eslint lib --ext .ts --fix",
18
+ "prepublishOnly": "node scripts/build",
19
+ "test:build": "npm run prepublishOnly",
20
+ "test:esm": "node --no-warnings --no-deprecation --experimental-specifier-resolution=node esm.mjs",
21
+ "test:docs": "npm i --no-save --ignore-scripts typedoc typedoc-plugin-extras typedoc-plugin-rename-defaults && node scripts/doc-test.js && npx --yes typedoc"
22
+ },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/OceanicJS/Oceanic.git"
26
+ },
27
+ "keywords": [
28
+ "discord",
29
+ "library",
30
+ "discord-api",
31
+ "api"
32
+ ],
33
+ "author": "Donovan Daniels <hewwo@yiff.rocks>",
34
+ "contributors": [
35
+ "Nuckyz (https://github.com/Nuckyz)"
36
+ ],
37
+ "license": "MIT",
38
+ "bugs": {
39
+ "url": "https://github.com/OceanicJS/Oceanic/issues"
40
+ },
41
+ "homepage": "https://github.com/OceanicJS/Oceanic#readme",
42
+ "devDependencies": {
43
+ "@favware/npm-deprecate": "^1.0.5",
44
+ "@types/node": "^18.11.0",
45
+ "@types/pako": "^2.0.0",
46
+ "@types/ws": "^8.5.3",
47
+ "@typescript-eslint/eslint-plugin": "^5.40.1",
48
+ "@typescript-eslint/parser": "^5.40.1",
49
+ "eslint": "^8.25.0",
50
+ "eslint-plugin-import": "^2.26.0",
51
+ "eslint-plugin-import-newlines": "^1.2.3",
52
+ "eslint-plugin-jsdoc": "^39.3.13",
53
+ "eslint-plugin-json": "^3.1.0",
54
+ "eslint-plugin-prefer-arrow": "^1.2.3",
55
+ "eslint-plugin-unicorn": "^44.0.2",
56
+ "eslint-plugin-unused-imports": "^2.0.0",
57
+ "typescript": "^4.8.4"
58
+ },
59
+ "dependencies": {
60
+ "undici": "^5.11.0",
61
+ "ws": "^8.9.0"
62
+ },
63
+ "engines": {
64
+ "node": ">=16.16.0"
65
+ },
66
+ "optionalDependencies": {
67
+ "@discordjs/voice": "^0.13.0"
68
+ }
69
69
  }