diff --git a/src/events/Message.ts b/src/events/Message.ts index 8c2905a0..1c52feb4 100644 --- a/src/events/Message.ts +++ b/src/events/Message.ts @@ -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(); diff --git a/src/lib/structures/Command.ts b/src/lib/structures/Command.ts index 16e64127..b0a99347 100644 --- a/src/lib/structures/Command.ts +++ b/src/lib/structures/Command.ts @@ -43,7 +43,7 @@ export class Command extends BasePiece { } constructor(client: MoonlightClient, pool: BasePool, 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; diff --git a/src/lib/util/ArgumentParser.ts b/src/lib/util/ArgumentParser.ts index a7feb790..25bb11d0 100644 --- a/src/lib/util/ArgumentParser.ts +++ b/src/lib/util/ArgumentParser.ts @@ -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;