Fix time out
This commit is contained in:
		
							parent
							
								
									94d73cd542
								
							
						
					
					
						commit
						5b5a8d914d
					
				| @ -8,6 +8,8 @@ module.exports = { | |||||||
|     .setDescription('Show the list of games you have beaten.') |     .setDescription('Show the list of games you have beaten.') | ||||||
|     .addUserOption(option => option.setName('user').setDescription('The user to check')), |     .addUserOption(option => option.setName('user').setDescription('The user to check')), | ||||||
|     async execute(interaction) { |     async execute(interaction) { | ||||||
|  |         await interaction.reply({ content: 'Searching for user...', ephemeral: true }); | ||||||
|  | 
 | ||||||
|         let user = interaction.user; |         let user = interaction.user; | ||||||
|         const userOption = interaction.options.getUser('user'); |         const userOption = interaction.options.getUser('user'); | ||||||
| 
 | 
 | ||||||
| @ -16,9 +18,7 @@ module.exports = { | |||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         const userDatabaseEntry = await getUserRegistration(user); |         const userDatabaseEntry = await getUserRegistration(user); | ||||||
|         if (!userDatabaseEntry) return interaction.reply({ content: `Issue checking registration with "${user.username}".`, ephemeral: true }); |         if (!userDatabaseEntry) return interaction.followUp({ content: `Issue checking registration with "${user.username}".`, ephemeral: true }); | ||||||
| 
 |  | ||||||
|         await interaction.reply({ content: `Searching for ${user.username}...`, ephemeral: true }); |  | ||||||
| 
 | 
 | ||||||
|         const beatenGamesDatabaseEntries = await getGames(userDatabaseEntry.id); |         const beatenGamesDatabaseEntries = await getGames(userDatabaseEntry.id); | ||||||
|         if (!beatenGamesDatabaseEntries || beatenGamesDatabaseEntries.length == 0) return interaction.followUp({ content: 'No games found.', ephemeral: true }); |         if (!beatenGamesDatabaseEntries || beatenGamesDatabaseEntries.length == 0) return interaction.followUp({ content: 'No games found.', ephemeral: true }); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user