CleanupMessages: Handle missing permissions for local testing

This commit is contained in:
2026-01-17 18:15:06 +01:00
parent 00210a03cf
commit 333f3d94bf

View File

@@ -22,7 +22,9 @@ module.exports = {
return false;
}
for (let i = 0; i < channelConfigs.length; i++) {
try {
const config = channelConfigs[i];
const channel = await client.channels.fetch(config.channelId);
@@ -50,6 +52,9 @@ module.exports = {
message.delete();
});
});
} catch (error) {
console.log(`[CLEANUP] Failed for ${channelConfigs[i].channelId}`);
}
}
},
};