1.6.4 • Published 10 months ago

@spark.ts/handler v1.6.4

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Spark Handler

A Discord.js Handler built on TypeScript

Installation

  • To install, run npm i @spark.ts/handler.

Example Usage

TypeScript / ESM

import { SparkClient } from '@spark.ts/handler';

const client = new SparkClient({
  intents: ['Guilds', 'MessageContent', 'GuildMessages'], // djs intents
  directories: {
    commands: './src/commands', // point this to the ./dist/commands directory if you're using typescript
  },
  logLevel: 'info', // log level used for the logger, if this is on `debug`, you'll see debug messages
});

client.login(process.env.DISCORD_TOKEN);

CommonJS

const { SparkClient } = require('@spark.ts/handler');

const client = new SparkClient({
  intents: ['Guilds', 'MessageContent', 'GuildMessages'], // djs intents
  directories: {
    commands: './src/commands', // point this to the ./dist/commands directory if you're using typescript
  },
  logLevel: 'info', // log level used for the logger, if this is on `debug`, you'll see debug messages
});

client.login(process.env.DISCORD_TOKEN);
1.6.4

10 months ago

1.6.3

1 year ago

1.6.2

1 year ago

1.6.1

1 year ago

1.3.4

1 year ago

1.5.0

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago