🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

discord-short-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-short-api

```js (async () => { const { DiscordApi } = require('discord-api');

1.0.1
latest
npm
Version published
Maintainers
1
Created
Source

DiscordApi

(async () => {
    const { DiscordApi } = require('discord-api');

    const d = new DiscordApi('AwesomeEmail@any-mail.com', 'AwesomeP@ssowrd');
    await d.auth();

    const msgs = 'Every word as one message >:) yeah, we\'ve to shaffle >:)'.split(' ').shaffle();

    const t = setInterval(() => {
        const msg = msgs.pop();
        if (!msg) return clearInterval(t);
        d.sendMessageToChannel(channelId, msg);
    }, 5000);
})();

Exmaples

If you want to try something with this lib, check exmaples

If you pulled github repo, create .env file, add your meta, and try any example

Docs?

This lib is simply as can. Just read the code

TODO

  • add more methods for discord (maybe voice?)
  • find way for fix auth error (help me 😭)

FAQs

Package last updated on 14 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts