Skip to content

Commit

Permalink
Update Trakt.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarLothbrok-Odin committed Jul 2, 2022
1 parent 274cfb0 commit adfb15e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Trakt.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (!fs.existsSync('./config.json')) {
}

// Fetching the data from config.json
const { clientId, clientSecret, oAuth, discordClientID } = require('./config.json');
const { clientId, clientSecret, oAuth, discordClientId } = require('./config.json');

// Checks if the oAuth has expired and runs tokenExpired() function if it has
if (Date.now() > oAuth.expires) {
Expand Down Expand Up @@ -41,7 +41,7 @@ const spawnRPC = async () => {
console.log(chalk.green.bold('Successfully connected to Discord!'));
});
// Attempt to log in
await rpc.login({ clientId: discordClientID });
await rpc.login({ clientId: discordClientId });
// Update status
updateStatus();

Expand Down Expand Up @@ -111,7 +111,7 @@ async function questions() {
},
{
type: 'input',
name: 'discordClientID',
name: 'discordClientId',
message: 'What is your Discord Client ID?'
}
]).catch(() => {
Expand Down Expand Up @@ -142,7 +142,7 @@ async function questions() {
const arr = {};
arr.clientId = response.clientId;
arr.clientSecret = response.clientSecret;
arr.discordClientID = response.discordClientID;
arr.discordClientId = response.discordClientId;

try {
await qTrakt.exchange_code(auth.oAuth, null);
Expand Down

1 comment on commit adfb15e

@RagnarLothbrok-Odin
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to give this a comment.
If you apply this update, you may need to either:
Regen your config.json file OR:
Edit your config.json file, and change discordClientID to discordClientId

Please sign in to comment.