aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/warn.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/moderation/warn.ts')
-rw-r--r--src/commands/moderation/warn.ts6
1 files changed, 3 insertions, 3 deletions
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();