Links
Need help ?
If you need help with the module you can take a look to the documentation or come into our discord server.
You found a bug ?
If you found a bug you can just open a issue by explaining this one.
You can report it on our discord server too.
Let's start
This is a little part present in our documentation.
const {Client, IntentFlags} = require("devland.js")
const bot = new Client({
intents: [IntentFlags.FLAGS.GUILDS, IntentFlags.FLAGS.GUILD_MEMBERS, IntentFlags.FLAGS.GUILd_PRESENCES]
guildsLifeTime: 7200000,
connect: true,
token: "YOUR TOKEN"
})
bot.on('ready', () => console.log(`${bot.user.tag} connected`))
All cache options available for the client :
guildsLifeTime: milliseconds,
channelsLifeTime: milliseconds,
usersLifeTime: milliseconds,
messagesLifeTime: milliseconds,
threadsLifeTime: milliseconds,
membersLifeTime: milliseconds,
rolesLifeTime: milliseconds,
invitesLifeTime: milliseconds,
presencesLifeTime: milliseconds,
voicesLifeTime: milliseconds,
enableAllCaches:
waitCacheBeforeReady: boolean,
fetchAllMembers: boolean,
checkForUpdate: boolean,
All ws options available for the client :
large_threshold: number,
compress: boolean,
properties: propertiesOptions,
propertiesOptions = {
$os: string | NodeJS.Platform,
$browser: string,
$device: string
}
All presence options available for the client :
status: string,
afk: boolean,
activities: simpleActivity[],
since: number,
simpleActivity = {
name: string,
type: ActivityType,
url: string,
}
ActivityType = {
Game = 0,
Streaming = 1,
Listening = 2,
Watching = 3,
Custom = 4,
Competing = 5
}
All others options available for the client :
connectionTimeout: number,
maxReconnectAttempts: number,
maxResumeAttempts: number,
invalidCommandValueReturnNull: boolean,