aboutsummaryrefslogtreecommitdiff
path: root/src/bot.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/bot.ts')
-rw-r--r--src/bot.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bot.ts b/src/bot.ts
index 4ddbfcb..de59ed2 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -91,7 +91,7 @@ export default class {
await handler.execute(msg, args);
} catch (error) {
debug(error);
- await msg.channel.send(errorMsg(error.message.toLowerCase()));
+ await msg.channel.send(errorMsg((error as Error).message.toLowerCase()));
}
});