roleme: fix role lookup in no subcommand
This commit is contained in:
parent
3c2a5375bf
commit
ebff919f50
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ roleme.callback = async function (msg, line, args) {
|
||||||
return "I do not have `Manage Roles` permission.";
|
return "I do not have `Manage Roles` permission.";
|
||||||
}
|
}
|
||||||
|
|
||||||
const role = await lookupRole(msg, argStr);
|
const role = await lookupRole(msg, (subcommand + " " + argStr).trim());
|
||||||
if (role === "No results") return role;
|
if (role === "No results") return role;
|
||||||
|
|
||||||
const roles = await getRoles(msg.guildID);
|
const roles = await getRoles(msg.guildID);
|
||||||
|
|
Loading…
Reference in a new issue