1.3.0 • Published 5 months ago

@conductr/core v1.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

Installation

npm install @conductr/core
yarn install @conductr/core
pnpm install @conductr/core

Example usage

```ts
import { Conductr, GenericReceiver } from '@conductr/core';

new Conductr({
    applicationId: process.env.DISCORD_APPLICATION_ID,
    token: process.env.DISCORD_TOKEN
})
.registerCommandAndComponents(COMMANDS)
.registerCommandAndComponents(COMPONENTS)
.registerReceiver(new GenericReceiver(handler => {
    discord.on('interactionCreate', handler);
}));
// the receiver should be used to proccess the interactions
// the receiver is designed to take in interactions from 
// anything such as a http server, message queue, or a discord client
```

Additional documentation and examples are in progress...