refactor: use the node: protocol (#6710)

This commit is contained in:
Almeida
2021-10-02 12:40:02 +01:00
committed by GitHub
parent 466e796a1d
commit 531b46c60d
17 changed files with 28 additions and 28 deletions

View File

@@ -36,7 +36,7 @@ const commands = {
let res;
try {
res = eval(message.content);
if (typeof res !== 'string') res = require('util').inspect(res);
if (typeof res !== 'string') res = require('node:util').inspect(res);
} catch (err) {
// eslint-disable-next-line no-console
console.error(err.stack);