feat(economy): update content creation documentation and improve editor validation
This commit is contained in:
@@ -456,6 +456,7 @@ async function processConfigVariables(config: any, user: any, guild: any, userSt
|
||||
if (Array.isArray(config)) {
|
||||
const processedArray = [];
|
||||
for (const item of config) {
|
||||
// @ts-ignore
|
||||
processedArray.push(await processConfigVariables(item, user, guild, userStats, inviteObject));
|
||||
}
|
||||
return processedArray;
|
||||
|
||||
@@ -28,10 +28,7 @@ bot.on(Events.ClientReady, () => {
|
||||
process.on('unhandledRejection', (reason: unknown) => {
|
||||
// Interceptar rechazos relacionados con el mismo bug
|
||||
if (reason &&
|
||||
typeof reason === 'object' &&
|
||||
reason !== null &&
|
||||
'message' in reason &&
|
||||
typeof (reason as any).message === 'string' &&
|
||||
typeof reason === 'object' && 'message' in reason && typeof (reason as any).message === 'string' &&
|
||||
(reason as any).message.includes("Cannot read properties of undefined (reading 'id')")) {
|
||||
|
||||
logger.warn('🔧 Discord.js promise rejection interceptada: GuildMemberManager error');
|
||||
|
||||
Reference in New Issue
Block a user