0.1.2 • Published 2 years ago

twilight-toolkit v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Twilight Toolkit

This package is just a collection of utilities that I made for my personal Discord projects, with stuff like easy slash command loading and logging tools. I won't be making a full documentation anytime soon, but everything is well? commented and pretty straightforward, so if you want to use this in your project, it should be enough.

Overview

Slash Commands

Twilight Toolkit offers an instantiable class, CommandModule, as well as a Command class that can be used to easily register and delete slash commands.

Loading Commands: After instantiating a CommandModule with commands, you can call the loadApplicationCommands() method. Deleting Commands: You can opt in to delete all previously registered global slash commands by setting the CommandModule's loadType to 'wipe'. For deleting command from specific guilds, you can use the wipeGuildCommands() method.

Additional Optional Tools

Twilight Toolkit also offers an instantiable Logger class for simple logging, as well as a static Task class with a do() method.

Logger: instantiable class - A logging utility with common logging methods (log, warn, error, debug) as well as a more detailed report() method for more complex logs. Task: static class - A simple class with a smart try catch method. twilight: constant - For basic configuration, like toggling package logging off.

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago