mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-18 21:47:40 +00:00
refactor: decouple system events from command dispatch and add explicit system event handlers and improve gateway handling
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ export function setDefaults<T>(original: Record<string, any>, defaults: Record<s
|
||||
export const isNil = (value: any): value is null | undefined => value === null || value === undefined;
|
||||
export const exists = <T>(value: T | null | undefined): value is NonNullable<T> => !isNil(value);
|
||||
export const isObject = (value: any): value is Record<string, any> =>
|
||||
typeof value === 'object' && !Array.isArray(value);
|
||||
value !== null && typeof value === 'object' && !Array.isArray(value);
|
||||
export const log = (...args: any[]) => {
|
||||
const LOG_LEVEL = process.env.UNICORD_LOG_LEVEL?.toLocaleLowerCase();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user