Ejemplo n.º 1
0
        internal static async Task SanitizeJoinedUser(SocketGuildUser user)
        {
            try
            {
                var pendingEventTypeList = await StorageManager.CheckPendingDisciplinaries(user);

                if (pendingEventTypeList.Count > 0)
                {
                    await PunishmentExecution.ReapplyDisciplinaryAction(pendingEventTypeList, user);
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.HandleException($"{typeof(UserJoinedChecker).GetType().FullName}: {ExceptionManager.GetAsyncMethodName()}", ex);
            }
        }