From 5e70c8874a55d8a6b22436b32a807b674c7d2eab Mon Sep 17 00:00:00 2001 From: Joshua Miertschin Date: Wed, 28 Feb 2024 18:55:53 -0600 Subject: [PATCH] add reason to kick --- lib/miata_bot_discord/listeners/new_users_listener.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/miata_bot_discord/listeners/new_users_listener.ex b/lib/miata_bot_discord/listeners/new_users_listener.ex index 6646f8f..12fb2d9 100644 --- a/lib/miata_bot_discord/listeners/new_users_listener.ex +++ b/lib/miata_bot_discord/listeners/new_users_listener.ex @@ -131,7 +131,7 @@ defmodule MiataBotDiscord.NewUsersListener do Logger.info("expiring new user timer for member: #{inspect(member)}") - Nostrum.Api.remove_guild_member(state.guild.id, timer.discord_user_id) + Nostrum.Api.remove_guild_member(state.guild.id, timer.discord_user_id, "afk non-member") delete(timer) catch _, error ->