@ovencord/discord.js 14.16.15-dev.1 → 14.16.17
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/package.json +10 -10
- package/src/managers/ApplicationCommandManager.ts +0 -1
- package/src/managers/ChannelManager.ts +0 -1
- package/src/managers/EntitlementManager.ts +0 -1
- package/src/managers/GuildManager.ts +0 -1
- package/src/managers/SubscriptionManager.ts +0 -1
- package/src/structures/ClientApplication.ts +5 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@ovencord/discord.js",
|
|
4
|
-
"version": "14.16.
|
|
4
|
+
"version": "14.16.17",
|
|
5
5
|
"description": "A powerful library for interacting with the Discord API",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "bun test",
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
"@sapphire/snowflake": "3.5.5",
|
|
42
42
|
"discord-api-types": "^0.38.36",
|
|
43
43
|
"fast-deep-equal": "3.1.3",
|
|
44
|
-
"@ovencord/builders": "
|
|
45
|
-
"@ovencord/collection": "
|
|
46
|
-
"@ovencord/formatters": "
|
|
47
|
-
"@ovencord/rest": "
|
|
48
|
-
"@ovencord/util": "
|
|
49
|
-
"@ovencord/ws": "
|
|
44
|
+
"@ovencord/builders": "workspace:*",
|
|
45
|
+
"@ovencord/collection": "workspace:*",
|
|
46
|
+
"@ovencord/formatters": "workspace:*",
|
|
47
|
+
"@ovencord/rest": "workspace:*",
|
|
48
|
+
"@ovencord/util": "workspace:*",
|
|
49
|
+
"@ovencord/ws": "workspace:*"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@ovencord/api-extractor": "
|
|
53
|
-
"@ovencord/docgen": "
|
|
54
|
-
"@ovencord/scripts": "
|
|
52
|
+
"@ovencord/api-extractor": "workspace:*",
|
|
53
|
+
"@ovencord/docgen": "workspace:*",
|
|
54
|
+
"@ovencord/scripts": "workspace:*",
|
|
55
55
|
"@favware/cliff-jumper": "^6.0.0",
|
|
56
56
|
"@types/bun": "latest",
|
|
57
57
|
"cross-env": "^10.1.0",
|
|
@@ -14,7 +14,6 @@ import { CachedManager } from './CachedManager.js';
|
|
|
14
14
|
* @extends {CachedManager}
|
|
15
15
|
*/
|
|
16
16
|
export class ApplicationCommandManager extends CachedManager {
|
|
17
|
-
public client: any;
|
|
18
17
|
public permissions: any;
|
|
19
18
|
constructor(client, iterable) {
|
|
20
19
|
super(client, ApplicationCommand, iterable);
|
|
@@ -24,7 +24,6 @@ let cacheWarningEmitted = false;
|
|
|
24
24
|
* @extends {CachedManager}
|
|
25
25
|
*/
|
|
26
26
|
export class GuildManager extends CachedManager {
|
|
27
|
-
public client: any;
|
|
28
27
|
constructor(client, iterable) {
|
|
29
28
|
super(client, Guild, iterable);
|
|
30
29
|
if (!cacheWarningEmitted && this._cache.constructor.name !== 'Collection') {
|
|
@@ -50,33 +50,34 @@ export class ClientApplication extends Application {
|
|
|
50
50
|
constructor(client, data) {
|
|
51
51
|
super(client, data);
|
|
52
52
|
|
|
53
|
+
// Ensure this.client is set before initializing managers
|
|
53
54
|
/**
|
|
54
55
|
* The application command manager for this application
|
|
55
56
|
*
|
|
56
57
|
* @type {ApplicationCommandManager}
|
|
57
58
|
*/
|
|
58
|
-
this.commands = new ApplicationCommandManager(
|
|
59
|
+
this.commands = new ApplicationCommandManager(client, undefined);
|
|
59
60
|
|
|
60
61
|
/**
|
|
61
62
|
* The application emoji manager for this application
|
|
62
63
|
*
|
|
63
64
|
* @type {ApplicationEmojiManager}
|
|
64
65
|
*/
|
|
65
|
-
this.emojis = new ApplicationEmojiManager(this);
|
|
66
|
+
this.emojis = new ApplicationEmojiManager(this, undefined);
|
|
66
67
|
|
|
67
68
|
/**
|
|
68
69
|
* The entitlement manager for this application
|
|
69
70
|
*
|
|
70
71
|
* @type {EntitlementManager}
|
|
71
72
|
*/
|
|
72
|
-
this.entitlements = new EntitlementManager(
|
|
73
|
+
this.entitlements = new EntitlementManager(client, undefined);
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
76
|
* The subscription manager for this application
|
|
76
77
|
*
|
|
77
78
|
* @type {SubscriptionManager}
|
|
78
79
|
*/
|
|
79
|
-
this.subscriptions = new SubscriptionManager(
|
|
80
|
+
this.subscriptions = new SubscriptionManager(client, undefined);
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
_patch(data) {
|