mirror of
				https://github.com/keanuplayz/TravBot-v3.git
				synced 2024-08-15 02:33:12 +00:00 
			
		
		
		
	Fixed eco user embed not sending.
This commit is contained in:
		
							parent
							
								
									ea58f3d52e
								
							
						
					
					
						commit
						64dde60dab
					
				
					 1 changed files with 19 additions and 16 deletions
				
			
		|  | @ -6,24 +6,27 @@ export const ECO_EMBED_COLOR = 0xf1c40f; | ||||||
| 
 | 
 | ||||||
| export function getMoneyEmbed(user: User): object { | export function getMoneyEmbed(user: User): object { | ||||||
|     const profile = Storage.getUser(user.id); |     const profile = Storage.getUser(user.id); | ||||||
|  |     console.log(profile); | ||||||
| 
 | 
 | ||||||
|     return { |     return { | ||||||
|         embed: { |         embeds: [ | ||||||
|             color: ECO_EMBED_COLOR, |             { | ||||||
|             author: { |                 color: ECO_EMBED_COLOR, | ||||||
|                 name: user.username, |                 author: { | ||||||
|                 icon_url: user.displayAvatarURL({ |                     name: user.username, | ||||||
|                     format: "png", |                     icon_url: user.displayAvatarURL({ | ||||||
|                     dynamic: true |                         format: "png", | ||||||
|                 }) |                         dynamic: true | ||||||
|             }, |                     }) | ||||||
|             fields: [ |                 }, | ||||||
|                 { |                 fields: [ | ||||||
|                     name: "Balance", |                     { | ||||||
|                     value: pluralise(profile.money, "Mon", "s") |                         name: "Balance", | ||||||
|                 } |                         value: pluralise(profile.money, "Mon", "s") | ||||||
|             ] |                     } | ||||||
|         } |                 ] | ||||||
|  |             } | ||||||
|  |         ] | ||||||
|     }; |     }; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue