3
0
Fork 0
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:
Dragory 2020-07-06 01:51:48 +03:00
parent b338351e37
commit 9f059f33af
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
13 changed files with 533 additions and 13 deletions
backend/src/plugins/Utility/commands

View file

@ -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}**`);
}
},
});