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
|
@ -7,15 +7,15 @@ import { postCaseToCaseLogChannel } from "./postToCaseLogChannel";
|
|||
|
||||
export async function createCase(pluginData: GuildPluginData<CasesPluginType>, args: CaseArgs) {
|
||||
const user = await resolveUser(pluginData.client, args.userId);
|
||||
const userName = `${user.tag}`;
|
||||
const userName = user.tag;
|
||||
|
||||
const mod = await resolveUser(pluginData.client, args.modId);
|
||||
const modName = `${mod.tag}`;
|
||||
const modName = mod.tag;
|
||||
|
||||
let ppName: string | null = null;
|
||||
if (args.ppId) {
|
||||
const pp = await resolveUser(pluginData.client, args.ppId);
|
||||
ppName = `${pp.tag}`;
|
||||
ppName = pp.tag;
|
||||
}
|
||||
|
||||
if (args.auditLogId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue