forked from syntaxbullet/AuroraBot-discord
feat(lib): add loader types for command/event loading
- Add LoadResult interface to track loading statistics - Add LoadError interface for structured error reporting - Foundation for modular loader architecture
This commit is contained in:
16
src/lib/loaders/types.ts
Normal file
16
src/lib/loaders/types.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Result of loading commands or events
|
||||
*/
|
||||
export interface LoadResult {
|
||||
loaded: number;
|
||||
skipped: number;
|
||||
errors: LoadError[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Error that occurred during loading
|
||||
*/
|
||||
export interface LoadError {
|
||||
file: string;
|
||||
error: unknown;
|
||||
}
|
||||
Reference in New Issue
Block a user