sugar-djs
v1.0.3
Published
Library for writing discord.js in TypeScript for more fun!
Readme
Sugar-DJS (discordjs-builder-wrapper)
Library for writing discord.js in TypeScript for more fun!
Supported Versions
| package version | discord.js version | |----|----| | 1.0.0 | >=14.25.0 <15 |
Usege
SlashCommand Example
import { wrapper } from 'sugar-djs';
import { SlashCommandBuilder } from 'discord.js';
export default wrapper
.setCommand(
new SlashCommandBuilder()
.setName('ping')
.setDescription('Send "Pong!"')
)
.setProcess(({ interaction }) => {
interaction.reply('Pong!');
});What is useful?
This library frees developers from the hassle of type specification.
