disutility
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

disutility

NodeJS/NPM Package for various Discord (bot) utils

Currently provides a fast and easy way to create timestamp messages, but more stuff is coming soon!

Usage

The package is available on npmjs.org, to install it:

npm install disutility

and then just require it in your project! (TypeScript support is now out!)

Code Example

Below are some useful code examples.

Timestamp

// Requiring the package
const { Timestamp, TimestampTypes } = require('disutility')

// You can use this timestamp in your Discord bot's message or wherever you need it.
const relativeStamp = Timestamp(TimestampTypes.RELATIVE) 

Did you make any projects with this library? Don't hesitate to share with me what you used it for, you can contact me on discord: not_h3

Package Sidebar

Install

npm i disutility

Weekly Downloads

0

Version

0.1.5

License

SEE LICENSE IN LICENSE.md

Unpacked Size

40.8 kB

Total Files

7

Last publish

Collaborators

  • not_h3