X_DigitalNinja
X_DigitalNinja
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/27/2024 in #djs-questions
API Not showing the right player ammount
Oh ok Thanks guys!
13 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/27/2024 in #djs-questions
API Not showing the right player ammount
ahh gotcha
13 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/27/2024 in #djs-questions
API Not showing the right player ammount
I know but again for the future if there was a possibility
13 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/27/2024 in #djs-questions
API Not showing the right player ammount
discord-hybrid-sharding?
13 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/27/2024 in #djs-questions
API Not showing the right player ammount
For future
13 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/27/2024 in #djs-questions
API Not showing the right player ammount
lol what you recommend
13 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/27/2024 in #djs-questions
API Not showing the right player ammount
idk :idk:
13 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/27/2024 in #djs-questions
API Not showing the right player ammount
My friend sent me that so I just been using it
13 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/27/2024 in #djs-questions
API Not showing the right player ammount
I am using sharding and making it for the future so I have it ready to go and I am using i am using shardingmanager
js
import { ShardingManager } from 'discord.js';
import 'dotenv/config'; // Load environment variables
import Logger from './src/utils/logger.js'; // Custom logger utility

// Create a ShardingManager
const manager = new ShardingManager('./src/main.js', {
totalShards: 'auto', // Automatically determine the number of shards based on Discord's recommendation
token: process.env.PRODUCTION_CLIENT_AUTH_TOKEN, // Use your production token
});

manager.on('shardCreate', (shard) => {
Logger.info(`Launched shard ${shard.id}`);
});

// Spawn shards
manager.spawn().then(shards => {
Logger.success('All shards spawned successfully!');
}).catch(err => {
Logger.error(`Failed to spawn shards: ${err.message}`);
});

export default manager;
js
import { ShardingManager } from 'discord.js';
import 'dotenv/config'; // Load environment variables
import Logger from './src/utils/logger.js'; // Custom logger utility

// Create a ShardingManager
const manager = new ShardingManager('./src/main.js', {
totalShards: 'auto', // Automatically determine the number of shards based on Discord's recommendation
token: process.env.PRODUCTION_CLIENT_AUTH_TOKEN, // Use your production token
});

manager.on('shardCreate', (shard) => {
Logger.info(`Launched shard ${shard.id}`);
});

// Spawn shards
manager.spawn().then(shards => {
Logger.success('All shards spawned successfully!');
}).catch(err => {
Logger.error(`Failed to spawn shards: ${err.message}`);
});

export default manager;
13 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/23/2024 in #djs-questions
Timeout command
Let me test a fer things
15 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/23/2024 in #djs-questions
Timeout command
Thanks!
15 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/22/2024 in #djs-questions
Ping command
Ok Imma start the transition Thanks!
9 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/22/2024 in #djs-questions
Ping command
What be better Core or discord.js
9 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/22/2024 in #djs-questions
Ping command
Idk ngl I just thought I give it a try. someone said Core was good. So I just wen't with it
9 replies
DIAdiscord.js - Imagine an app
Created by X_DigitalNinja on 8/22/2024 in #djs-questions
Ping command
No description
9 replies