Skip to content

Commit

Permalink
Try to fix #60
Browse files Browse the repository at this point in the history
  • Loading branch information
crycode-de committed May 8, 2024
1 parent 2f97396 commit 0f7a357
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ class DiscordAdapter extends Adapter {
const p: UpdateUserPresenceResult = {
status: presence?.status ?? '',
activityName: (presence?.activities[0]?.type === ActivityType.Custom ? presence?.activities[0]?.state : presence?.activities[0]?.name) ?? '',
activityType: presence?.activities[0]?.type !== undefined ? ActivityType[presence.activities[0].type] as ActivityTypeNames : '' ?? '',
activityType: (presence?.activities[0]?.type !== undefined ? ActivityType[presence.activities[0].type] as ActivityTypeNames : '') ?? '',
};
const proms: Promise<any>[] = [];
if (!skipJsonStateUpdate) {
Expand Down

0 comments on commit 0f7a357

Please sign in to comment.