Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@paperdiscord/core

0.1.3 • Public • Published

PaperDiscord Core

PaperDiscord is heavily inspired to NestJS. PaperDiscord to DiscordJS is exactly what NestJS is to ExpressJS

This is under heavy development, as such, many things are going to break, changed or removed.

An Extremely Basic Example

import {
  PaperDiscordFactory,
  Module,
  Controller,
  Command,
  Author,
} from '@paperdiscord/core';
 
import * as dotenv from 'dotenv';
dotenv.config();
 
@Controller('say')
class EchoController {
  @Command('hello')
  public async echo(@Author() user) {
    return `Hello there ${user.username}`;
  }
}
 
@Module({
  controllers: [EchoController],
})
class MyModule {}
 
const main = async () => {
  const app = await PaperDiscordFactory.create(MyModule);
 
  await app.getClient().login(process.env.TOKEN);
};
 
main();

Install

npm i @paperdiscord/core

DownloadsWeekly Downloads

9

Version

0.1.3

License

ISC

Unpacked Size

498 kB

Total Files

275

Homepage

soon.tm

Last publish

Collaborators

  • avatar