open-unlight / node-discord-game

The Discord Game SDK for Electron.js
47 stars 9 forks source link

Activity timestamp #8

Closed lilabyte closed 4 years ago

lilabyte commented 4 years ago

I've just started the app with this:

var activity = {
    details: "Snity Main Launcher",
    state: `${config.account_status}`,
    assets: {
        largeImage: 'snity-wbg2',
        largeText: 'Snity.net',
        smallImage: 'pineapple',
        smallText: 'Pineapple'
    },
    timestamps: {
        startAt: new Date()
    }
}
///////////////////////
activity.timestamps.startAt = new Date()
Discord.Activity
    .update(activity)
    .then(function() { console.log('Rich Presence updated') });

And that's what i got image The app was running less than 10 seconds

elct9620 commented 4 years ago

截圖 2020-09-01 下午5 46 54

I had updated the package, it seems works well for now. If you still have the same problem with it, please reopen this issue.