Skip to content

Commit

Permalink
::bug:: => typeof Bot.intents
Browse files Browse the repository at this point in the history
  • Loading branch information
spuckhafte committed Sep 13, 2023
1 parent 9e5cdb1 commit 6916367
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ declare class Bot {
token: string;
prefix: string;
lang: '.js' | '.ts';
intents?: number;
intents?: number[];
});
go(cb?: CallableFunction): Promise<void>;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "breezer.js",
"version": "0.5.1",
"version": "0.5.2",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6916367

Please sign in to comment.