Jei
Jei
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
okay, thx for letting me know
25 replies
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
from github. yeah
25 replies
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
so i cant do nothing with this code?
25 replies
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
and try to run it
25 replies
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
i got this from github
25 replies
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
async login(token = this.token) {
if (!token || typeof token !== 'My tokens here') throw new DiscordjsError(ErrorCodes.TokenInvalid);
this.token = token = token.replace(/^(Bot|Bearer)\s*/i, '');
this.rest.setToken(token);
this.emit(Events.Debug, `Provided token: ${this._censoredToken}`);
async login(token = this.token) {
if (!token || typeof token !== 'My tokens here') throw new DiscordjsError(ErrorCodes.TokenInvalid);
this.token = token = token.replace(/^(Bot|Bearer)\s*/i, '');
this.rest.setToken(token);
this.emit(Events.Debug, `Provided token: ${this._censoredToken}`);
25 replies
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
oh alr
25 replies
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
im sorry, do u mean all of my code ?
25 replies
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
25 replies
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
ok wait
25 replies
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
all of the file or just client.js ?
25 replies
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
how
25 replies
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
what did i do wrong? (pls explain)
25 replies
DIAdiscord.js - Imagine an app
Created by Jei on 3/31/2025 in #djs-questions
Token invalid
/app/node_modules/discord.js/src/client/Client.js:216
if (!token || typeof token !== 'string') throw new DiscordjsError(ErrorCodes.TokenInvalid);
^

Error [TokenInvalid]: An invalid token was provided.
at Client.login (/app/node_modules/discord.js/src/client/Client.js:216:52)
at Object.<anonymous> (/app/index.js:318:8)
at Module._compile (node:internal/modules/cjs/loader:1529:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
at Module.load (node:internal/modules/cjs/loader:1275:32)
at Module._load (node:internal/modules/cjs/loader:1096:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12)
at node:internal/main/run_main_module:28:49 {
code: 'TokenInvalid'
}

Node.js v20.19.0
/app/node_modules/discord.js/src/client/Client.js:216
if (!token || typeof token !== 'string') throw new DiscordjsError(ErrorCodes.TokenInvalid);
^

Error [TokenInvalid]: An invalid token was provided.
at Client.login (/app/node_modules/discord.js/src/client/Client.js:216:52)
at Object.<anonymous> (/app/index.js:318:8)
at Module._compile (node:internal/modules/cjs/loader:1529:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
at Module.load (node:internal/modules/cjs/loader:1275:32)
at Module._load (node:internal/modules/cjs/loader:1096:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12)
at node:internal/main/run_main_module:28:49 {
code: 'TokenInvalid'
}

Node.js v20.19.0
25 replies