1.6.0 • Published 8 months ago

@conductr/core v1.6.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 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...

1.6.0

8 months ago

1.5.0

1 year ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.3.2

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

3 years ago