From 759e93bec4e9e2eb86db7434007345c24b0a0252 Mon Sep 17 00:00:00 2001 From: TymanWasTaken Date: Sun, 16 May 2021 22:03:18 -0400 Subject: fix logging for slash command syncing v2, delete BotMessage and BotGuild because useless, add prefix slash command --- src/commands/moderation/kick.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/commands/moderation/kick.ts') diff --git a/src/commands/moderation/kick.ts b/src/commands/moderation/kick.ts index 23fc092..7b04d5a 100644 --- a/src/commands/moderation/kick.ts +++ b/src/commands/moderation/kick.ts @@ -1,7 +1,6 @@ import { BotCommand } from '../../lib/extensions/BotCommand'; -import { BotMessage } from '../../lib/extensions/BotMessage'; import { Guild, Modlog, ModlogType } from '../../lib/models'; -import { GuildMember } from 'discord.js'; +import { GuildMember, Message } from 'discord.js'; export default class PrefixCommand extends BotCommand { constructor() { @@ -30,7 +29,7 @@ export default class PrefixCommand extends BotCommand { }); } async exec( - message: BotMessage, + message: Message, { user, reason }: { user: GuildMember; reason?: string } ): Promise { let modlogEnry: Modlog; -- cgit