3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 23:25:02 +00:00

Add support for hiding cases with !hidecase

This commit is contained in:
Dragory 2019-01-13 17:56:14 +02:00
parent ab71481b8f
commit 8de31844d5
6 changed files with 105 additions and 13 deletions

View file

@ -180,6 +180,10 @@ export class CasesPlugin extends ZeppelinPlugin {
]
};
if (theCase.is_hidden) {
embed.title += " (hidden)";
}
if (CaseTypeColors[theCase.type]) {
embed.color = CaseTypeColors[theCase.type];
}