roleme: fix role lookup in no subcommand

This commit is contained in:
Cynthia Foxwell 2023-04-05 19:28:42 -06:00
parent 3c2a5375bf
commit ebff919f50
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ roleme.callback = async function (msg, line, args) {
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;
const roles = await getRoles(msg.guildID);