fix edits not being marked
This commit is contained in:
		
							parent
							
								
									9dc3f1276d
								
							
						
					
					
						commit
						6b90fbd8d4
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -335,7 +335,11 @@ function processMessage(msg, options) {
 | 
				
			||||||
        formatMessage({
 | 
					        formatMessage({
 | 
				
			||||||
          name: msg.author.username,
 | 
					          name: msg.author.username,
 | 
				
			||||||
          bot: msg.author.bot,
 | 
					          bot: msg.author.bot,
 | 
				
			||||||
          content: line,
 | 
					          content:
 | 
				
			||||||
 | 
					            line +
 | 
				
			||||||
 | 
					            (msg.editedTimestamp != null && index == lines.length - 1
 | 
				
			||||||
 | 
					              ? " (edited)"
 | 
				
			||||||
 | 
					              : ""),
 | 
				
			||||||
          attachments: index == lines.length - 1 ? msg.attachments : [],
 | 
					          attachments: index == lines.length - 1 ? msg.attachments : [],
 | 
				
			||||||
          stickers: index == lines.length - 1 ? msg.stickerItems : [],
 | 
					          stickers: index == lines.length - 1 ? msg.stickerItems : [],
 | 
				
			||||||
          reply: index == 0 ? msg.referencedMessage : null,
 | 
					          reply: index == 0 ? msg.referencedMessage : null,
 | 
				
			||||||
| 
						 | 
					@ -347,7 +351,7 @@ function processMessage(msg, options) {
 | 
				
			||||||
    formatMessage({
 | 
					    formatMessage({
 | 
				
			||||||
      name: msg.author.username,
 | 
					      name: msg.author.username,
 | 
				
			||||||
      bot: msg.author.bot,
 | 
					      bot: msg.author.bot,
 | 
				
			||||||
      content: msg.content,
 | 
					      content: msg.content + (msg.editedTimestamp != null ? " (edited)" : ""),
 | 
				
			||||||
      attachments: msg.attachments,
 | 
					      attachments: msg.attachments,
 | 
				
			||||||
      stickers: msg.stickerItems,
 | 
					      stickers: msg.stickerItems,
 | 
				
			||||||
      reply: msg.referencedMessage,
 | 
					      reply: msg.referencedMessage,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue