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:
parent
0eee5529b6
commit
2f31579777
4 changed files with 95 additions and 37 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue