From 465f1f3221a55c584627337b5e66dfabb7a21167 Mon Sep 17 00:00:00 2001 From: Minzkraut Date: Mon, 12 Sep 2022 20:51:56 +0200 Subject: [PATCH] Profile: Handle uninitialized customStatus rendering --- commands/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/profile.js b/commands/profile.js index 70b62b9..6f04311 100644 --- a/commands/profile.js +++ b/commands/profile.js @@ -23,7 +23,7 @@ module.exports = { let profile = await user.getProfile(); - let customStatus = profile.customStatus; + let customStatus = profile.customStatus ? profile.customStatus : "A Band Bot user"; customStatus = customStatus.replace(/(.{0,40}[\s])/g, '$1');