Closed tippfehlr closed 2 years ago
Add logger to constructor options, so instead of using console.log you can pass in a function that handles logging
logger
new WOKcommands(client, { ... logger: { log: (a) => log.info(a), warn: (a) => log.warn(a), error: (a) => log.error(a) } });
If nothing is supplied, standard console logging is used, so no breaking change.
Add
logger
to constructor options, so instead of using console.log you can pass in a function that handles loggingIf nothing is supplied, standard console logging is used, so no breaking change.