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

Show attachments in message deletion logs

This commit is contained in:
Dragory 2018-12-15 17:15:32 +02:00
parent 0431b3c225
commit 62afd8e8e6
3 changed files with 14 additions and 3 deletions

View file

@ -229,6 +229,10 @@ export function disableCodeBlocks(content: string): string {
return content.replace(/`/g, "`\u200b");
}
export function useMediaUrls(content: string): string {
return content.replace(/cdn\.discordapp\.com/g, "media.discordapp.net");
}
export function chunkLines(str: string, maxChunkLength = 2000): string[] {
if (str.length < maxChunkLength) {
return [str];