mirror of
				https://github.com/warengroup/eximiabots-radiox.git
				synced 2025-10-31 00:31:35 +00:00 
			
		
		
		
	Show errors except DiscordAPIError[50001] in commands.js
This commit is contained in:
		| @@ -20,6 +20,7 @@ module.exports = { | |||||||
|             if(command.options) { |             if(command.options) { | ||||||
|                 command.options.forEach(function(option) { |                 command.options.forEach(function(option) { | ||||||
|                     if(option.type == "STRING") option.type = 3; |                     if(option.type == "STRING") option.type = 3; | ||||||
|  |                     if(option.type == "NUMBER") option.type = 10; | ||||||
|                     command.data.options.push(option); |                     command.data.options.push(option); | ||||||
|                 }); |                 }); | ||||||
|             } |             } | ||||||
| @@ -49,6 +50,7 @@ module.exports = { | |||||||
|                             client.funcs.logger('Slash Commands', 'Guild Applications – Successful' + "\n" + guild.id + " / " + guild.name); |                             client.funcs.logger('Slash Commands', 'Guild Applications – Successful' + "\n" + guild.id + " / " + guild.name); | ||||||
|                         } catch (DiscordAPIError) { |                         } catch (DiscordAPIError) { | ||||||
|                             client.funcs.logger('Slash Commands', 'Guild Applications – Failed' + "\n" + guild.id + " / " + guild.name); |                             client.funcs.logger('Slash Commands', 'Guild Applications – Failed' + "\n" + guild.id + " / " + guild.name); | ||||||
|  |                             if(DiscordAPIError.name != "DiscordAPIError[50001]") console.error(DiscordAPIError.message + "\n\n"); | ||||||
|                         } |                         } | ||||||
|                     }); |                     }); | ||||||
|                 } else { |                 } else { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Christer Warén
					Christer Warén