mirror of
				https://github.com/keanuplayz/TravBot-v3.git
				synced 2024-08-15 02:33:12 +00:00 
			
		
		
		
	Fix a CRITICAL BUG in the emote dump module
This commit is contained in:
		
							parent
							
								
									e7cc94408b
								
							
						
					
					
						commit
						3170d85376
					
				
					 1 changed files with 14 additions and 12 deletions
				
			
		|  | @ -6,7 +6,8 @@ function updateGlobalEmoteRegistry(): void { | ||||||
|     const data: EmoteRegistryDump = {version: 1, list: []}; |     const data: EmoteRegistryDump = {version: 1, list: []}; | ||||||
| 
 | 
 | ||||||
|     for (const guild of client.guilds.cache.values()) { |     for (const guild of client.guilds.cache.values()) { | ||||||
|         for (const emote of guild.emojis.cache.values()) { |         guild.fetch().then((g) => { | ||||||
|  |             for (const emote of g.emojis.cache.values()) { | ||||||
|                 data.list.push({ |                 data.list.push({ | ||||||
|                     ref: emote.name, |                     ref: emote.name, | ||||||
|                     id: emote.id, |                     id: emote.id, | ||||||
|  | @ -18,6 +19,7 @@ function updateGlobalEmoteRegistry(): void { | ||||||
|                     guild_name: emote.guild.name |                     guild_name: emote.guild.name | ||||||
|                 }); |                 }); | ||||||
|             } |             } | ||||||
|  |         }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     FileManager.open("data/public"); // generate folder if it doesn't exist
 |     FileManager.open("data/public"); // generate folder if it doesn't exist
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue