Skip to content

snowlightjs/client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnowLight.JS

A simple way to make your discord bot with bluelight.js

Features

  • Low Memory Usage
  • Custom Cache System
  • Fast Connect to Gateway

Table of Contents

Description

It's a raw connect gateway discord.

How to use

  1. Install the package
npm install @snowlightjs/client | yarn add @snowlightjs/client | bun install @snowlightjs/client
  1. Create a new file and paste the following code
// index.ts
import { Client } from "@snowlightjs/client";
 
const client = new Client({
    token: "YOUR_BOT_TOKEN", // Your bot token,
    api_version: "v10",
    intents: 1, // Intents: discord.com/developers/docs/topics/gateway#gateway-intents | https://discord-intents-calculator.vercel.app/
})
client.login(); // Connect to gateway
client.ws.on("debug", console.log);
client.on("ready", () => {
    console.log(`Logged in as ${client.user.username}`);
});