3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-07 02:57:20 +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 1a6e680d81
commit 2c8603ca70
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);
}
}