Skip to content

Commit

Permalink
Fix addition of role with space in between.
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 committed Apr 10, 2021
1 parent d667272 commit f51d59a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/commands/role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ export = class extends Command {
return;
}

if (args.length === 2) {
args[0] = args.join(' ');
args.pop();
}

if (args.length !== 1) {
this._sendUsages(msg);
return;
Expand Down

0 comments on commit f51d59a

Please sign in to comment.