#Creating multiple instances of Client

5 messages · Page 1 of 1 (latest)

vestal cipher
#

Is it possible for multiple Clients (different tokens) to run concurrently? Considee the following simple example:

const client1 = new Client(...);
const client2 = new Client(...);

client1.login("some token");
client2.login("other token");
hollow turret
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

whole seal
#

sure why not

vestal cipher
#

So the library doesn't have any static bindings? Everything is dependent on some Client instance?

whole seal
#

I don't think there should be a problem