foxwells.vinboard: editing fixes
This commit is contained in:
		
							parent
							
								
									7faa912c00
								
							
						
					
					
						commit
						765188c086
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -318,10 +318,11 @@ async function processReaction(_msg, user, reaction) {
 | 
			
		|||
            dbEntry.count ?? 0
 | 
			
		||||
          } -> ${trueCount})`
 | 
			
		||||
        );
 | 
			
		||||
        await webhook.editMessage(
 | 
			
		||||
          _boardMessage.id,
 | 
			
		||||
          await createBoardMessage(msg, trueCount)
 | 
			
		||||
        );
 | 
			
		||||
 | 
			
		||||
        const props = await createBoardMessage(msg, trueCount);
 | 
			
		||||
        delete props.files;
 | 
			
		||||
        props.attachments = [..._boardMessage.attachments.values()];
 | 
			
		||||
        await vinboard_webhook.editMessage(_boardMessage.id, props);
 | 
			
		||||
        await setBoardEntry(msg.id, trueCount, _boardMessage.id);
 | 
			
		||||
      } else {
 | 
			
		||||
        logger.verbose("vinboard", `Creating entry for "${msg.id}"`);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue