Skip to content

Commit

Permalink
Merge pull request #256 from Garlic-Team/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
xhyrom authored Nov 21, 2021
2 parents 33dc6b3 + 01f1aca commit de42187
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gcommands",
"version": "8.0.0",
"version": "8.0.1",
"description": "Powerful and flexible command handler that can do everything!",
"main": "src/index.js",
"types": "./typings/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/managers/GEventHandling.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class GEventHandling {
const args = {};

for (const o of options) {
if ([1, 2].includes(o.type)) {
if (['SUB_COMMAND', 'SUB_COMMAND_GROUP'].includes(o.type)) {
args[o.name] = this.argsToObject(o.options);
} else {
args[o.name] = o.value;
Expand Down
2 changes: 1 addition & 1 deletion src/structures/ArgumentsCollector.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ArgumentsCollector {
if ([1, 2].includes(arg.type)) arg.subcommands = this.cmdArgs.filter(sc => [1, 2].includes(sc.type));
const argument = new Argument(this.client, arg, this.isNotDm, this.language);
let result;
if (this.args[0]) {
if (this.args[0] && !this.commandos.alwaysObtain) {
const invalid = argument.argument.validate(argument, { content: this.args[0], guild: this.message.guild }, this.language);
if (invalid) {
result = await argument.obtain(this.message, this.language, invalid);
Expand Down

0 comments on commit de42187

Please sign in to comment.