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

Show attachments in message deletion logs

This commit is contained in:
Dragory 2018-12-15 17:15:32 +02:00
parent 37b791bd56
commit ef0fa61c39
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];