fix(cache): guild props being removed before saving to cache
This commit is contained in:
		
							parent
							
								
									8e5a76dbe8
								
							
						
					
					
						commit
						2b0db63f82
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -147,6 +147,7 @@ export class GuildManager extends BaseManager<GuildPayload, Guild> { | ||||||
| 
 | 
 | ||||||
|   /** Sets a value to Cache */ |   /** Sets a value to Cache */ | ||||||
|   async set(key: string, value: GuildPayload): Promise<any> { |   async set(key: string, value: GuildPayload): Promise<any> { | ||||||
|  |     value = { ...value } | ||||||
|     if ('roles' in value) value.roles = [] |     if ('roles' in value) value.roles = [] | ||||||
|     if ('emojis' in value) value.emojis = [] |     if ('emojis' in value) value.emojis = [] | ||||||
|     if ('members' in value) value.members = [] |     if ('members' in value) value.members = [] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue