@setar/utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i @setar/utils

Weekly Downloads

8

Version

1.0.1

License

MIT

Unpacked Size

10.1 kB

Total Files

12

Last publish

Collaborators

  • boycode