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:
parent
0431b3c225
commit
62afd8e8e6
3 changed files with 14 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue