Skip to content

Commit

Permalink
fix: not found
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Feb 13, 2022
1 parent f156d4f commit b16ef97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/handlers/MessageCommandHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ export async function MessageCommandHandler(
const client = message.client as GClient;

const command = Commands.get(commandName);
if (!command && client.options?.unknownCommandMessage)
return message.reply({
if (!command)
return client.options?.unknownCommandMessage ? message.reply({
content: (await Util.getResponse('NOT_FOUND', { client })),
});
}) : null;

if (!command.type.includes(CommandType.MESSAGE)) return;

Expand Down

0 comments on commit b16ef97

Please sign in to comment.