mirror of
				https://github.com/aydenjahola/discord-multipurpose-bot.git
				synced 2025-11-04 00:01:41 +00:00 
			
		
		
		
	trivia: maybe fix the session token issue?
This commit is contained in:
		
							parent
							
								
									82040aaba5
								
							
						
					
					
						commit
						abf7b6fb6d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -108,7 +108,7 @@ const fetchTriviaQuestion = async (categoryId, categoryName) => {
 | 
				
			||||||
      );
 | 
					      );
 | 
				
			||||||
      const apiQuestion = response.data.results[0];
 | 
					      const apiQuestion = response.data.results[0];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      // Check if the token is exhausted (response code 4 indicates this)
 | 
					      // Check if the token is exhausted (response code 3 indicates this)
 | 
				
			||||||
      if (response.data.response_code === 3) {
 | 
					      if (response.data.response_code === 3) {
 | 
				
			||||||
        // Token not found
 | 
					        // Token not found
 | 
				
			||||||
        sessionToken = await getSessionToken(); // Create a new token
 | 
					        sessionToken = await getSessionToken(); // Create a new token
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue