nullcheck msg.BeforeUpdate
This commit is contained in:
		
							parent
							
								
									76316016b5
								
							
						
					
					
						commit
						651b2a8e68
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -38,7 +38,7 @@ func MessageUpdate(session *discordgo.Session, msg *discordgo.MessageUpdate) {
 | 
				
			||||||
    return
 | 
					    return
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if msg.Content == msg.BeforeUpdate.Content {
 | 
					  if msg.BeforeUpdate != nil && msg.Content == msg.BeforeUpdate.Content {
 | 
				
			||||||
    return
 | 
					    return
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue