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

Use GuildSavedMessages events in logs. Fix code blocks in edit logs.

This commit is contained in:
Dragory 2018-11-24 17:59:05 +02:00
parent 0eee5529b6
commit 2f31579777
4 changed files with 95 additions and 37 deletions

View file

@ -42,7 +42,7 @@ export class PostPlugin extends Plugin {
}
const createdMsg = await args.channel.createMessage(args.content);
await this.savedMessages.createFromMsg(createdMsg, { is_permanent: true });
await this.savedMessages.setPermanent(createdMsg.id);
}
/**
@ -64,6 +64,5 @@ export class PostPlugin extends Plugin {
}
const edited = await this.bot.editMessage(savedMessage.channel_id, savedMessage.id, args.content);
await this.savedMessages.saveEditFromMsg(edited);
}
}