Closed Idris1401 closed 1 year ago
topgg-autoposter
is purposefully library agnostic. I don't think this is a good idea as the client initialization is different across discord.js and eris for example.
const Eris = require("eris");
// Replace TOKEN with your bot account's token
const bot = new Eris("Bot TOKEN", {
intents: [
"guildMessages"
]
});
vs
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
In a perfect world I'd not even include the initialization, I just want to make sure that the client
variable is obvious.
then the client initialization should be fully removed imo (also the current example is for discord.js. so if you wanna keep it, it needs to be updated)
The point of it is to give an example of a client initialization, it isn't discord.js because it's not platform specific. It's an initialization of a Discord client, both eris, djs, and others have the concept of client initialization.
✅ Deploy Preview for topgg-node-sdk-docs ready!
Toggle QR Code...
Use your smartphone camera to open QR code link.
To edit notification comments on pull requests, go to your Netlify site settings.