# discord4node

> Module that allows you to interact with the Discord API

Latest version **0.0.3-beta** (published 2019-04-14) · 0 weekly downloads

## Install

```sh
npm install discord4node
pnpm add discord4node
yarn add discord4node
bun add discord4node
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3-beta |
| Published | 2019-04-14 |
| First published | 2019-04-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | MrSheldon |
| Maintainers | mrsheldon |
| Keywords | discordbots, discordbot, bots, bot, discord, discordapp, discord4node, node, api |

## Links

- npm: https://www.npmjs.com/package/discord4node
- Repository: https://github.com/MrSheldon/Discord4Node
- Homepage: https://discord4node.js.org
- Issues: https://github.com/MrSheldon/Discord4Node/issues
- npm.io page: https://npm.io/package/discord4node

## Dependencies (5)

- [ws](https://npm.io/package/ws.md) ^6.1.0
- [phin](https://npm.io/package/phin.md) ^3.1.0
- [events](https://npm.io/package/events.md) ^3.0.0
- [request](https://npm.io/package/request.md) ^2.88.0
- [discord.js](https://npm.io/package/discord.js.md) ^11.4.2

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.3-beta (latest) — 2019-04-14
- 0.0.2-beta — 2019-04-14
- 0.0.1-beta — 2019-04-14

## README

[![NPM](https://nodei.co/npm/discord4node.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/discord4node/)

# STILL IN DEVELOPMENT

## Getting Started
Simply run `npm i discord4node` (or `yarn add discord4node`)

## Usage 

**Create Client**
```javascript
const discord4node = require("discord4node");
const client = new discord4node({
    token: ""
})

client.login()
```

**Event: ready**
```javascript
client.on('ready', () => {})
```

**Event: message**
```javascript
client.on('message', (message) => {})
```

**Function: send message**
```javascript
client.sendMessage(channelid, string)
```

**Function: send embed message**
```javascript
client.sendEmbed(channelid, embedObject)
```

See working example [here](https://github.com/MrSheldon/Discord4Node/blob/master/tests/index.js)

You can find the embed object [here](https://discordapp.com/developers/docs/resources/channel#embed-object)

---
_Source: https://npm.io/package/discord4node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
