forked from Galactic/modmail
dingus
This commit is contained in:
parent
62d5eaae5c
commit
21a96ea481
@ -19,7 +19,7 @@ class Eval extends Command {
|
||||
|
||||
try {
|
||||
let evaled = eval(clean); // eslint-disable-line no-eval
|
||||
if (evaled instanceof Promise) await evaled;
|
||||
if (evaled instanceof Promise) evaled = await evaled;
|
||||
if (typeof evaled !== 'string') evaled = inspect(evaled);
|
||||
|
||||
evaled = evaled
|
||||
|
Loading…
Reference in New Issue
Block a user