Error Handling of error errorType full custom

master
masterhc 9 months ago
parent fee7dd9bd6
commit 07362ef68f

@ -507,11 +507,12 @@ class ErrorMessage
case ErrorType.FullCustom: case ErrorType.FullCustom:
if(!extraMessages) throw console.error('ErrorType set to FullCustom but no custom message added.') if(!extraMessages) throw console.error('ErrorType set to FullCustom but no custom message added.')
embed.data.fields[0].value = extraMessages[0]; embed.data.fields[0].value = extraMessages[0];
embed.data.fields[1].value = 'Try again once you have been bad.';
break; break;
default: default:
break; break;
} }
if(extraMessages) if(extraMessages && errorType != ErrorType.FullCustom)
{ {
for(var i = 0; i<extraMessages.length; i++) for(var i = 0; i<extraMessages.length; i++)
{ {

Loading…
Cancel
Save