cocoa-discord-utils

Yet another Discord Bot Utility npm package

Usage no npm install needed!

<script type="module">
  import cocoaDiscordUtils from 'https://cdn.skypack.dev/cocoa-discord-utils';
</script>

README

Cocoa Discord Utils

Yet another Discord Bot Utility npm package

This package contains many utilities that made by me for me to make my bots

Note: If you are viewing this from TypeDoc see meta/CocoaVersion for version of the document you are viewing.

๐Ÿ›๏ธ Subpackages

Many utilities are classified into many subpackages

NOTE: You need to use the very new version of node.js (16.9+) as it is requirement of discord.js

/ (index)

Miscellanous, consists of many utility classes

/meta

Info Stuff, ex. Utils Version, Device Info, etc.

/message

Message Command Management

/slash

Slash Command Management

/template

Frequently used stuff

/internal

As the name suggests, you should avoid touching this subpackage

Note: Command Management is inspired by discord.py's cogs system. There are two implementations, one that are different, focuses on concept of one function per file. And the other one, that is more like discord.py's cogs.

/<message|slash>/class

To use Class Cog (with Decorators like discord.py), import them from /message/class or /slash/class.

Note that Decorators are complex and I achieve this using dark magic, however, from testing, this is pretty stable. TypeScript is required.

โœ๏ธ Discord Bots that use this Package a.k.a. Examples

If you wish for examples, see above repositories

๐Ÿ“š Documentation

  • Doc & Guide: here

  • See all type definitions/api at TypeDoc

Note: There is no Type Check in this package. To avoid unexpected behavior, please use TypeScript or activate @ts-check on JavaScript.

To use generic type, TypeScript is required.

๐Ÿซ What is Cocoa?

Cocoa may have many meanings, but the name Cocoa / ใ‚ณใ‚ณใ‚ข that is used in this package as well as cocoa-grader refers to Cocoa Oneechan ไฟ็™ปๅฟƒๆ„› from ใ”ๆณจๆ–‡ใฏใ†ใ•ใŽใงใ™ใ‹๏ผŸ

nigerundayo... Smokey! โ€” No one said

Anime Name: Is the Order a Rabbit?