foxwells.vinboard: fix null member if message not cached
This commit is contained in:
		
							parent
							
								
									58fe216636
								
							
						
					
					
						commit
						0a2e30a41f
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -238,8 +238,9 @@ async function createBoardMessage(msg, count) {
 | 
			
		|||
  }
 | 
			
		||||
 | 
			
		||||
  return {
 | 
			
		||||
    avatarURL: msg.member.avatarURL("png", 256),
 | 
			
		||||
    username: msg.member.displayName,
 | 
			
		||||
    avatarURL:
 | 
			
		||||
      msg.member?.avatarURL("png", 256) ?? msg.author.avatarURL("png", 256),
 | 
			
		||||
    username: msg.member?.displayName ?? msg.author.username,
 | 
			
		||||
    threadID: VINBOARD_THREAD_ID,
 | 
			
		||||
    threadName: "Vinboard",
 | 
			
		||||
    embeds: [embed],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue