From d40527d0a2d9f209905750258f71bedff1cdf089 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 17 Aug 2021 12:31:09 -0400 Subject: turned on ts strict option --- src/commands/fun/minesweeper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/fun') diff --git a/src/commands/fun/minesweeper.ts b/src/commands/fun/minesweeper.ts index 2bec1e9..57909a2 100644 --- a/src/commands/fun/minesweeper.ts +++ b/src/commands/fun/minesweeper.ts @@ -118,6 +118,6 @@ export default class MinesweeperCommand extends BushCommand { returnType: 'emoji' }); const matrix = minesweeper.start(); - return await message.util.reply(matrix.toString()); + return await message.util.reply(matrix?.toString() ?? `${util.emojis.error} Something went wrong.`); } } -- cgit