|
|
|
@ -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++)
|
|
|
|
|
{
|
|
|
|
|