# re-discord

> Native Discord API for creating bots using ReasonML

Latest version **1.1.3** (published 2020-05-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install re-discord
pnpm add re-discord
yarn add re-discord
bun add re-discord
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2020-05-25 |
| First published | 2019-09-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 266.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Maintainers | noahschechter |
| Keywords | discord |

## Links

- npm: https://www.npmjs.com/package/re-discord
- Repository: https://github.com/nschechter/re-discord
- Homepage: https://github.com/nschechter/re-discord#readme
- Issues: https://github.com/nschechter/re-discord/issues
- npm.io page: https://npm.io/package/re-discord

## Dependencies (9)

- [ocaml](https://npm.io/package/ocaml.md) ~4.09
- [@opam/lwt](https://npm.io/package/@opam/lwt.md) 5.3.0
- [@opam/dune](https://npm.io/package/@opam/dune.md) *
- [@opam/cohttp](https://npm.io/package/@opam/cohttp.md) 2.5.1
- [@opam/yojson](https://npm.io/package/@opam/yojson.md) 1.7.0
- [@opam/lwt_ssl](https://npm.io/package/@opam/lwt_ssl.md) 1.1.3
- [@opam/websocket](https://npm.io/package/@opam/websocket.md) 2.14
- [@esy-ocaml/reason](https://npm.io/package/@esy-ocaml/reason.md) >= 3.4.0 < 3.6.0
- [@opam/websocket-lwt-unix](https://npm.io/package/@opam/websocket-lwt-unix.md) 2.14

## Recent versions

- 1.1.3 (latest) — 2020-05-25
- 3.1.0-beta.1 (beta) — 2020-05-26
- 1.1.3-beta.0 — 2020-05-25
- 1.1.2 — 2020-05-25
- 1.1.1 — 2020-05-25
- 1.1.0 — 2019-09-17
- 1.0.0 — 2019-09-15

## README

# re-discord

## Developing:

```
npm install -g esy
git clone <this-repo>
esy install
esy build
```

## Running PingBot Example:

After building the project, you can run the main binary that is produced.

```
export DISCORD_BOT_TOKEN={INSERT_TOKEN}
esy x PingBot.exe
```

## Documentation:

### Supported Events:

```
onReady
onMessage(message)
onGuildMemberAdd(guild, member)
onGuildMemberRemove(guild, member)
onReactionAdd(message)
onReactionRemove(message)
```

### Sending a message

```
Channel.send = (content: string, channel: Channel.t)
Message.reply = (content: string, message: Message.t)
Message.react = (emoji: string, message: Message.t)
```

### Future Plans

```
- Resuming
- Attachments
- Higher level API
- More events!
- Voice Support
- Sharding
```

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