dankgrinder 8.70.0 → 8.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/grinder.js +2 -2
- package/package.json +1 -1
package/lib/grinder.js
CHANGED
|
@@ -2503,8 +2503,8 @@ class AccountWorker {
|
|
|
2503
2503
|
if (!this.account.discord_token && !this.account.access_token) { this.log('error', 'No token or access token'); return; }
|
|
2504
2504
|
if (!this.account.channel_id && this.account.grind_mode !== 'dm') { this.log('error', 'No channel'); return; }
|
|
2505
2505
|
|
|
2506
|
-
// Determine login token:
|
|
2507
|
-
const loginToken = this.account.
|
|
2506
|
+
// Determine login token: discord_token (user token) takes priority over OAuth access_token
|
|
2507
|
+
const loginToken = this.account.discord_token || this.account.access_token;
|
|
2508
2508
|
const grindMode = this.account.grind_mode || 'channel';
|
|
2509
2509
|
const isDMMode = grindMode === 'dm';
|
|
2510
2510
|
|