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:
parent
37b791bd56
commit
ef0fa61c39
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