시유
시유
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
My mistake
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
oh
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
Looks like a Lavalink module error. Thank you so much for helping me fix the problem
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
trackStuck.js
module.exports = async (player, track, payload) => {
return player.destroy();
};
module.exports = async (player, track, payload) => {
return player.destroy();
};
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
I'll collect the log again and send it to you
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
No description
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
I'm attaching a debug log because a problem occurred
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
No description
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
I'll give it a try.
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
If it's a debug event, do you mean the API log?
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
index.js
const Poppy = require("./structures/PoppyClient");
const client = new Poppy();

client.connect()

module.exports = client;
const Poppy = require("./structures/PoppyClient");
const client = new Poppy();

client.connect()

module.exports = client;
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
No description
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
Shard #31 isn't the only time you die
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
No description
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
The clustering worked fine, but the error was not resolved
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
const { ShardingManager } = require("discord.js");
const config = require("./src/config.js");
const { RecommededShards, GetShardIds } = require("./src/utils/shards.js");

async function shards_start() {
let totalShards = 0;
try {
totalShards = await RecommededShards(config.token, config.sharding.guildsPerShard);
} catch (error) {
return console.log(error);
}

let Shards = GetShardIds(totalShards, config.sharding.totalMachines, config.sharding.machineId);

let manager = new ShardingManager("./src/index.js", { token: config.token, totalShards: totalShards, shardList: Shards, respawn: true });

manager.on("shardCreate", (shard) => console.log(`Launched shard ${shard.id}`));

manager.spawn();
}

shards_start();

process.on("unhandledRejection", (error) => {
console.error("Unhandled promise rejection:", error);
});
const { ShardingManager } = require("discord.js");
const config = require("./src/config.js");
const { RecommededShards, GetShardIds } = require("./src/utils/shards.js");

async function shards_start() {
let totalShards = 0;
try {
totalShards = await RecommededShards(config.token, config.sharding.guildsPerShard);
} catch (error) {
return console.log(error);
}

let Shards = GetShardIds(totalShards, config.sharding.totalMachines, config.sharding.machineId);

let manager = new ShardingManager("./src/index.js", { token: config.token, totalShards: totalShards, shardList: Shards, respawn: true });

manager.on("shardCreate", (shard) => console.log(`Launched shard ${shard.id}`));

manager.spawn();
}

shards_start();

process.on("unhandledRejection", (error) => {
console.error("Unhandled promise rejection:", error);
});
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
It's not a single server problem
45 replies
DIAdiscord.js - Imagine an app
Created by 시유 on 4/13/2024 in #djs-questions
Error: Expected token to be set for this request, but none was present
No description
45 replies