foxwells.vinboard: fix avatarURL and threadID
This commit is contained in:
		
							parent
							
								
									d99f88d9c0
								
							
						
					
					
						commit
						5767fb12cb
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -239,11 +239,12 @@ async function createBoardMessage(msg, count, fetchAttachment = true) {
 | 
			
		|||
  }
 | 
			
		||||
 | 
			
		||||
  return {
 | 
			
		||||
    avatar_url: msg.member?.avatarURL ?? msg.author.avatarURL,
 | 
			
		||||
    avatarURL: msg.member?.avatarURL ?? msg.author.avatarURL,
 | 
			
		||||
    username: msg.member?.displayName ?? msg.author.username,
 | 
			
		||||
    thread_id: VINBOARD_THREAD_ID,
 | 
			
		||||
    threadID: VINBOARD_THREAD_ID,
 | 
			
		||||
    embeds: [embed],
 | 
			
		||||
    files: image?.file ? [{contents: image.file, name: "thumb.jpg"}] : null,
 | 
			
		||||
    wait: true,
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -323,9 +324,9 @@ async function processReaction(_msg, reaction, user) {
 | 
			
		|||
        );
 | 
			
		||||
 | 
			
		||||
        const props = {
 | 
			
		||||
          avatar_url: _boardMessage.author.avatarURL,
 | 
			
		||||
          avatarURL: _boardMessage.author.avatarURL,
 | 
			
		||||
          username: _boardMessage.author.username,
 | 
			
		||||
          thread_id: VINBOARD_THREAD_ID,
 | 
			
		||||
          threadID: VINBOARD_THREAD_ID,
 | 
			
		||||
          embeds: _boardMessage.embeds,
 | 
			
		||||
          wait: true,
 | 
			
		||||
        };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue