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

ModActions: show username in 'no cases found' response

This commit is contained in:
Dragory 2019-01-12 12:19:29 +02:00
parent 21a65f8cf4
commit e69390c5f4

View file

@ -893,7 +893,7 @@ export class ModActionsPlugin extends ZeppelinPlugin {
const prefix = this.knub.getGuildData(this.guildId).config.prefix;
if (cases.length === 0) {
msg.channel.createMessage("No cases found for the specified user!");
msg.channel.createMessage(`No cases found for ${user ? `**${userName}**` : 'the specified user'}`);
} else {
if (args.expanded && args.expanded.startsWith("expand")) {
if (cases.length > 8) {