oceanic.js 1.2.1 → 1.2.2-dev.289a142
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/lib/gateway/Shard.js +1 -5
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/index.js +9 -3
- package/dist/lib/rest/OAuthHelper.d.ts +3 -5
- package/dist/lib/rest/OAuthHelper.js +4 -6
- package/dist/lib/routes/Interactions.d.ts +1 -1
- package/dist/lib/routes/Interactions.js +1 -1
- package/dist/lib/routes/OAuth.d.ts +3 -5
- package/dist/lib/routes/OAuth.js +4 -6
- package/dist/lib/structures/CommandInteraction.d.ts +1 -1
- package/dist/lib/structures/CommandInteraction.js +1 -1
- package/dist/lib/structures/ComponentInteraction.d.ts +10 -5
- package/dist/lib/structures/ComponentInteraction.js +14 -2
- package/dist/lib/structures/Guild.d.ts +0 -4
- package/dist/lib/structures/Guild.js +1 -12
- package/dist/lib/structures/ModalSubmitInteraction.d.ts +1 -1
- package/dist/lib/structures/ModalSubmitInteraction.js +1 -1
- package/dist/lib/structures/OAuthGuild.d.ts +25 -0
- package/dist/lib/structures/OAuthGuild.js +37 -0
- package/dist/lib/types/guilds.d.ts +9 -0
- package/dist/lib/types/json.d.ts +0 -1
- package/dist/package.json +1 -1
- package/esm.mjs +6 -0
- package/package.json +66 -66
package/esm.mjs
CHANGED
|
@@ -37,6 +37,8 @@ const Member = (await import("./dist/lib/structures/Member.js")).default.default
|
|
|
37
37
|
const Message = (await import("./dist/lib/structures/Message.js")).default.default;
|
|
38
38
|
const ModalSubmitInteraction = (await import("./dist/lib/structures/ModalSubmitInteraction.js")).default.default;
|
|
39
39
|
const OAuth = (await import("./dist/lib/routes/OAuth.js")).default.default;
|
|
40
|
+
const OAuthGuild = (await import ("./dist/lib/structures/OAuthGuild")).default.default;
|
|
41
|
+
const OAuthHelper = (await import ("./dist/lib/rest/OAuthHelper")).default.default;
|
|
40
42
|
const PartialApplication = (await import("./dist/lib/structures/PartialApplication.js")).default.default;
|
|
41
43
|
const Permission = (await import("./dist/lib/structures/Permission.js")).default.default;
|
|
42
44
|
const PermissionOverwrite = (await import("./dist/lib/structures/PermissionOverwrite.js")).default.default;
|
|
@@ -47,6 +49,7 @@ const PublicThreadChannel = (await import("./dist/lib/structures/PublicThreadCha
|
|
|
47
49
|
const RESTManager = (await import("./dist/lib/rest/RESTManager.js")).default.default;
|
|
48
50
|
const Role = (await import("./dist/lib/structures/Role.js")).default.default;
|
|
49
51
|
const Routes = (await import("./dist/lib/util/Routes.js")).default;
|
|
52
|
+
const SelectMenuValuesWrapper = (await import ("./dist/lib/util/SelectMenuValuesWrapper")).default.default;
|
|
50
53
|
const SequentialBucket = (await import("./dist/lib/rest/SequentialBucket.js")).default.default;
|
|
51
54
|
const Shard = (await import("./dist/lib/gateway/Shard.js")).default.default;
|
|
52
55
|
const ShardManager = (await import("./dist/lib/gateway/ShardManager.js")).default.default;
|
|
@@ -106,6 +109,8 @@ export {
|
|
|
106
109
|
Message,
|
|
107
110
|
ModalSubmitInteraction,
|
|
108
111
|
OAuth,
|
|
112
|
+
OAuthGuild,
|
|
113
|
+
OAuthHelper,
|
|
109
114
|
PartialApplication,
|
|
110
115
|
Permission,
|
|
111
116
|
PermissionOverwrite,
|
|
@@ -116,6 +121,7 @@ export {
|
|
|
116
121
|
RESTManager,
|
|
117
122
|
Role,
|
|
118
123
|
Routes,
|
|
124
|
+
SelectMenuValuesWrapper,
|
|
119
125
|
SequentialBucket,
|
|
120
126
|
Shard,
|
|
121
127
|
ShardManager,
|
package/package.json
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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.289a142",
|
|
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
|
}
|