mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-13 21:35:02 +00:00
Combine Knub's type helpers with Zeppelin's, continue Utility plugin port
This commit is contained in:
parent
b338351e37
commit
9f059f33af
13 changed files with 533 additions and 13 deletions
backend/src/plugins/Utility/commands
|
@ -1,5 +1,5 @@
|
|||
import { utilityCmd } from "../types";
|
||||
import { customArgumentHelpers as ct } from "../../../customArgumentTypes";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { helpers } from "knub";
|
||||
|
||||
const { getMemberLevel } = helpers;
|
||||
|
@ -17,5 +17,5 @@ export const LevelCmd = utilityCmd({
|
|||
const member = args.member || message.member;
|
||||
const level = getMemberLevel(pluginData, member);
|
||||
message.channel.createMessage(`The permission level of ${member.username}#${member.discriminator} is **${level}**`);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue