# @gluecode-it/discord-voice-channel-observer

> A small library to watch a discord voice channel is empty or not

Latest version **3.1.5** (published 2020-12-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @gluecode-it/discord-voice-channel-observer
pnpm add @gluecode-it/discord-voice-channel-observer
yarn add @gluecode-it/discord-voice-channel-observer
bun add @gluecode-it/discord-voice-channel-observer
```

## 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 | 3.1.5 |
| Published | 2020-12-22 |
| First published | 2020-10-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | oliverlorenz |

## Links

- npm: https://www.npmjs.com/package/@gluecode-it/discord-voice-channel-observer
- npm.io page: https://npm.io/package/@gluecode-it/discord-voice-channel-observer

## Recent versions

- 3.1.5 (latest) — 2020-12-22
- 3.1.4 — 2020-12-11
- 3.1.3 — 2020-10-22

## README

# Discord VoiceChannel Observer

A small library to watch a discord voice channel is empty or not

### Usage

```
import * as Discord from 'discord.js';
import { VoiceChannelObserver } from 'discord-voice-channel-observer';

const token = '***********************';
const voiceChannelId = '****************';

(async() => {
    const client = new Discord.Client();
    await client.login(token);

    const observer = new VoiceChannelObserver(client, voiceChannelId);
    observer.onEmpty((channelId: string) => {
        console.log(`empty: ${channelId}`)
    })
    observer.onNotEmpty((channelId: string) => {
        console.log(`not empty: ${channelId}`)
    })
})()
```

---
_Source: https://npm.io/package/@gluecode-it/discord-voice-channel-observer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
