morePresence: Add check if details is null
This commit is contained in:
parent
f4538784af
commit
5923d9ba56
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ module.exports = function (user) {
|
|||
details = `"${user.presence.activities[0].state}"\n`
|
||||
break;
|
||||
case "Code":
|
||||
if(user.presence.activities[0].details != null)
|
||||
if(user.presence.activities[0].details.slice(0, 7) === "Editing")
|
||||
details = `Workspace: ${user.presence.activities[0].state}\nEditing: ${user.presence.activities[0].details.slice(8)}\n`
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue