mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
removed unnecessary string literal and simplified stuff
This commit is contained in:
parent
392e7fc56e
commit
afe0ec1194
17 changed files with 23 additions and 25 deletions
|
@ -29,7 +29,7 @@ export const CasesModCmd = modActionsCmd({
|
|||
async run({ pluginData, message: msg, args }) {
|
||||
const modId = args.mod || msg.author.id;
|
||||
const mod = await resolveUser(pluginData.client, modId);
|
||||
const modName = mod instanceof User ? `${mod.tag}` : modId;
|
||||
const modName = mod instanceof User ? mod.tag : modId;
|
||||
|
||||
const casesPlugin = pluginData.getPlugin(CasesPlugin);
|
||||
const totalCases = await casesPlugin.getTotalCasesByMod(modId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue