From 650f612a6bfd054e03f4dd2a66144b6ab5e68c49 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 7 Nov 2023 20:36:29 +0100 Subject: [PATCH] Fixed base on member join --- bot/src/modules/base/events/base_on_member_join_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/src/modules/base/events/base_on_member_join_event.py b/bot/src/modules/base/events/base_on_member_join_event.py index a3e9d456..35a5cf05 100644 --- a/bot/src/modules/base/events/base_on_member_join_event.py +++ b/bot/src/modules/base/events/base_on_member_join_event.py @@ -82,7 +82,7 @@ class BaseOnMemberJoinEvent(OnMemberJoinABC): return self._logger.debug(__name__, f"Add user: {member.id}") - self._users.add_user(User(member.id, 0, 0, 0, server)) + self._users.add_user(User(member.id, 0, 0, 0, None, server)) self._db.save_changes() user = self._users.get_user_by_discord_id_and_server_id(member.id, server.id) self._user_joins.add_user_joined_server(UserJoinedServer(user, datetime.now()))