3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

fix: no response if user only has hidden cases in !cases @user

This commit is contained in:
almeidx 2022-06-14 18:23:36 +01:00
parent d60d2bc568
commit 662d9cda26
No known key found for this signature in database
GPG key ID: C5FF0C40763546C5

View file

@ -67,6 +67,12 @@ export const CasesUserCmd = modActionsCmd({
msg.channel.send(`No cases found for **${userName}**`);
} else {
const casesToDisplay = args.hidden ? cases : normalCases;
if (!casesToDisplay.length) {
msg.channel.send(
`No normal cases found for **${userName}**. Use "-hidden" to show ${cases.length} hidden cases.`,
);
return;
}
if (args.expand) {
if (casesToDisplay.length > 8) {