This is a collection of JavaScript/NodeJS utilities for discord bot development.
These instructions will get you up and running with discord-utils. All you need is to install using your favourite package manager then require into your code.
I haven't tested this on earlier versions of node. The version it's tested on is v12.16.0.
Using NPM:
npm i @kl13nt/discord-utils
Using Yarn:
yarn add @kl13nt/discord-utils
To see function names either use import/require in your code (I have full types available) or simply inspect the index.ts file in src. A general classification can be:
GuildMember or TextChannel objects.Without any bundlers:
// import all functions and classes
const utils = require('@kl13nt/discord-utils');
// import specific functions
const { capitalise } = require('@kl13nt/discord-utils');
capitalise('hello world! this should be capitalised as title case.'); // Hello World! This Should Be Capitalised As Title Case.
Check CONTRIBUTING.md in this repo.
Check CHANGELOG.md in this repo, which is automatically generated using standard-version.
This project is licensed under the GNU GENERAL PUBLIC LICENSE Version 3 - see the LICENSE file for details.
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Generated using TypeDoc