mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-04-13 16:48:31 -05:00
Fix sharing a friend's presence on Discord
This commit is contained in:
parent
8f5965913d
commit
9d05161bf3
|
|
@ -209,7 +209,7 @@ export class ZncDiscordPresence extends ZncNotifications {
|
|||
this.show_console_online = argv.showInactivePresence;
|
||||
this.show_active_event = argv.showEvent;
|
||||
|
||||
this.presence_user = argv.friendNsaid ?? data.nsoAccount.user.nsaId;
|
||||
this.presence_user = argv.friendNsaid ?? data?.nsoAccount.user.nsaId;
|
||||
}
|
||||
|
||||
async init() {
|
||||
|
|
@ -217,7 +217,7 @@ export class ZncDiscordPresence extends ZncNotifications {
|
|||
'announcements',
|
||||
this.presence_user ?
|
||||
this.presence_user === this.data.nsoAccount.user.nsaId ? 'user' :
|
||||
{friend: this.presence_user, presence: true} : null,
|
||||
{friend: this.presence_user} : null,
|
||||
this.presence_user && this.show_active_event ? 'event' : null,
|
||||
this.user_notifications ? 'user' : null,
|
||||
this.friend_notifications ? 'friends' : null,
|
||||
|
|
@ -372,7 +372,7 @@ export class ZncDiscordPresence extends ZncNotifications {
|
|||
const {friends, user, activeevent} = await this.fetch([
|
||||
this.presence_user ?
|
||||
this.presence_user === this.data.nsoAccount.user.nsaId ? 'user' :
|
||||
{friend: this.presence_user, presence: true} : null,
|
||||
{friend: this.presence_user} : null,
|
||||
this.presence_user && this.show_active_event ? 'event' : null,
|
||||
this.user_notifications ? 'user' : null,
|
||||
this.friend_notifications ? 'friends' : null,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user