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:
if(!extraMessages) throw console.error('ErrorType set to FullCustom but no custom message added.')
embed.data.fields[0].value = extraMessages[0];
embed.data.fields[1].value = 'Try again once you have been bad.';
break;
default:
break;
}
if(extraMessages)
if(extraMessages && errorType != ErrorType.FullCustom)
{
for(var i = 0; i<extraMessages.length; i++)
{

Loading…
Cancel
Save