changed almost all references of utils successMessage to this.sendSuccessMessage. Waiting on knub changes to finish this
This commit is contained in:
parent
3e974e84b3
commit
af882627a1
17 changed files with 112 additions and 120 deletions
|
@ -147,11 +147,7 @@ export class RemindersPlugin extends ZeppelinPlugin<TConfigSchema> {
|
|||
|
||||
const msUntilReminder = reminderTime.diff(now);
|
||||
const timeUntilReminder = humanizeDuration(msUntilReminder, { largest: 2, round: true });
|
||||
msg.channel.createMessage(
|
||||
successMessage(
|
||||
`I will remind you in **${timeUntilReminder}** at **${reminderTime.format("YYYY-MM-DD, HH:mm")}**`,
|
||||
),
|
||||
);
|
||||
this.sendSuccessMessage(msg.channel, `I will remind you in **${timeUntilReminder}** at **${reminderTime.format("YYYY-MM-DD, HH:mm")}**`);
|
||||
}
|
||||
|
||||
@d.command("reminders")
|
||||
|
@ -194,6 +190,6 @@ export class RemindersPlugin extends ZeppelinPlugin<TConfigSchema> {
|
|||
const toDelete = reminders[args.num - 1];
|
||||
await this.reminders.delete(toDelete.id);
|
||||
|
||||
msg.channel.createMessage(successMessage("Reminder deleted"));
|
||||
this.sendSuccessMessage(msg.channel, "Reminder deleted");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue