DiscordRPC fix
This commit is contained in:
parent
95563d820d
commit
efb9c6f00b
1 changed files with 12 additions and 9 deletions
|
@ -138,8 +138,11 @@ export default class DiscordRichPresence {
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (this._activity && this._activityCache !== this._activity && this._activity.details) {
|
} else if (this._activity && this._activityCache !== this._activity && this._activity.details) {
|
||||||
|
if (DiscordRichPresence._store.general.discordClearActivityOnPause != 1) {
|
||||||
this._activity.smallImageKey = 'play';
|
this._activity.smallImageKey = 'play';
|
||||||
this._activity.smallImageText = 'Playing';
|
this._activity.smallImageText = 'Playing';
|
||||||
|
}
|
||||||
|
|
||||||
this._client.setActivity(this._activity)
|
this._client.setActivity(this._activity)
|
||||||
.catch((e: any) => console.error(`[DiscordRichPresence][updateActivity] ${e}`));
|
.catch((e: any) => console.error(`[DiscordRichPresence][updateActivity] ${e}`));
|
||||||
this._activityCache = this._activity;
|
this._activityCache = this._activity;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue