@stelliajs/framework 1.5.8 → 1.5.9
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.
|
@@ -15,10 +15,10 @@ export class StelliaClient extends Client {
|
|
|
15
15
|
this.environment = stelliaOptions.environment;
|
|
16
16
|
}
|
|
17
17
|
process.on("unhandledRejection", (error) => {
|
|
18
|
-
logger.
|
|
18
|
+
logger.errorWithInformation("Unhandled promise rejection", error);
|
|
19
19
|
});
|
|
20
20
|
process.on("uncaughtException", (error) => {
|
|
21
|
-
logger.
|
|
21
|
+
logger.errorWithInformation("Uncaught exception", error);
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
static async create(clientOptions, stelliaOptions) {
|
|
@@ -37,7 +37,7 @@ export class StelliaUtils {
|
|
|
37
37
|
logger.success("Application commands registered successfully");
|
|
38
38
|
}
|
|
39
39
|
catch (error) {
|
|
40
|
-
logger.
|
|
40
|
+
logger.errorWithInformation("Error while registering application commands", error);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
};
|
|
@@ -72,7 +72,7 @@ export class StelliaUtils {
|
|
|
72
72
|
logger.success("Guilds configuration loaded successfully for interactions");
|
|
73
73
|
}
|
|
74
74
|
catch (error) {
|
|
75
|
-
logger.
|
|
75
|
+
logger.errorWithInformation("Error while loading guilds configuration", error);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -97,7 +97,7 @@ export class StelliaUtils {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
catch (error) {
|
|
100
|
-
logger.
|
|
100
|
+
logger.errorWithInformation("Error while handling autocomplete interaction", error);
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
handleButtonInteraction = async (interaction) => {
|
|
@@ -124,7 +124,7 @@ export class StelliaUtils {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
catch (error) {
|
|
127
|
-
logger.
|
|
127
|
+
logger.errorWithInformation("Error while handling button interaction", error);
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
130
|
handleCommandInteraction = async (interaction) => {
|
|
@@ -150,7 +150,7 @@ export class StelliaUtils {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
catch (error) {
|
|
153
|
-
logger.
|
|
153
|
+
logger.errorWithInformation("Error while handling command interaction", error);
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
handleContextMenuInteraction = async (interaction) => {
|
|
@@ -166,7 +166,7 @@ export class StelliaUtils {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
catch (error) {
|
|
169
|
-
logger.
|
|
169
|
+
logger.errorWithInformation("Error while handling context menu interaction", error);
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
172
|
handleModalInteraction = async (interaction) => {
|
|
@@ -193,7 +193,7 @@ export class StelliaUtils {
|
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
catch (error) {
|
|
196
|
-
logger.
|
|
196
|
+
logger.errorWithInformation("Error while handling modal interaction", error);
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
handleSelectMenuInteraction = async (interaction) => {
|
|
@@ -220,7 +220,7 @@ export class StelliaUtils {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
catch (error) {
|
|
223
|
-
logger.
|
|
223
|
+
logger.errorWithInformation("Error while handling select menu interaction", error);
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
handleMessageContextMenuInteraction = async (interaction) => {
|
|
@@ -245,7 +245,7 @@ export class StelliaUtils {
|
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
catch (error) {
|
|
248
|
-
logger.
|
|
248
|
+
logger.errorWithInformation("Error while handling message context menu interaction", error);
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
251
|
handleUserContextMenuInteraction = async (interaction) => {
|
|
@@ -270,7 +270,7 @@ export class StelliaUtils {
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
catch (error) {
|
|
273
|
-
logger.
|
|
273
|
+
logger.errorWithInformation("Error while handling user context menu interaction", error);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
getInteractionType(interaction) {
|
|
@@ -104,7 +104,7 @@ export class EventManager extends BaseManager {
|
|
|
104
104
|
logger.success("Guilds configuration loaded successfully for events");
|
|
105
105
|
}
|
|
106
106
|
catch (error) {
|
|
107
|
-
logger.
|
|
107
|
+
logger.errorWithInformation("Error while loading guilds configuration", error);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
}
|
package/dist/utils/logger.d.ts
CHANGED
package/dist/utils/logger.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stelliajs/framework",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.9",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"discord.js": "^14.
|
|
27
|
-
"i18next": "^25.
|
|
26
|
+
"discord.js": "^14.25.1",
|
|
27
|
+
"i18next": "^25.7.2",
|
|
28
28
|
"log-symbols": "^7.0.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@eslint/js": "^9.
|
|
31
|
+
"@eslint/js": "^9.39.1",
|
|
32
32
|
"eslint-config-prettier": "^10.1.8",
|
|
33
33
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
34
34
|
"eslint-plugin-import": "^2.32.0",
|
|
35
|
-
"prettier": "^3.
|
|
35
|
+
"prettier": "^3.7.4",
|
|
36
36
|
"tsc-alias": "^1.8.16",
|
|
37
|
-
"typescript-eslint": "^8.
|
|
37
|
+
"typescript-eslint": "^8.49.0"
|
|
38
38
|
},
|
|
39
39
|
"type": "module",
|
|
40
|
-
"packageManager": "pnpm@10.
|
|
40
|
+
"packageManager": "pnpm@10.24.0"
|
|
41
41
|
}
|