Fixed issue with warns not properly registering
This commit is contained in:
		
							parent
							
								
									f87b1afb38
								
							
						
					
					
						commit
						782073c203
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -24,8 +24,7 @@ module.exports = async () => {
 | 
			
		|||
        warns: {}
 | 
			
		||||
      });
 | 
			
		||||
      await newGuild.save();
 | 
			
		||||
    }
 | 
			
		||||
    if (!guildDB.warns) {
 | 
			
		||||
    } else if (guildDB && !guildDB.warns) {
 | 
			
		||||
      logger.log(`Creating warn object for guild ${id}...`);
 | 
			
		||||
      guildDB.set("warns", {});
 | 
			
		||||
      await guildDB.save();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue