diff --git a/src/ps2/commands/verify.command.ts b/src/ps2/commands/verify.command.ts index 29216147..5f67e661 100644 --- a/src/ps2/commands/verify.command.ts +++ b/src/ps2/commands/verify.command.ts @@ -52,7 +52,7 @@ export class PS2VerifyCommand { const outfitId = this.config.get('app.ps2.outfitId'); // Check if the character is in the Albion guild - if (!character.outfit_info || character.outfit_info.outfit_id !== outfitId) { + if (!character?.outfit_info || character?.outfit_info.outfit_id !== outfitId) { return `Your character "${character.name.first}" has not been detected in the [DIG] outfit. If you are in the outfit, please log out and in again, or wait 24 hours and try again as Census (the game's API) can be slow to update sometimes.`; }