https://github.com/setar-bot/discord-utils
a module to help you automate some functions
https://github.com/setar-bot/discord-utils
discord-utilities discordjs discordjs-bot
Last synced: about 2 months ago
JSON representation
a module to help you automate some functions
- Host: GitHub
- URL: https://github.com/setar-bot/discord-utils
- Owner: SeTar-Bot
- License: mit
- Created: 2022-04-28T09:02:10.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-28T10:26:45.000Z (about 4 years ago)
- Last Synced: 2025-01-12T19:24:49.383Z (over 1 year ago)
- Topics: discord-utilities, discordjs, discordjs-bot
- Language: TypeScript
- Homepage:
- Size: 76.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discord-utils
a module to help you automate some functions
## Table of Contents
- [Installation](#installation)
- [Methods](#methods)
- [AutoPublish](#autopublish)
- [License](#license)
### 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.
```js
// 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](https://github.com/SeTar-Bot/discord-utils/blob/main/LICENSE)