Socket
Socket
Sign inDemoInstall

discord-short-api

Package Overview
Dependencies
4
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord-short-api

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


Version published
Maintainers
1
Install size
420 kB
Created

Readme

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

Last updated on 14 Mar 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc