refactor: Refactor interaction handling and event management
- Updated interactionCreate event to improve error handling and logging. - Enhanced ready event to ensure client user is available before proceeding. - Refactored voiceStateUpdate event for better clarity and error handling. - Adjusted index.ts to improve client initialization and command/event loading. - Improved Shoukaku event handling and initialization in ShoukakuEvents.ts. - Enhanced logger utility for better message formatting. - Updated TypeScript configuration for better compatibility and strictness. - Created a new botClient type definition for improved type safety.
This commit is contained in:
@@ -1,37 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
/* Base Options: */
|
||||
"target": "ES2020",
|
||||
"module": "commonjs",
|
||||
"lib": ["ES2020"],
|
||||
"outDir": "dist",
|
||||
"rootDir": ".",
|
||||
"strict": true,
|
||||
"noImplicitAny": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"target": "ES2022",
|
||||
"allowJs": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"resolveJsonModule": true,
|
||||
"moduleDetection": "force",
|
||||
"isolatedModules": true,
|
||||
/* Strictness */
|
||||
"strict": true,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
"checkJs": true,
|
||||
/* If NOT transpiling with TypeScript: */
|
||||
"module": "NodeNext",
|
||||
"noEmit": true,
|
||||
/* If your code runs in the DOM: */
|
||||
// "lib": ["es2022", "dom", "dom.iterable"],
|
||||
/* If your code doesn't run in the DOM: */
|
||||
"lib": ["ES2022"],
|
||||
|
||||
/* If transpiling with TypeScript: */
|
||||
"module": "CommonJS", // Use CommonJS for Node.js compatibility
|
||||
"outDir": "dist", // Output compiled JS to dist/
|
||||
"sourceMap": true, // Generate source maps
|
||||
|
||||
/* Project Structure */
|
||||
// "rootDir": "src", // Remove rootDir as include covers files outside src
|
||||
"baseUrl": ".", // Allows for path aliases if needed
|
||||
"paths": {
|
||||
"@/*": ["src/*"] // Example path alias - keep if used, adjust if needed
|
||||
}
|
||||
"declaration": true,
|
||||
"moduleResolution": "node"
|
||||
},
|
||||
"include": ["src/**/*.ts", "deploy-commands.ts", "tests/**/*.ts"], // Include source, deploy script, and tests
|
||||
"exclude": ["node_modules", "dist"] // Exclude build output and dependencies
|
||||
"include": [
|
||||
"src/**/*",
|
||||
"deploy-commands.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"dist"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user