diff --git a/dist/index.d.ts b/dist/index.d.ts index a18ec85..db1e47a 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -16,7 +16,7 @@ declare class Bot { token: string; prefix: string; lang: '.js' | '.ts'; - intents?: number; + intents?: number[]; }); go(cb?: CallableFunction): Promise; } diff --git a/package.json b/package.json index 4b30d2e..33bd62c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "breezer.js", - "version": "0.5.1", + "version": "0.5.2", "description": "", "main": "dist/index.js", "scripts": { diff --git a/src/index.ts b/src/index.ts index ae2d127..4ec74fc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,7 +17,7 @@ class Bot { private cmdFolder:string; private lang:string - constructor(options:{ commandsFolder:string, token:string, prefix:string, lang:'.js'|'.ts', intents?: number }) { + constructor(options:{ commandsFolder:string, token:string, prefix:string, lang:'.js'|'.ts', intents?: number[] }) { this.commands = fs.readdirSync(options.commandsFolder).map(i => i.replace(options.lang, '')); this.token = options.token;