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

ModActions: allow 'e' as an alias for 'expand' in !cases

This commit is contained in:
Dragory 2019-03-20 00:35:46 +02:00
parent cb7904ef81
commit dad7717688

View file

@ -1143,7 +1143,7 @@ export class ModActionsPlugin extends ZeppelinPlugin<IModActionsPluginConfig, IM
const showHidden = args.opts && args.opts.match(/\bhidden\b/);
const casesToDisplay = showHidden ? cases : normalCases;
if (args.opts && args.opts.match(/\bexpand\b/)) {
if (args.opts && args.opts.match(/\b(expand|e)\b/)) {
if (casesToDisplay.length > 8) {
msg.channel.createMessage("Too many cases for expanded view. Please use compact view instead.");
return;