Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix: LGTM stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
alexthemaster committed Aug 29, 2020
1 parent c8aaa48 commit 1425f96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/events/Message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class extends Event {

// Extract the prefix and the other arguments
const prefix: string = this.client.prefixes.filter(prefix => message.content.startsWith(prefix))[0];
const args: string[] = message.content.substring(prefix.length).trim().split(/ +/g)
const args: string[] = message.content.substring(prefix.length).trim().split(/ +/g);
if (!args[0]) return;

const command = args.shift()?.toLowerCase();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/structures/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class Command extends BasePiece<Command> {
}

constructor(client: MoonlightClient, pool: BasePool<string, Command>, options?: CommandOptions) {
super(client, pool, options)
super(client, pool, options);
this.aliases = options?.aliases ?? new Array();
this.nsfw = options?.nsfw ?? false;
this.canRunInDM = options?.canRunInDM ?? true;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/util/ArgumentParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class ArgumentParser {
else {
try {
// @ts-expect-error
parsed[arg] = await Arguments[argumentObject.argumentType](toParse, this._client, this._message)
parsed[arg] = await Arguments[argumentObject.argumentType](toParse, this._client, this._message);
this.text.shift();
} catch (err) {
if (argumentObject.type === 'optional') return;
Expand Down

0 comments on commit 1425f96

Please sign in to comment.