completionId: cgen-f319295525414e9b9284bbbf64b6a971
cgen-f319295525414e9b9284bbbf64b6a971
This commit is contained in:
parent
37b419d9af
commit
5acdb1e535
1 changed files with 3 additions and 2 deletions
|
|
@ -922,8 +922,9 @@ export function createServer() {
|
|||
});
|
||||
}
|
||||
|
||||
// Validate token format
|
||||
if (!botToken.includes(".") || botToken.length < 50) {
|
||||
// Validate token format - Discord bot tokens are typically long strings
|
||||
// They don't always have dots, but should be reasonably long
|
||||
if (!botToken || botToken.trim().length < 20) {
|
||||
console.warn(
|
||||
"[Discord] Bot token appears invalid - length:",
|
||||
botToken.length,
|
||||
|
|
|
|||
Loading…
Reference in a new issue