Skip to content

Commit

Permalink
Detect group as null if not present.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pickysaurus committed Oct 29, 2024
1 parent 53094d3 commit d017b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactions/automod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async function action(client: ClientExt, baseInteraction: CommandInteraction): P
default: throw new Error('Subcommand not implemented: '+command)
}
}
else if (commandGroup === undefined && command === 'report') return showReport(client, interaction);
else if (commandGroup === null && command === 'report') return showReport(client, interaction);
else throw new Error(`Unrecognised command - Group: ${commandGroup} Command: ${command}`);
}

Expand Down

0 comments on commit d017b42

Please sign in to comment.