From 4176b6258e44e4a095376aaf0f4c687244243a69 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 24 Jun 2021 00:56:16 -0400 Subject: feat(*): Began working on other punishment commands etc --- src/commands/moderation/warn.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands/moderation/warn.ts') diff --git a/src/commands/moderation/warn.ts b/src/commands/moderation/warn.ts index 3410d81..d48049b 100644 --- a/src/commands/moderation/warn.ts +++ b/src/commands/moderation/warn.ts @@ -1,6 +1,6 @@ import { GuildMember, Message } from 'discord.js'; import { BushCommand } from '../../lib/extensions/BushCommand'; -import { Guild, Modlog, ModlogType } from '../../lib/models'; +import { Guild, ModLog, ModLogType } from '../../lib/models'; export default class WarnCommand extends BushCommand { public constructor() { @@ -36,11 +36,11 @@ export default class WarnCommand extends BushCommand { } }); try { - const entry = Modlog.build({ + const entry = ModLog.build({ user: member.id, guild: message.guild.id, moderator: message.author.id, - type: ModlogType.WARN, + type: ModLogType.WARN, reason }); await entry.save(); -- cgit