3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-19 16:05:01 +00:00

changed almost all references of utils successMessage to this.sendSuccessMessage. Waiting on knub changes to finish this

This commit is contained in:
roflmaoqwerty 2020-01-11 00:39:32 +11:00
parent 6a85ff6528
commit f819b17075
17 changed files with 112 additions and 120 deletions

View file

@ -108,14 +108,9 @@ export class MessageSaverPlugin extends ZeppelinPlugin<TConfigSchema> {
const { savedCount, failed } = await this.saveMessagesToDB(args.channel, args.ids);
if (failed.length) {
msg.channel.createMessage(
successMessage(
`Saved ${savedCount} messages. The following messages could not be saved: ${failed.join(", ")}
`,
),
);
this.sendSuccessMessage(msg.channel, `Saved ${savedCount} messages. The following messages could not be saved: ${failed.join(", ")}`);
} else {
msg.channel.createMessage(successMessage(`Saved ${savedCount} messages!`));
this.sendSuccessMessage(msg.channel, `Saved ${savedCount} messages!`);
}
}
@ -131,14 +126,10 @@ export class MessageSaverPlugin extends ZeppelinPlugin<TConfigSchema> {
);
if (failed.length) {
msg.channel.createMessage(
successMessage(
`Saved ${savedCount} messages. The following messages could not be saved: ${failed.join(", ")}
`,
),
);
} else {
msg.channel.createMessage(successMessage(`Saved ${savedCount} messages!`));
this.sendSuccessMessage(msg.channel, `Saved ${savedCount} messages. The following messages could not be saved: ${failed.join(", ")}`);
}
else {
this.sendSuccessMessage(msg.channel, `Saved ${savedCount} messages!`);
}
}
}