discord-client-js
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

forthebadge

License: MIT Discord

Contents

Introduction

Welcome to DiscordClientJS! This Node.js package allows you to interact with your bot/user account on Discord. With DiscordClientJS, you can send and read messages, among other functionalities. However, please note that using your user account with this package is against Discord's Terms of Service, so be sure to use it responsibly. If you encounter any issues during installation or usage, feel free to join the Discord support server for assistance.

Risks

Warning: Using your user account is against discord TOS. Do not do anything that's against Discord's TOS (Spamming, Advertising etc.) and you shouldn't get banned. Still use it at your own risk.

Installation

NOTE NodeJS 16.16.0 is recommended

npm install discord-client-js

If you are having some trouble setting up the package, Feel free to join my Discord Server.

Usage

Commands as a selfbot:

import { Client } from 'discord-client-js'

const client = new Client(paste-your-token);

client.on('ready', () => {
    console.log("Logged in");
});

client.on('message', async (message) => {
    const content = message.content.toLowerCase();

    if (content === "how are you?") {
        await client.channels.sendMessage(message.channel_id, "I am fine")
    }
});

There are more functions and events. Check them out at our Documentation.

Support

Readme

Keywords

Package Sidebar

Install

npm i discord-client-js

Weekly Downloads

0

Version

1.1.5

License

MIT

Unpacked Size

35.4 kB

Total Files

15

Last publish

Collaborators

  • shushspice