JSPM

@setar/utils

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q26865F
  • License MIT

a module to help you automate some functions

Package Exports

  • @setar/utils

Readme

discord-utils

a module to help you automate some functions

Table of Contents

Installation

npm install @setar/utils

Methods

AutoPublish

Publish any created Message on the Channel (you can specify the author(s) too)

  • Notice: Pass Your Discord Client before you handle all your events.
// ESM
import UtilClient from "@setar/utils"

// CommonJS/CJS
const { Client: UtilClient } = require("@setar/utils")

const myUtils = new UtilClient(myBotClient);
myBotClient.on('messageCreate', (message) => { /* DO WHATEVER */})

myUtils.autoPublish('channel_id', ['admin_id', 'admin_id_2']);

License

MIT License