From ae08eed093438034903d0dd1d79d6809a51d5b61 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh <102361830+SeaswimmerTheFsh@users.noreply.github.com> Date: Sat, 1 Jul 2023 10:17:33 -0400 Subject: [PATCH] fixed kick command --- cogs/moderation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cogs/moderation.py b/cogs/moderation.py index 7c81635..2d5cbff 100644 --- a/cogs/moderation.py +++ b/cogs/moderation.py @@ -106,6 +106,11 @@ class Moderation(commands.Cog): if not reason: await ctx.message.reply("Please include a reason!") return + try: + await target.kick() + except revolt.errors.HTTPError: + await ctx.message.reply("User is not in the server!") + return response = await ctx.message.reply(f"{target.mention} has been kicked!\n**Reason** - `{reason}`") try: embeds = [CustomEmbed(title="Warned", description=f"You have been kicked from {ctx.server.name}!\n### Reason\n`{reason}`", color="#5d82d1")]